From 2e7f33a958f88d09e1affaef4356d056a18e4c5d Mon Sep 17 00:00:00 2001 From: Henry de Valence Date: Fri, 11 Sep 2020 12:53:19 -0700 Subject: [PATCH] consensus: restore chain verifier info! event --- zebra-consensus/src/chain.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zebra-consensus/src/chain.rs b/zebra-consensus/src/chain.rs index 9a800a55..62873400 100644 --- a/zebra-consensus/src/chain.rs +++ b/zebra-consensus/src/chain.rs @@ -8,6 +8,7 @@ use std::{ task::{Context, Poll}, }; use tower::{buffer::Buffer, util::BoxService, Service, ServiceExt}; +use tracing::instrument; use zebra_chain::{ block::{self, Block}, @@ -109,6 +110,7 @@ where /// `state_service`. /// /// This function should only be called once for a particular state service. +#[instrument(skip(state_service))] pub async fn init( config: Config, network: Network, @@ -138,6 +140,7 @@ where zs::Response::Tip(tip) => tip, _ => unreachable!("wrong response to Request::Tip"), }; + tracing::info!(?tip, ?max_checkpoint_height, "initializing chain verifier"); let block = BlockVerifier::new(state_service.clone()); let checkpoint = CheckpointVerifier::from_checkpoint_list(list, tip, state_service);