Skip to content

Commit

Permalink
Missed a spot where availableToSend balance should be used.
Browse files Browse the repository at this point in the history
  • Loading branch information
jklein24 committed Dec 22, 2023
1 parent 5fa0de3 commit 9982fda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/test/regtest/regtest_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ func ensureEnoughNodeFunds(
require.NoError(t, err)
castNode, didCast := (*nodeEntity).(objects.LightsparkNode)
require.True(t, didCast)
balanceMilliSats, err := utils.ValueMilliSatoshi(*castNode.GetLocalBalance())
balanceMilliSats, err := utils.ValueMilliSatoshi(*castNode.GetBalances().AvailableToSendBalance)
require.NoError(t, err)
log.Printf("Check if node id, %s, has enough local balance as of, %d msats, to send, %d msats, after funding.", nodeId, balanceMilliSats, amountMillisatoshis)
if balanceMilliSats >= amountMillisatoshis {
Expand Down

0 comments on commit 9982fda

Please sign in to comment.