Skip to content

Commit 0784af1

Browse files
committed
remove parameters -addresstype=legacy in rpc_rawtransaction test
1 parent a65dafa commit 0784af1

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

test/functional/rpc_rawtransaction.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ class RawTransactionsTest(BitcoinTestFramework):
4242
def set_test_params(self):
4343
self.setup_clean_chain = True
4444
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+
]
4650

4751
def skip_test_if_missing_module(self):
4852
self.skip_if_no_wallet()
@@ -438,17 +442,17 @@ def run_test(self):
438442
rawTx = self.nodes[2].createrawtransaction(inputs, outputs)
439443
rawTxSigned = self.nodes[2].signrawtransactionwithwallet(rawTx)
440444
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
442446
# Thus, testmempoolaccept should reject
443447
testres = self.nodes[2].testmempoolaccept([rawTxSigned['hex']], 0.00001000)[0]
444448
assert_equal(testres['allowed'], False)
445449
assert_equal(testres['reject-reason'], '256: absurdly-high-fee')
446450
# and sendrawtransaction should throw
447451
assert_raises_rpc_error(-26, "absurdly-high-fee", self.nodes[2].sendrawtransaction, rawTxSigned['hex'], 0.00001000)
448452
# 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]
450454
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')
452456

453457

454458
if __name__ == '__main__':

0 commit comments

Comments
 (0)