diff --git a/zebra-consensus/src/chain.rs b/zebra-consensus/src/chain.rs index 3cfca999..7f7fc1bf 100644 --- a/zebra-consensus/src/chain.rs +++ b/zebra-consensus/src/chain.rs @@ -118,7 +118,7 @@ where // to use BlockVerifier, CheckpointVerifier, or both. // Call a verifier based on the block height and checkpoints. - let hash = match height { + match height { Some(height) if (height <= max_checkpoint_height) => { checkpoint_verifier .ready_and() @@ -126,7 +126,7 @@ where .call(block.clone()) .await? } - Some(height) => { + _ => { // Temporary trace, for identifying early high blocks. // We think the downloader or sync service should reject these blocks if is_unexpected_high_block { @@ -139,10 +139,6 @@ where .call(block.clone()) .await? } - None => { - tracing::debug!("rejecting block with no coinbase height"); - return Err("Invalid block: must have a coinbase height".into()); - } }; // TODO(teor):