Skip to content

Commit fb43d7c

Browse files
committed
Merge bitcoin/bitcoin#21787: test: fix off-by-ones in rpc_fundrawtransaction assertions
f09e6b2 test: fix off-by-ones in rpc_fundrawtransaction (Jon Atack) Pull request description: The variables in these assertions should be the same within each line. ACKs for top commit: laanwj: ACK f09e6b2 theStack: ACK f09e6b2 Tree-SHA512: 7ac754eaadd8cb00a725afa55bccbb8de7547dedac9350d79a9a470918245617e075c56a91adc36fb653bbe8a0a325d59b00443155a7e1a81ebf22e4e4cf56d9
2 parents df21e50 + f09e6b2 commit fb43d7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/functional/rpc_fundrawtransaction.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -728,10 +728,10 @@ def test_option_feerate(self):
728728
result6 = self.nodes[3].fundrawtransaction(rawtx, {"feeRate": 0})
729729

730730
result_fee_rate = result['fee'] * 1000 / count_bytes(result['hex'])
731-
assert_fee_amount(result1['fee'], count_bytes(result2['hex']), 2 * result_fee_rate)
731+
assert_fee_amount(result1['fee'], count_bytes(result1['hex']), 2 * result_fee_rate)
732732
assert_fee_amount(result2['fee'], count_bytes(result2['hex']), 2 * result_fee_rate)
733733
assert_fee_amount(result3['fee'], count_bytes(result3['hex']), 10 * result_fee_rate)
734-
assert_fee_amount(result4['fee'], count_bytes(result3['hex']), 10 * result_fee_rate)
734+
assert_fee_amount(result4['fee'], count_bytes(result4['hex']), 10 * result_fee_rate)
735735
assert_fee_amount(result5['fee'], count_bytes(result5['hex']), 0)
736736
assert_fee_amount(result6['fee'], count_bytes(result6['hex']), 0)
737737

0 commit comments

Comments
 (0)