def wait_for_block_announcement(self, block_hash, timeout=30):

    def received_hash():
        return (block_hash in self.announced_blockhashes)
    wait_until(received_hash, timeout=timeout, lock=mininode_lock)
def wait_for_block_announcement(self, block_hash, timeout=30):

    def received_hash():
        return (block_hash in self.announced_blockhashes)
    wait_until(received_hash, timeout=timeout, lock=mininode_lock)