Skip to content

Commit

Permalink
Fix rpc_rawtransaction.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Neil committed Oct 28, 2024
1 parent ea95310 commit 87ff1f4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/functional/rpc_rawtransaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ def getrawtransaction_verbosity_tests(self):
assert 'fee' not in gottx
# check that verbosity 2 for a mempool tx will fallback to verbosity 1
# Do this with a pruned chain, as a regression test for https://github.com/bitcoin/bitcoin/pull/29003
self.generate(self.nodes[2], 400)
assert_greater_than(self.nodes[2].pruneblockchain(250), 0)
self.generate(self.nodes[2], 4000)
assert_greater_than(self.nodes[2].pruneblockchain(2500), 0)
mempool_tx = self.wallet.send_self_transfer(from_node=self.nodes[2])['txid']
gottx = self.nodes[2].getrawtransaction(txid=mempool_tx, verbosity=2)
assert 'fee' not in gottx
Expand Down Expand Up @@ -429,9 +429,9 @@ def sendrawtransaction_testmempoolaccept_tests(self):
# and sendrawtransaction should throw
assert_raises_rpc_error(-25, fee_exceeds_max, self.nodes[2].sendrawtransaction, tx['hex'])
# and the following calls should both succeed
testres = self.nodes[2].testmempoolaccept(rawtxs=[tx['hex']], maxfeerate='10')[0]
testres = self.nodes[2].testmempoolaccept(rawtxs=[tx['hex']], maxfeerate='2')[0]
assert_equal(testres['allowed'], True)
self.nodes[2].sendrawtransaction(hexstring=tx['hex'], maxfeerate='10')
self.nodes[2].sendrawtransaction(hexstring=tx['hex'], maxfeerate='2')

self.log.info("Test sendrawtransaction/testmempoolaccept with tx already in the chain")
self.generate(self.nodes[2], 1)
Expand Down

0 comments on commit 87ff1f4

Please sign in to comment.