Skip to content

Commit 52ed487

Browse files
authored
RPC tests: fixes merkle_blocks.py to exclude 1st coinbase (#423)
* fixes merkle_blocks.py to exclude 1st coinbase * Update qa/rpc-tests/merkle_blocks.py Co-Authored-By: marcus290 <36244342+marcus290@users.noreply.github.com>
1 parent 66a4852 commit 52ed487

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qa/rpc-tests/merkle_blocks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def run_test(self):
4141
assert_equal(self.nodes[1].getbalance(), 0)
4242
assert_equal(self.nodes[2].getbalance(), 0)
4343

44-
node0utxos = self.nodes[0].listunspent(1)
44+
node0utxos = self.nodes[0].listunspent(1, 104) // We generated 105 blocks so we are excluding the first block which contains 59 mill~ NAV
4545
tx1 = self.nodes[0].createrawtransaction([node0utxos.pop()], {self.nodes[1].getnewaddress(): 49.99})
4646
txid1 = self.nodes[0].sendrawtransaction(self.nodes[0].signrawtransaction(tx1)["hex"])
4747
tx2 = self.nodes[0].createrawtransaction([node0utxos.pop()], {self.nodes[1].getnewaddress(): 49.99})

0 commit comments

Comments
 (0)