def compare_txstart_old_to_current( self, converted_current_message: TxServiceSyncReqMessage, original_current_message: TxServiceSyncReqMessage, ): self.assertEqual( original_current_message.rawbytes(), converted_current_message.rawbytes(), )
def send_tx_service_sync_req(self, network_num: int): """ sending transaction service sync request """ self.node.last_sync_message_received_by_network[ network_num] = time.time() self.node.sync_short_id_buckets.pop(network_num, None) self.node.sync_metrics.pop(network_num, None) self.conn.enqueue_msg(TxServiceSyncReqMessage(network_num)) if self.node.check_sync_relay_connections_alarm_id: self.node.alarm_queue.unregister_alarm( self.node.check_sync_relay_connections_alarm_id) self.node.check_sync_relay_connections_alarm_id = None self.node.check_sync_relay_connections_alarm_id = self.node.alarm_queue.register_alarm( constants.LAST_MSG_FROM_RELAY_THRESHOLD_S, self.node.check_sync_relay_connections, self.conn)
def txstart_message(self) -> TxServiceSyncReqMessage: return TxServiceSyncReqMessage(self.NETWORK_NUMBER)
def send_tx_service_sync_req(self, network_num: int): """ sending transaction service sync request """ self.enqueue_msg(TxServiceSyncReqMessage(network_num))