From d5d17a9a71885d1454e05b3a98a53afbad0fbca1 Mon Sep 17 00:00:00 2001 From: Henry de Valence Date: Thu, 12 Nov 2020 11:08:20 -0800 Subject: [PATCH] consensus: remove incorrect comment The ZcashDeserialize implementation for Block doesn't check that blocks have a coinbase height. --- zebra-consensus/src/block.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/zebra-consensus/src/block.rs b/zebra-consensus/src/block.rs index 2e0f99af..6c2926ea 100644 --- a/zebra-consensus/src/block.rs +++ b/zebra-consensus/src/block.rs @@ -138,9 +138,6 @@ where _ => unreachable!("wrong response to Request::Depth"), } - // We repeat the height checks here, to ensure that generated blocks - // are valid. (We check the block heights for parsed blocks when we - // deserialize them.) let height = block .coinbase_height() .ok_or(BlockError::MissingHeight(hash))?;