aboutsummaryrefslogtreecommitdiff
path: root/test/functional/wallet_resendwallettransactions.py
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2019-07-02 12:42:29 -0400
committerMarcoFalke <falke.marco@gmail.com>2019-07-02 12:28:21 -0400
commitfab0c820fa4c0c3227eec85c64310a3bf938a149 (patch)
tree651d630b35cbe9e3aff6759829c32f9077ee9c54 /test/functional/wallet_resendwallettransactions.py
parent2f717fb5cdfc312784f9c1539fc41cdfcfbde452 (diff)
downloadbitcoin-fab0c820fa4c0c3227eec85c64310a3bf938a149.tar.xz
rpc: Clarify that block count means height excl genesis
Diffstat (limited to 'test/functional/wallet_resendwallettransactions.py')
-rwxr-xr-xtest/functional/wallet_resendwallettransactions.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/functional/wallet_resendwallettransactions.py b/test/functional/wallet_resendwallettransactions.py
index 5810e94938..91d26e9cb3 100755
--- a/test/functional/wallet_resendwallettransactions.py
+++ b/test/functional/wallet_resendwallettransactions.py
@@ -57,8 +57,7 @@ class ResendWalletTransactionsTest(BitcoinTestFramework):
# after the last time we tried to broadcast. Use mocktime and give an extra minute to be sure.
block_time = int(time.time()) + 6 * 60
node.setmocktime(block_time)
- block = create_block(int(node.getbestblockhash(), 16), create_coinbase(node.getblockchaininfo()['blocks']), block_time)
- block.nVersion = 3
+ block = create_block(int(node.getbestblockhash(), 16), create_coinbase(node.getblockcount() + 1), block_time)
block.rehash()
block.solve()
node.submitblock(ToHex(block))