From fcde7f3a783d189c033b1ed4ed02c3a91b11df0f Mon Sep 17 00:00:00 2001 From: Svyatoslav Nikolsky Date: Mon, 6 Nov 2017 12:09:32 +0300 Subject: [PATCH] removed redundant match --- verification/src/work.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/verification/src/work.rs b/verification/src/work.rs index 681ef5a6..182c7d27 100644 --- a/verification/src/work.rs +++ b/verification/src/work.rs @@ -82,10 +82,7 @@ pub fn work_required(parent_hash: H256, time: u32, height: u32, store: &BlockHea return work_required_testnet(parent_hash, time, height, store, Network::Testnet) } - match consensus.fork { - _ if parent_header.bits == max_bits => parent_header.bits, - _ => parent_header.bits, - } + parent_header.bits, } pub fn work_required_testnet(parent_hash: H256, time: u32, height: u32, store: &BlockHeaderProvider, network: Network) -> Compact {