def wait_for_getdata(self, timeout=60):
    'Waits for a getdata message.\n\n        Receiving any getdata message will satisfy the predicate. the last_message["getdata"]\n        value must be explicitly cleared before calling this method, or this will return\n        immediately with success. TODO: change this method to take a hash value and only\n        return true if the correct block/tx has been requested.'
    test_function = (lambda : self.last_message.get('getdata'))
    wait_until(test_function, timeout=timeout, lock=mininode_lock)
Waits for a getdata message.

Receiving any getdata message will satisfy the predicate. the last_message["getdata"]
value must be explicitly cleared before calling this method, or this will return
immediately with success. TODO: change this method to take a hash value and only
return true if the correct block/tx has been requested.
def wait_for_getdata(self, timeout=60):
    'Waits for a getdata message.\n\n        Receiving any getdata message will satisfy the predicate. the last_message["getdata"]\n        value must be explicitly cleared before calling this method, or this will return\n        immediately with success. TODO: change this method to take a hash value and only\n        return true if the correct block/tx has been requested.'
    test_function = (lambda : self.last_message.get('getdata'))
    wait_until(test_function, timeout=timeout, lock=mininode_lock)