Fix test fragility described in #8456 (comment)
I ran into a lot of spurious errors related to
fundrawtransactionin the bumpfee tests while trying to add a simple test for this. fundrawtransaction would sometimes chose different sized inputs than thesmall_output_failsanddust_to_fee testswere expecting, so I rewrote these tests in 13960f870c1ba94f391012f9c9243c59951ea6ab to manually create RBF transactions with the right inputs.I also ran into problems with
fundrawtransactionusing up all the right-sized inputs before these tests could use them, so I changed the order of the tests so they would run before any fundrawtransaction calls.I also ran into problems with
fundrawtransactionsometimes chosing a higher fee for the RBF transaction than thetest_rebumpingtest expected, causing the bumpfee command in the test to fail with an "Invalid totalFee, must be at least ..." error. I did not figure out what was causing this, but it seemed to somehow be related to the number ofpeer_node.sendtoaddress(rbf_node_address, 0.001)calls made during the test setup.