connector
This commit is contained in:
parent
4807096349
commit
935bba0944
@ -445,7 +445,7 @@ class Connector:
|
|||||||
self.log.debug(" Cache first block %s; "
|
self.log.debug(" Cache first block %s; "
|
||||||
"cache last block %s;" % (next(iter(self.block_preload._store)),
|
"cache last block %s;" % (next(iter(self.block_preload._store)),
|
||||||
next(reversed(self.block_preload._store))))
|
next(reversed(self.block_preload._store))))
|
||||||
self.log.debug(" Preload coins cache -> %s:%s [%s] "
|
self.log.debug(" Preload coins cache -> %s:%s [%s] "
|
||||||
"preload cache efficiency %s;" % (self.preload_cached,
|
"preload cache efficiency %s;" % (self.preload_cached,
|
||||||
self.preload_cached_annihilated,
|
self.preload_cached_annihilated,
|
||||||
self.preload_cached_total,
|
self.preload_cached_total,
|
||||||
@ -463,13 +463,16 @@ 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))
|
||||||
|
if self.utxo.read_from_db_time_total:
|
||||||
|
c = round(self.utxo.read_from_db_count / self.utxo.read_from_db_time_total, 4)
|
||||||
|
else:
|
||||||
|
c = 0
|
||||||
self.log.debug(" Read from db last batch %s; "
|
self.log.debug(" Read from db last batch %s; "
|
||||||
"count %s; "
|
"count %s; "
|
||||||
"rate %s; "
|
"rate %s; "
|
||||||
"total time %s; " % (round(self.utxo.read_from_db_time, 4),
|
"total time %s; " % (round(self.utxo.read_from_db_time, 4),
|
||||||
self.utxo.read_from_db_count,
|
self.utxo.read_from_db_count,
|
||||||
round(self.utxo.read_from_db_count
|
c,
|
||||||
/self.utxo.read_from_db_time_total, 4),
|
|
||||||
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.utxo.read_from_db_count = 0
|
||||||
|
|||||||
@ -45,7 +45,7 @@ class UTXO():
|
|||||||
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_count = 0
|
||||||
self.read_from_db_time_total = 1
|
self.read_from_db_time_total = 0
|
||||||
self.loaded_utxo = 0
|
self.loaded_utxo = 0
|
||||||
self.destroyed_utxo = 0
|
self.destroyed_utxo = 0
|
||||||
self.destroyed_utxo_block = 0
|
self.destroyed_utxo_block = 0
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user