Disable Sprout anchor check (#3206)

Co-authored-by: teor <teor@riseup.net>
Co-authored-by: Deirdre Connolly <deirdre@zfnd.org>
This commit is contained in:
Conrado Gouvea 2021-12-15 11:16:59 -03:00 committed by GitHub
parent a09169d4bb
commit bd9c954667
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions

View File

@ -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");