From 133ebd078ae707132f4d9fb3f3e2480302eeef8a Mon Sep 17 00:00:00 2001 From: teor Date: Tue, 24 Nov 2020 20:51:30 +1000 Subject: [PATCH] Remove a post-Canopy panic in funding stream block subsidy validation Funding stream block subsidy validation will be implemented as part of block subsidy validation in #801. --- zebra-consensus/src/block/check.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zebra-consensus/src/block/check.rs b/zebra-consensus/src/block/check.rs index b522d0f3..c06d9992 100644 --- a/zebra-consensus/src/block/check.rs +++ b/zebra-consensus/src/block/check.rs @@ -132,7 +132,9 @@ pub fn subsidy_is_valid(block: &Block, network: Network) -> Result<(), BlockErro // Funding streams are paid from Canopy activation to the second halving // Note: Canopy activation is at the first halving on mainnet, but not on testnet // ZIP-1014 only applies to mainnet, ZIP-214 contains the specific rules for testnet - unimplemented!("funding stream block subsidy validation is not implemented") + tracing::trace!("funding stream block subsidy validation is not implemented"); + // Return ok for now + Ok(()) } else { // Future halving, with no founders reward or funding streams Ok(())