@@ -42,7 +42,11 @@ class RawTransactionsTest(BitcoinTestFramework):
42
42
def set_test_params (self ):
43
43
self .setup_clean_chain = True
44
44
self .num_nodes = 3
45
- self .extra_args = [["-addresstype=legacy" , "-txindex" ], ["-addresstype=legacy" , "-txindex" ], ["-addresstype=legacy" , "-txindex" ]]
45
+ self .extra_args = [
46
+ ["-txindex" ],
47
+ ["-txindex" ],
48
+ ["-txindex" ],
49
+ ]
46
50
47
51
def skip_test_if_missing_module (self ):
48
52
self .skip_if_no_wallet ()
@@ -438,17 +442,17 @@ def run_test(self):
438
442
rawTx = self .nodes [2 ].createrawtransaction (inputs , outputs )
439
443
rawTxSigned = self .nodes [2 ].signrawtransactionwithwallet (rawTx )
440
444
assert_equal (rawTxSigned ['complete' ], True )
441
- # 1000 sat fee, ~200 b transaction, fee rate should land around 5 sat/b = 0.00005000 BTC/kB
445
+ # 1000 sat fee, ~100 b transaction, fee rate should land around 10 sat/b = 0.00010000 BTC/kB
442
446
# Thus, testmempoolaccept should reject
443
447
testres = self .nodes [2 ].testmempoolaccept ([rawTxSigned ['hex' ]], 0.00001000 )[0 ]
444
448
assert_equal (testres ['allowed' ], False )
445
449
assert_equal (testres ['reject-reason' ], '256: absurdly-high-fee' )
446
450
# and sendrawtransaction should throw
447
451
assert_raises_rpc_error (- 26 , "absurdly-high-fee" , self .nodes [2 ].sendrawtransaction , rawTxSigned ['hex' ], 0.00001000 )
448
452
# And below calls should both succeed
449
- testres = self .nodes [2 ].testmempoolaccept (rawtxs = [rawTxSigned ['hex' ]], maxfeerate = '0.00007000 ' )[0 ]
453
+ testres = self .nodes [2 ].testmempoolaccept (rawtxs = [rawTxSigned ['hex' ]], maxfeerate = '0.00070000 ' )[0 ]
450
454
assert_equal (testres ['allowed' ], True )
451
- self .nodes [2 ].sendrawtransaction (hexstring = rawTxSigned ['hex' ], maxfeerate = '0.00007000 ' )
455
+ self .nodes [2 ].sendrawtransaction (hexstring = rawTxSigned ['hex' ], maxfeerate = '0.00070000 ' )
452
456
453
457
454
458
if __name__ == '__main__' :
0 commit comments