From bd9c954667d3a48106448c3bd48b6ca73f227ba1 Mon Sep 17 00:00:00 2001 From: Conrado Gouvea Date: Wed, 15 Dec 2021 11:16:59 -0300 Subject: [PATCH] Disable Sprout anchor check (#3206) Co-authored-by: teor Co-authored-by: Deirdre Connolly --- zebra-state/src/service/check/anchors.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/zebra-state/src/service/check/anchors.rs b/zebra-state/src/service/check/anchors.rs index 4d9d293f..38ce8625 100644 --- a/zebra-state/src/service/check/anchors.rs +++ b/zebra-state/src/service/check/anchors.rs @@ -72,9 +72,12 @@ pub(crate) fn anchors_refer_to_earlier_treestates( && !finalized_state.contains_sprout_anchor(&joinsplit.anchor) && (!interstitial_roots.contains(&joinsplit.anchor)) { - return Err(ValidateContextError::UnknownSproutAnchor { - anchor: joinsplit.anchor, - }); + // TODO: some block after ~1_200_000 is reaching here. + // Restore after finding the cause and fixing it. + // return Err(ValidateContextError::UnknownSproutAnchor { + // anchor: joinsplit.anchor, + // }); + tracing::error!(?joinsplit.anchor, ?prepared.height, ?prepared.hash, "failed to find sprout anchor") } tracing::debug!(?joinsplit.anchor, "validated sprout anchor");