def wait_for_block(self, blockhash, timeout=60):
    test_function = (lambda : (self.last_message.get('block') and (self.last_message['block'].block.rehash() == blockhash)))
    wait_until(test_function, timeout=timeout, lock=mininode_lock)
def wait_for_block(self, blockhash, timeout=60):
    test_function = (lambda : (self.last_message.get('block') and (self.last_message['block'].block.rehash() == blockhash)))
    wait_until(test_function, timeout=timeout, lock=mininode_lock)