aboutsummaryrefslogtreecommitdiff
path: root/test/functional/p2p_unrequested_blocks.py
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-07-27 20:04:51 +0200
committerMarcoFalke <falke.marco@gmail.com>2021-08-19 19:02:11 +0200
commitfab2e23b579c44f1b4bed4d813bbe5a21eaa22c8 (patch)
tree7409c4da5d5b76eb6046a1441e0f120ae7f89f01 /test/functional/p2p_unrequested_blocks.py
parentfaf7e9280487d643cf59681df2711d72675b5ad4 (diff)
downloadbitcoin-fab2e23b579c44f1b4bed4d813bbe5a21eaa22c8.tar.xz
Use generate* from TestFramework
The changes in feature_rbf can be reviewed with --color-moved=dimmed-zebra --color-moved-ws=ignore-all-space
Diffstat (limited to 'test/functional/p2p_unrequested_blocks.py')
-rwxr-xr-xtest/functional/p2p_unrequested_blocks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/p2p_unrequested_blocks.py b/test/functional/p2p_unrequested_blocks.py
index e7a05d8547..a9d5ed970a 100755
--- a/test/functional/p2p_unrequested_blocks.py
+++ b/test/functional/p2p_unrequested_blocks.py
@@ -77,7 +77,7 @@ class AcceptBlockTest(BitcoinTestFramework):
min_work_node = self.nodes[1].add_p2p_connection(P2PInterface())
# 1. Have nodes mine a block (leave IBD)
- [n.generatetoaddress(1, n.get_deterministic_priv_key().address) for n in self.nodes]
+ [self.generatetoaddress(n, 1, n.get_deterministic_priv_key().address) for n in self.nodes]
tips = [int("0x" + n.getbestblockhash(), 0) for n in self.nodes]
# 2. Send one block that builds on each tip.