From 6ad13bbbe62693fc3f11279ef332e77da95eed73 Mon Sep 17 00:00:00 2001 From: Gregory Sanders Date: Fri, 7 Dec 2018 10:31:04 +0100 Subject: [PATCH] Signed blocks have work of 1 each --- src/chain.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/chain.cpp b/src/chain.cpp index d462f94ab5..8e60397eff 100644 --- a/src/chain.cpp +++ b/src/chain.cpp @@ -120,6 +120,11 @@ void CBlockIndex::BuildSkip() arith_uint256 GetBlockProof(const CBlockIndex& block) { + // All valid signed blocks have "weight" 1 + if (g_signed_blocks) { + return 1; + } + arith_uint256 bnTarget; bool fNegative; bool fOverflow;