(self, tx)
Add a transaction to the mempool and advertise it to peers so it can
        propogate throughout the network.
Add a transaction to the mempool and advertise it to peers so it can
        propogate throughout the network.
Add a transaction to the mempool and advertise it to peers so it can propogate throughout the network .
def add_tx(self, tx):
        """
        Add a transaction to the mempool and advertise it to peers so it can
        propogate throughout the network.
        """
        the_hash = tx.hash()
        if the_hash not in self.tx_store:
            self.tx_store[the_hash] = tx
            self.inv_collector.advertise_item(InvItem(ITEM_TYPE_TX, the_hash))
def add_tx ( self , tx ) : the_hash = tx . hash ( ) if the_hash not in self . tx_store : self . tx_store [ the_hash ] = tx self . inv_collector . advertise_item ( InvItem ( ITEM_TYPE_TX , the_hash ) )