aboutsummaryrefslogtreecommitdiff
path: root/test/functional/p2p_sendheaders.py
diff options
context:
space:
mode:
authorDanny Lee <robot-visions@protonmail.com>2020-04-17 02:23:02 -0700
committerDanny Lee <robot-visions@protonmail.com>2020-04-22 10:46:08 -0700
commit9f5608c2893f89cd56c7c548b748996199e0da1d (patch)
treebc2b9b73d6dc16533591f5252f409fe123811766 /test/functional/p2p_sendheaders.py
parenta7a6f1ff417abc2452a2a2b9edcd2f12d6c14441 (diff)
downloadbitcoin-9f5608c2893f89cd56c7c548b748996199e0da1d.tar.xz
test: check for matching object hashes in wait_for_getdata
Diffstat (limited to 'test/functional/p2p_sendheaders.py')
-rwxr-xr-xtest/functional/p2p_sendheaders.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/test/functional/p2p_sendheaders.py b/test/functional/p2p_sendheaders.py
index 74d5536f5f..a8fba306a7 100755
--- a/test/functional/p2p_sendheaders.py
+++ b/test/functional/p2p_sendheaders.py
@@ -144,13 +144,6 @@ class BaseNode(P2PInterface):
getblocks_message.locator.vHave = locator
self.send_message(getblocks_message)
- def wait_for_getdata(self, hash_list, timeout=60):
- if hash_list == []:
- return
-
- test_function = lambda: "getdata" in self.last_message and [x.hash for x in self.last_message["getdata"].inv] == hash_list
- wait_until(test_function, timeout=timeout, lock=mininode_lock)
-
def wait_for_block_announcement(self, block_hash, timeout=60):
test_function = lambda: self.last_blockhash_announced == block_hash
wait_until(test_function, timeout=timeout, lock=mininode_lock)