wallet: Check max tx weight in coin selector

Co-authored-by: Andrew Chow <github@achow101.com>
This commit is contained in:
Aurèle Oulès
2022-10-04 14:17:11 +02:00
parent 7734a0160d
commit 6b563cae92
4 changed files with 41 additions and 11 deletions

View File

@@ -987,7 +987,7 @@ class RawTransactionsTest(BitcoinTestFramework):
outputs[recipient.getnewaddress()] = 0.1
wallet.sendmany("", outputs)
self.generate(self.nodes[0], 10)
assert_raises_rpc_error(-4, "Transaction too large", recipient.fundrawtransaction, rawtx)
assert_raises_rpc_error(-4, "Insufficient funds", recipient.fundrawtransaction, rawtx)
self.nodes[0].unloadwallet("large")
def test_external_inputs(self):