From 7a05f076349648e2cc4b1ee33e26a461d79e2ee4 Mon Sep 17 00:00:00 2001 From: Matt Morehouse Date: Fri, 15 Jul 2022 18:32:05 -0500 Subject: [PATCH 1/2] 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 --- lntest/itest/lnd_psbt_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lntest/itest/lnd_psbt_test.go b/lntest/itest/lnd_psbt_test.go index 0a4b5f76a..a2495ce75 100644 --- a/lntest/itest/lnd_psbt_test.go +++ b/lntest/itest/lnd_psbt_test.go @@ -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) } From f3c0dd1d054fc1ae2d4a219a80f8d7197f573076 Mon Sep 17 00:00:00 2001 From: Matt Morehouse Date: Tue, 19 Jul 2022 12:16:01 -0500 Subject: [PATCH 2/2] doc: update release notes --- docs/release-notes/release-notes-0.15.1.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/release-notes/release-notes-0.15.1.md b/docs/release-notes/release-notes-0.15.1.md index fe49324de..86eb05862 100644 --- a/docs/release-notes/release-notes-0.15.1.md +++ b/docs/release-notes/release-notes-0.15.1.md @@ -73,6 +73,8 @@ * [Fixed a bug in the `SignPsbt` RPC that produced an invalid response when signing a NP2WKH input](https://github.com/lightningnetwork/lnd/pull/6687). +* [Fix race condition in `sign_psbt` test](https://github.com/lightningnetwork/lnd/pull/6741). + * [Update the `urfave/cli` package](https://github.com/lightningnetwork/lnd/pull/6682) because of a flag parsing bug. @@ -116,6 +118,7 @@ * Elle Mouton * ErikEk * Eugene Siegel +* Matt Morehouse * Slyghtning * Oliver Gugger * Olaoluwa Osuntokun