(self, block)
Add a block and advertise it to peers so it can propogate throughout the network.
Add a block and advertise it to peers so it can propogate throughout the network.
Add a block and advertise it to peers so it can propogate throughout the network .
def add_block(self, block):
        """
        Add a block and advertise it to peers so it can propogate throughout the network.
        """
        the_hash = block.hash()
        if the_hash not in self.block_store:
            self.block_store[the_hash] = block
            self.inv_collector.advertise_item(InvItem(ITEM_TYPE_BLOCK, the_hash))
def add_block ( self , block ) : the_hash = block . hash ( ) if the_hash not in self . block_store : self . block_store [ the_hash ] = block self . inv_collector . advertise_item ( InvItem ( ITEM_TYPE_BLOCK , the_hash ) )