mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
Merge bitcoin/bitcoin#21787: test: fix off-by-ones in rpc_fundrawtransaction assertions
f09e6b2585200040be2e8ee44fa79b86b1970d70 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 f09e6b2585200040be2e8ee44fa79b86b1970d70 theStack: ACK f09e6b2585200040be2e8ee44fa79b86b1970d70 Tree-SHA512: 7ac754eaadd8cb00a725afa55bccbb8de7547dedac9350d79a9a470918245617e075c56a91adc36fb653bbe8a0a325d59b00443155a7e1a81ebf22e4e4cf56d9
This commit is contained in:
parent
ccac35c89c
commit
22435f1898
@ -722,10 +722,10 @@ class RawTransactionsTest(BitcoinTestFramework):
|
|||||||
result6 = self.nodes[3].fundrawtransaction(rawtx, {"feeRate": 0})
|
result6 = self.nodes[3].fundrawtransaction(rawtx, {"feeRate": 0})
|
||||||
|
|
||||||
result_fee_rate = result['fee'] * 1000 / count_bytes(result['hex'])
|
result_fee_rate = result['fee'] * 1000 / count_bytes(result['hex'])
|
||||||
assert_fee_amount(result1['fee'], count_bytes(result2['hex']), 2 * result_fee_rate)
|
assert_fee_amount(result1['fee'], count_bytes(result1['hex']), 2 * result_fee_rate)
|
||||||
assert_fee_amount(result2['fee'], count_bytes(result2['hex']), 2 * result_fee_rate)
|
assert_fee_amount(result2['fee'], count_bytes(result2['hex']), 2 * result_fee_rate)
|
||||||
assert_fee_amount(result3['fee'], count_bytes(result3['hex']), 10 * result_fee_rate)
|
assert_fee_amount(result3['fee'], count_bytes(result3['hex']), 10 * result_fee_rate)
|
||||||
assert_fee_amount(result4['fee'], count_bytes(result3['hex']), 10 * result_fee_rate)
|
assert_fee_amount(result4['fee'], count_bytes(result4['hex']), 10 * result_fee_rate)
|
||||||
assert_fee_amount(result5['fee'], count_bytes(result5['hex']), 0)
|
assert_fee_amount(result5['fee'], count_bytes(result5['hex']), 0)
|
||||||
assert_fee_amount(result6['fee'], count_bytes(result6['hex']), 0)
|
assert_fee_amount(result6['fee'], count_bytes(result6['hex']), 0)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user