connector
This commit is contained in:
parent
0563db5586
commit
acf0cf2740
@ -390,12 +390,14 @@ class Connector:
|
|||||||
loading = "Loading ... " if self.cache_loading else ""
|
loading = "Loading ... " if self.cache_loading else ""
|
||||||
self.log.info(loading + "UTXO %s; hit rate: %s;" % (self.utxo.len(),
|
self.log.info(loading + "UTXO %s; hit rate: %s;" % (self.utxo.len(),
|
||||||
self.utxo.hit_rate()))
|
self.utxo.hit_rate()))
|
||||||
self.log.info("Blocks downloaded %s; decoded %s" % (self.blocks_download_time,
|
self.log.info("Blocks downloaded %s; decoded %s" % (round(self.blocks_download_time, 4),
|
||||||
self.blocks_decode_time))
|
round(self.blocks_decode_time, 4)))
|
||||||
if self.deep_synchronization:
|
if self.deep_synchronization:
|
||||||
self.log.info("Blocks not cached %s; cache count %s" % (self.non_cached_blocks,
|
self.log.info("Blocks not cached %s; "
|
||||||
self.block_preload.len()))
|
"cache count %s; "
|
||||||
self.log.info("Blocks cache size %s M;" % round(self.block_preload._store_size/1024/1024,2))
|
"cache size %s M;" % (self.non_cached_blocks,
|
||||||
|
self.block_preload.len(),
|
||||||
|
round(self.block_preload._store_size / 1024 / 1024, 2)))
|
||||||
|
|
||||||
# after block added handler
|
# after block added handler
|
||||||
if self.after_block_handler and not self.cache_loading:
|
if self.after_block_handler and not self.cache_loading:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user