periodically log internal statistics

and bump submodules
This commit is contained in:
Ștefan Talpalaru 2019-06-26 14:51:59 +02:00
parent 4d3285eb9b
commit b71ce17ac3
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
15 changed files with 21 additions and 14 deletions

View File

@ -124,6 +124,13 @@ proc start(): NimbusObject =
result = "EXITING"
nimbus.rpcServer.start()
# periodically log internal statistics
let statsInterval = 10.seconds
proc printStats(udata: pointer) {.closure, gcsafe.} =
info "stats", nimbusStats
addTimer(Moment.fromNow(statsInterval), printStats)
addTimer(Moment.fromNow(statsInterval), printStats)
# Connect directly to the static nodes
for enode in conf.net.staticNodes:
asyncCheck nimbus.ethNode.peerPool.connectToNode(newNode(enode))

@ -1 +1 @@
Subproject commit 69f3095facbb5b2e6b6235bf57048925f54865ec
Subproject commit 43a9e904cf76a59f36a8be28b90eb9c05ad64add

2
vendor/nim-blscurve vendored

@ -1 +1 @@
Subproject commit e6dd2739c05bf21880e93efd7e76369544316905
Subproject commit 024418c9afad1d9da2cf667da7cd612b42b191eb

2
vendor/nim-bncurve vendored

@ -1 +1 @@
Subproject commit c356fd9fa9a2aa250cc8fa440782404f6b87f792
Subproject commit 09d0f93fb11c9c2c5081a51cc207e067bd962f37

@ -1 +1 @@
Subproject commit 1beb0f608983e00b9ef962cc59ae8d9893102247
Subproject commit 8b471d9653ef93319dc6eb131227eefc9802d5d4

@ -1 +1 @@
Subproject commit fe0c4ab3f805ca73048ec21f00f05c9b0e9bf52d
Subproject commit c9267e725cbc429245b4c1fa28f799e1098f3972

2
vendor/nim-chronos vendored

@ -1 +1 @@
Subproject commit f83d1b4da446f316f14053c017929a37afe29c52
Subproject commit 31f4dc309640d1c195aaf323ed682ada3832455e

2
vendor/nim-eth vendored

@ -1 +1 @@
Subproject commit 07484bfc88c2142df8073f6636af81179a261d2c
Subproject commit 69de12e636befe9a0824afe46a2fc330b3440368

@ -1 +1 @@
Subproject commit c674d07044ea75e395c4702a5d9a2fa16419450e
Subproject commit 7e456be185e42f59b8218cd4f15a6c98d9430bd9

2
vendor/nim-json-rpc vendored

@ -1 +1 @@
Subproject commit 48699c50ca449c52cd8ac0130df760ccf0f1d1d9
Subproject commit af33cb9fbc3993247bbf899abb03f8a84c1d7d82

2
vendor/nim-libp2p vendored

@ -1 +1 @@
Subproject commit 3493b9ff7f02b34ea195893258a23c19e751c5f6
Subproject commit bf7a7f9b73a1e9f93b1f05051c007f689438e011

2
vendor/nim-ranges vendored

@ -1 +1 @@
Subproject commit 7c422ae0277c1e3208ce3b8b4cc8dd16beeb31a7
Subproject commit c90fccd0cfff5dc4c3540f460e1e6b121c3ba954

2
vendor/nim-rocksdb vendored

@ -1 +1 @@
Subproject commit 22ab21a5efb6f9b667cb3212d6b37eea24daae04
Subproject commit 234c7d2756ccd6b4ee9e543ca8ffc2455d0da95e

@ -1 +1 @@
Subproject commit 53baf442f2dd711768b96688f9ac1bfed90e7d61
Subproject commit a41d4432a17a8d024e5bb47c9bdcc641ef309e97

2
vendor/nim-stint vendored

@ -1 +1 @@
Subproject commit ccf87daac1eef15238ff3d6d2edb138e22180d19
Subproject commit 0761f33b91a7e05afd3c1c197ab80e938aad2ae6