connector
This commit is contained in:
parent
e320931157
commit
767a336de2
@ -459,10 +459,13 @@ class Connector:
|
|||||||
self.utxo.saved_utxo,
|
self.utxo.saved_utxo,
|
||||||
self.utxo.deleted_utxo,
|
self.utxo.deleted_utxo,
|
||||||
self.utxo.loaded_utxo))
|
self.utxo.loaded_utxo))
|
||||||
self.log.debug(" Read from db last batch %s s; "
|
self.log.debug(" Read from db last batch %s; "
|
||||||
"total %s s; " % (round(self.utxo.read_from_db_time, 4),
|
"count %s; "
|
||||||
|
"total time %s; " % (round(self.utxo.read_from_db_time, 4),
|
||||||
|
self.utxo.read_from_db_count,
|
||||||
int(self.utxo.read_from_db_time_total)))
|
int(self.utxo.read_from_db_time_total)))
|
||||||
self.utxo.read_from_db_time = 0
|
self.utxo.read_from_db_time = 0
|
||||||
|
self.utxo.read_from_db_count = 0
|
||||||
self.log.debug("- Coins ---------------")
|
self.log.debug("- Coins ---------------")
|
||||||
self.log.debug(" Coins %s; destroyed %s; "
|
self.log.debug(" Coins %s; destroyed %s; "
|
||||||
"unspent %s; op_return %s;" % (self.coins,
|
"unspent %s; op_return %s;" % (self.coins,
|
||||||
|
|||||||
@ -44,6 +44,7 @@ class UTXO():
|
|||||||
self.deleted_last_block = 0
|
self.deleted_last_block = 0
|
||||||
self.deleted_utxo = 0
|
self.deleted_utxo = 0
|
||||||
self.read_from_db_time = 0
|
self.read_from_db_time = 0
|
||||||
|
self.read_from_db_count = 0
|
||||||
self.read_from_db_time_total = 0
|
self.read_from_db_time_total = 0
|
||||||
self.loaded_utxo = 0
|
self.loaded_utxo = 0
|
||||||
self.destroyed_utxo = 0
|
self.destroyed_utxo = 0
|
||||||
@ -239,6 +240,7 @@ class UTXO():
|
|||||||
for i in l:
|
for i in l:
|
||||||
try: self.missed.remove(i)
|
try: self.missed.remove(i)
|
||||||
except: pass
|
except: pass
|
||||||
|
self.read_from_db_count += len(l)
|
||||||
self.read_from_db_time += time.time() - t
|
self.read_from_db_time += time.time() - t
|
||||||
self.read_from_db_time_total += time.time() - t
|
self.read_from_db_time_total += time.time() - t
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user