From 7d73ebd7afe7acae18dff58b3e3b24d49aeb335c Mon Sep 17 00:00:00 2001 From: Duke Date: Sun, 7 Jan 2024 10:25:36 -0800 Subject: [PATCH] Remove voutsum variable which is calculated but never used --- src/miner.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/miner.cpp b/src/miner.cpp index edfd1742c..e258d8d38 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -174,7 +174,7 @@ CBlockTemplate* CreateNewBlock(CPubKey _pk,const CScript& _scriptPubKeyIn, int32 } } else pk = _pk; - uint64_t voutsum=0; uint32_t blocktime; const CChainParams& chainparams = Params(); + uint32_t blocktime; const CChainParams& chainparams = Params(); bool fNotarizationBlock = false; std::vector NotarizationNotaries; //fprintf(stderr,"%s: create new block with pubkey=%s\n", __func__, HexStr(pk).c_str()); @@ -241,9 +241,6 @@ CBlockTemplate* CreateNewBlock(CPubKey _pk,const CScript& _scriptPubKeyIn, int32 //fprintf(stderr,"%s: nHeight=%d, consensusBranchId=%u, proposedTime=%u\n", __func__, nHeight, consensusBranchId, proposedTime); - voutsum = GetBlockSubsidy(nHeight,consensusParams) + 10000*COIN; // approx fees - //fprintf(stderr,"%s: voutsum=%lu\n", __func__, voutsum); - if (proposedTime == nMedianTimePast) { // too fast or stuck, this addresses the too fast issue, while moving