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 2022-07-15 18:32:05 -05:00
parent d9f4b36cb9
commit 7a05f07634
No known key found for this signature in database
GPG Key ID: CC8ECA224831C982

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)
}