From b71ce17ac3544c6d5ca9b1061aeafc22206b0584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan=20Talpalaru?= Date: Wed, 26 Jun 2019 14:51:59 +0200 Subject: [PATCH] periodically log internal statistics and bump submodules --- nimbus/nimbus.nim | 7 +++++++ vendor/nim-beacon-chain | 2 +- vendor/nim-blscurve | 2 +- vendor/nim-bncurve | 2 +- vendor/nim-byteutils | 2 +- vendor/nim-chronicles | 2 +- vendor/nim-chronos | 2 +- vendor/nim-eth | 2 +- vendor/nim-http-utils | 2 +- vendor/nim-json-rpc | 2 +- vendor/nim-libp2p | 2 +- vendor/nim-ranges | 2 +- vendor/nim-rocksdb | 2 +- vendor/nim-secp256k1 | 2 +- vendor/nim-stint | 2 +- 15 files changed, 21 insertions(+), 14 deletions(-) diff --git a/nimbus/nimbus.nim b/nimbus/nimbus.nim index b38d1bb33..97e574d61 100644 --- a/nimbus/nimbus.nim +++ b/nimbus/nimbus.nim @@ -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)) diff --git a/vendor/nim-beacon-chain b/vendor/nim-beacon-chain index 69f3095fa..43a9e904c 160000 --- a/vendor/nim-beacon-chain +++ b/vendor/nim-beacon-chain @@ -1 +1 @@ -Subproject commit 69f3095facbb5b2e6b6235bf57048925f54865ec +Subproject commit 43a9e904cf76a59f36a8be28b90eb9c05ad64add diff --git a/vendor/nim-blscurve b/vendor/nim-blscurve index e6dd2739c..024418c9a 160000 --- a/vendor/nim-blscurve +++ b/vendor/nim-blscurve @@ -1 +1 @@ -Subproject commit e6dd2739c05bf21880e93efd7e76369544316905 +Subproject commit 024418c9afad1d9da2cf667da7cd612b42b191eb diff --git a/vendor/nim-bncurve b/vendor/nim-bncurve index c356fd9fa..09d0f93fb 160000 --- a/vendor/nim-bncurve +++ b/vendor/nim-bncurve @@ -1 +1 @@ -Subproject commit c356fd9fa9a2aa250cc8fa440782404f6b87f792 +Subproject commit 09d0f93fb11c9c2c5081a51cc207e067bd962f37 diff --git a/vendor/nim-byteutils b/vendor/nim-byteutils index 1beb0f608..8b471d965 160000 --- a/vendor/nim-byteutils +++ b/vendor/nim-byteutils @@ -1 +1 @@ -Subproject commit 1beb0f608983e00b9ef962cc59ae8d9893102247 +Subproject commit 8b471d9653ef93319dc6eb131227eefc9802d5d4 diff --git a/vendor/nim-chronicles b/vendor/nim-chronicles index fe0c4ab3f..c9267e725 160000 --- a/vendor/nim-chronicles +++ b/vendor/nim-chronicles @@ -1 +1 @@ -Subproject commit fe0c4ab3f805ca73048ec21f00f05c9b0e9bf52d +Subproject commit c9267e725cbc429245b4c1fa28f799e1098f3972 diff --git a/vendor/nim-chronos b/vendor/nim-chronos index f83d1b4da..31f4dc309 160000 --- a/vendor/nim-chronos +++ b/vendor/nim-chronos @@ -1 +1 @@ -Subproject commit f83d1b4da446f316f14053c017929a37afe29c52 +Subproject commit 31f4dc309640d1c195aaf323ed682ada3832455e diff --git a/vendor/nim-eth b/vendor/nim-eth index 07484bfc8..69de12e63 160000 --- a/vendor/nim-eth +++ b/vendor/nim-eth @@ -1 +1 @@ -Subproject commit 07484bfc88c2142df8073f6636af81179a261d2c +Subproject commit 69de12e636befe9a0824afe46a2fc330b3440368 diff --git a/vendor/nim-http-utils b/vendor/nim-http-utils index c674d0704..7e456be18 160000 --- a/vendor/nim-http-utils +++ b/vendor/nim-http-utils @@ -1 +1 @@ -Subproject commit c674d07044ea75e395c4702a5d9a2fa16419450e +Subproject commit 7e456be185e42f59b8218cd4f15a6c98d9430bd9 diff --git a/vendor/nim-json-rpc b/vendor/nim-json-rpc index 48699c50c..af33cb9fb 160000 --- a/vendor/nim-json-rpc +++ b/vendor/nim-json-rpc @@ -1 +1 @@ -Subproject commit 48699c50ca449c52cd8ac0130df760ccf0f1d1d9 +Subproject commit af33cb9fbc3993247bbf899abb03f8a84c1d7d82 diff --git a/vendor/nim-libp2p b/vendor/nim-libp2p index 3493b9ff7..bf7a7f9b7 160000 --- a/vendor/nim-libp2p +++ b/vendor/nim-libp2p @@ -1 +1 @@ -Subproject commit 3493b9ff7f02b34ea195893258a23c19e751c5f6 +Subproject commit bf7a7f9b73a1e9f93b1f05051c007f689438e011 diff --git a/vendor/nim-ranges b/vendor/nim-ranges index 7c422ae02..c90fccd0c 160000 --- a/vendor/nim-ranges +++ b/vendor/nim-ranges @@ -1 +1 @@ -Subproject commit 7c422ae0277c1e3208ce3b8b4cc8dd16beeb31a7 +Subproject commit c90fccd0cfff5dc4c3540f460e1e6b121c3ba954 diff --git a/vendor/nim-rocksdb b/vendor/nim-rocksdb index 22ab21a5e..234c7d275 160000 --- a/vendor/nim-rocksdb +++ b/vendor/nim-rocksdb @@ -1 +1 @@ -Subproject commit 22ab21a5efb6f9b667cb3212d6b37eea24daae04 +Subproject commit 234c7d2756ccd6b4ee9e543ca8ffc2455d0da95e diff --git a/vendor/nim-secp256k1 b/vendor/nim-secp256k1 index 53baf442f..a41d4432a 160000 --- a/vendor/nim-secp256k1 +++ b/vendor/nim-secp256k1 @@ -1 +1 @@ -Subproject commit 53baf442f2dd711768b96688f9ac1bfed90e7d61 +Subproject commit a41d4432a17a8d024e5bb47c9bdcc641ef309e97 diff --git a/vendor/nim-stint b/vendor/nim-stint index ccf87daac..0761f33b9 160000 --- a/vendor/nim-stint +++ b/vendor/nim-stint @@ -1 +1 @@ -Subproject commit ccf87daac1eef15238ff3d6d2edb138e22180d19 +Subproject commit 0761f33b91a7e05afd3c1c197ab80e938aad2ae6