From 897176761dbe5e585986da67dd6b0c959f922d55 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Wed, 27 Nov 2019 11:20:58 +0200 Subject: [PATCH] even more tracing for testnet1 [skip ci] --- beacon_chain/block_pool.nim | 2 ++ docker/Dockerfile | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/beacon_chain/block_pool.nim b/beacon_chain/block_pool.nim index 50c591325..df094584f 100644 --- a/beacon_chain/block_pool.nim +++ b/beacon_chain/block_pool.nim @@ -370,6 +370,7 @@ proc getBlockRange*(pool: BlockPool, headBlock: Eth2Digest, if b.parent == nil: trace "stopping at parentless block", slot = b.slot, root = b.root return + trace "skipping block", nextBlock = b.parent b = b.parent # We must compute the last block that is eligible for inclusion @@ -386,6 +387,7 @@ proc getBlockRange*(pool: BlockPool, headBlock: Eth2Digest, blocksToSkip += (alignedHeadSlot - lastWantedSlot) # Finally, we skip the computed number of blocks + trace "aligning head", blocksToSkip skip blocksToSkip # From here, we can just write out the requested block range: diff --git a/docker/Dockerfile b/docker/Dockerfile index 14acd6984..9eaccc7a3 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -26,7 +26,7 @@ RUN cd /root/nim-beacon-chain \ && git fetch \ && git reset --hard ${GIT_REVISION} \ && make -j$(nproc) update \ - && make LOG_LEVEL=DEBUG NIMFLAGS="-d:debug -d:insecure -d:testnet_servers_image ${NETWORK_NIM_FLAGS}" beacon_node + && make LOG_LEVEL=TRACE NIMFLAGS="-d:debug -d:insecure -d:testnet_servers_image ${NETWORK_NIM_FLAGS}" beacon_node # --------------------------------- # # Starting new image to reduce size #