Skip to content

Commit

Permalink
tests: rpc_fundrawtransaction.py was moved to wallet_fundrawtransacti…
Browse files Browse the repository at this point in the history
…on.py in fa7d71a

The test is still not completely working.
  • Loading branch information
muxator committed Oct 11, 2023
1 parent f30ab19 commit b21c6a9
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions test/functional/wallet_fundrawtransaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,15 +638,22 @@ def test_locked_wallet(self):
self.generate(self.nodes[1], 1)

# Make sure funds are received at node1.
assert_equal(oldBalance+Decimal('51.10000000'), self.nodes[0].getbalance())
assert_equal(oldBalance+Decimal('1.10000000'), self.nodes[0].getbalance()) # ITCOIN_SPECIFIC: it was Decimal('51.10000000'): with COINBASE_MATURITY=0, no new matured reward at node0, subtract 50 from expected balance

def test_many_inputs_fee(self):
"""Multiple (~19) inputs tx test | Compare fee."""
self.log.info("Test fundrawtxn fee with many inputs")

# Empty node1, send some small coins from node0 to node1.
self.nodes[1].sendall(recipients=[self.nodes[0].getnewaddress()])
self.generate(self.nodes[1], 1)
# ITCOIN_SPECIFIC - START
#
# At the end of the sendtoaddress, there should be no UTXO left at
# node1. Hence, we sync the mempools and let node0 mine the block, so
# that node1 does not get any reward.
self.sync_mempools() # ITCOIN_SPECIFIC: added this line
self.generate(self.nodes[0], 1) # ITCOIN_SPECIFIC: it was self.nodes[1]
# ITCOIN_SPECIFIC - END

for _ in range(20):
self.nodes[0].sendtoaddress(self.nodes[1].getnewaddress(), 0.01)
Expand Down

0 comments on commit b21c6a9

Please sign in to comment.