From e0d8bf9e99e2ad122b6187e10ec03844d24ce90c Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Thu, 28 Mar 2019 13:22:11 +0200 Subject: [PATCH] Logging in preInit works just fine locally; pushing to test on the CI --- beacon_chain/block_pool.nim | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/beacon_chain/block_pool.nim b/beacon_chain/block_pool.nim index 968c4b655..dabd3168e 100644 --- a/beacon_chain/block_pool.nim +++ b/beacon_chain/block_pool.nim @@ -578,12 +578,11 @@ proc preInit*( let blockRoot = signed_root(blck) - # TODO Error: undeclared identifier: 'log' - # notice "Creating new database from snapshot", - # blockRoot = shortLog(blockRoot), - # stateRoot = shortLog(blck.state_root), - # fork = state.fork, - # validators = state.validator_registry.len() + notice "Creating new database from snapshot", + blockRoot = shortLog(blockRoot), + stateRoot = shortLog(blck.state_root), + fork = state.fork, + validators = state.validator_registry.len() db.putState(state) db.putBlock(blck)