Ejemplo n.º 1
0
 def broadcast_batch_by_transaction_id_request(self, transaction_ids):
     # Need to define node identity to be able to route directly back
     batch_request = GossipBatchByTransactionIdRequest(
         ids=transaction_ids, nonce=binascii.b2a_hex(os.urandom(16)))
     self.broadcast(
         batch_request,
         validator_pb2.Message.GOSSIP_BATCH_BY_TRANSACTION_ID_REQUEST)
Ejemplo n.º 2
0
 def broadcast_batch_by_transaction_id_request(self, transaction_ids):
     time_to_live = self.get_time_to_live()
     batch_request = GossipBatchByTransactionIdRequest(
         ids=transaction_ids,
         nonce=binascii.b2a_hex(os.urandom(16)),
         time_to_live=time_to_live)
     self.broadcast(
         batch_request,
         validator_pb2.Message.GOSSIP_BATCH_BY_TRANSACTION_ID_REQUEST)
Ejemplo n.º 3
0
 def broadcast_batch_by_transaction_id_request(self, batch_id):
     # Need to define node identity to be able to route directly back
     batch_request = GossipBatchByTransactionIdRequest(id=batch_id)
     self.broadcast(
         batch_request,
         validator_pb2.Message.GOSSIP_BATCH_BY_TRANSACTION_ID_REQUEST)