def announce_cmpct_block(node, peer):
    utxo = self.utxos.pop(0)
    block = self.build_block_with_transactions(node, utxo, 5)
    cmpct_block = HeaderAndShortIDs()
    cmpct_block.initialize_from_block(block)
    msg = msg_cmpctblock(cmpct_block.to_p2p())
    peer.send_and_ping(msg)
    with mininode_lock:
        assert ('getblocktxn' in peer.last_message)
    return (block, cmpct_block)
def announce_cmpct_block(node, peer):
    utxo = self.utxos.pop(0)
    block = self.build_block_with_transactions(node, utxo, 5)
    cmpct_block = HeaderAndShortIDs()
    cmpct_block.initialize_from_block(block)
    msg = msg_cmpctblock(cmpct_block.to_p2p())
    peer.send_and_ping(msg)
    with mininode_lock:
        assert ('getblocktxn' in peer.last_message)
    return (block, cmpct_block)