mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-01-19 05:45:21 +01:00
itest: fix sign_psbt failure
Ensure the wallet has synced the blockchain before attempting to spend funds. Prior to this fix, I get the following error: rpc error: code = Unknown desc = wallet couldn't fund PSBT: error creating funding TX: insufficient funds available to construct transaction
This commit is contained in:
parent
d9f4b36cb9
commit
7a05f07634
@ -1381,4 +1381,6 @@ func sendAllCoinsToAddrType(ctx context.Context, t *harnessTest,
|
||||
require.NoError(t.t, err)
|
||||
|
||||
_ = mineBlocks(t, net, 1, 1)[0]
|
||||
err = node.WaitForBlockchainSync()
|
||||
require.NoError(t.t, err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user