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:
Matt Morehouse committed 2022-07-19 12:41:34 -05:00
1 parent d9f4b36cb9
commit 7a05f07634
1 file changed
+2
+2
View File
@@ -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)
}