aboutsummaryrefslogtreecommitdiff
path: root/test/functional/p2p_getdata.py
diff options
context:
space:
mode:
authorOliver Gugger <gugger@gmail.com>2020-09-26 10:43:03 +0200
committerOliver Gugger <gugger@gmail.com>2020-09-26 10:48:54 +0200
commit0fcaf731997c4989b869e42d8990f742637799c2 (patch)
tree7305c1b2673a882bf287144f049516716e361a25 /test/functional/p2p_getdata.py
parent78f912c9010f686e2d1bbdc1c51f381b496c2a1b (diff)
downloadbitcoin-0fcaf731997c4989b869e42d8990f742637799c2.tar.xz
test: use explicit p2p objects where available
To make the intent of the tests easier to understand, we reference the p2p connection objects by their explicit names instead of the p2ps array.
Diffstat (limited to 'test/functional/p2p_getdata.py')
-rwxr-xr-xtest/functional/p2p_getdata.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/p2p_getdata.py b/test/functional/p2p_getdata.py
index 51921a8ab5..89d68d5ba0 100755
--- a/test/functional/p2p_getdata.py
+++ b/test/functional/p2p_getdata.py
@@ -42,7 +42,7 @@ class GetdataTest(BitcoinTestFramework):
good_getdata = msg_getdata()
good_getdata.inv.append(CInv(t=2, h=best_block))
p2p_block_store.send_and_ping(good_getdata)
- p2p_block_store.wait_until(lambda: self.nodes[0].p2ps[0].blocks[best_block] == 1)
+ p2p_block_store.wait_until(lambda: p2p_block_store.blocks[best_block] == 1)
if __name__ == '__main__':