From a25ada841691db178e62cd6b67fda98b99c29635 Mon Sep 17 00:00:00 2001 From: scgbckbone Date: Sat, 25 Feb 2023 15:27:04 +0100 Subject: [PATCH] fix insufficient funds error in test_bitcoind_MofN_tutorial --- testing/test_multisig.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/testing/test_multisig.py b/testing/test_multisig.py index 3682b302..bb8d3fa8 100644 --- a/testing/test_multisig.py +++ b/testing/test_multisig.py @@ -2211,7 +2211,11 @@ def test_bitcoind_MofN_tutorial(m_n, desc_type, clear_ms, goto_home, need_keypre mined = bitcoind_watch_only.generatetoaddress(101, multi_addr) assert isinstance(mined, list) and len(mined) == 101 # create funded PSBT - psbt_resp = bitcoind_watch_only.walletcreatefundedpsbt([], [{dest_addr: 1.0}], 0, {"fee_rate": 20, "change_type": addr_type}) + all_of_it = bitcoind_watch_only.getbalance() + psbt_resp = bitcoind_watch_only.walletcreatefundedpsbt( + [], [{dest_addr: all_of_it}], 0, {"fee_rate": 20, "change_type": addr_type, + "subtractFeeFromOutputs": [0]} + ) psbt = psbt_resp.get("psbt") # sign with all bitcoind signers for signer in bitcoind_signers: