connector

This commit is contained in:
4tochka 2019-06-02 16:28:03 +04:00
parent e9757c4922
commit c2ffec02d9

View File

@ -424,7 +424,7 @@ class Connector:
self.tx_cache.pop(h) self.tx_cache.pop(h)
tx_rate = round(self.total_received_tx / (time.time() - self.start_time), 4) tx_rate = round(self.total_received_tx / (time.time() - self.start_time), 4)
t = 10000 if not self.deep_synchronization else 10000 t = 10000 if not self.deep_synchronization else 100000
if (self.total_received_tx - self.total_received_tx_stat) > t: if (self.total_received_tx - self.total_received_tx_stat) > t:
self.total_received_tx_stat = self.total_received_tx self.total_received_tx_stat = self.total_received_tx
self.log.warning("Blocks %s; tx rate: %s;" % (block["height"], tx_rate)) self.log.warning("Blocks %s; tx rate: %s;" % (block["height"], tx_rate))