Chainparams: Refactor: Remove redundant AllowMinDifficultyBlocks() getter #5998
pull jtimon wants to merge 1 commits into bitcoin:master from jtimon:params_mindiff changing 4 files +15 −14-
jtimon commented at 6:45 pm on April 10, 2015: contributorA small part of #5970.
-
in src/miner.h: in d1032bc08c outdated
5@@ -6,6 +6,7 @@ 6 #ifndef BITCOIN_MINER_H 7 #define BITCOIN_MINER_H 8 9+#include "consensus/params.h" 10 #include "primitives/block.h"
theuni commented at 6:59 pm on April 10, 2015:Forward-declare instead?theuni commented at 7:00 pm on April 10, 2015: memberut ACK other than the nit.sipa commented at 8:34 am on April 11, 2015: memberut ACKjtimon force-pushed on Apr 12, 2015jtimon force-pushed on Apr 14, 2015jtimon commented at 1:05 pm on April 14, 2015: contributornit (forward declaration of Consensus::Params) fixedin src/miner.h: in bce7b6ef60 outdated
29@@ -29,6 +30,6 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn); 30 CBlockTemplate* CreateNewBlockWithKey(CReserveKey& reservekey); 31 /** Modify the extranonce in a block */ 32 void IncrementExtraNonce(CBlock* pblock, CBlockIndex* pindexPrev, unsigned int& nExtraNonce); 33-void UpdateTime(CBlockHeader* block, const CBlockIndex* pindexPrev); 34+void UpdateTime(CBlockHeader*, const Consensus::Params&, const CBlockIndex*);
laanwj commented at 9:13 am on April 15, 2015:I don’t agree on removing the argument names here, they serve as a kind of documentation.laanwj commented at 10:15 am on April 15, 2015: memberutACK apart from above nitjtimon force-pushed on Apr 15, 2015Chainparams: Refactor: Remove redundant AllowMinDifficultyBlocks() getter bebe7282ffjtimon force-pushed on Apr 15, 2015in src/miner.h: in bebe7282ff
13@@ -14,6 +14,7 @@ class CBlockIndex; 14 class CReserveKey; 15 class CScript; 16 class CWallet; 17+namespace Consensus { class Params; };
Diapolo commented at 12:51 pm on April 15, 2015:Nit: If you mind add a new-line here, but that’s not meant to be of any interrest if this is going to get merged now :).laanwj merged this on Apr 15, 2015laanwj closed this on Apr 15, 2015
laanwj referenced this in commit 9ab7cbffce on Apr 15, 2015MarcoFalke locked this on Sep 8, 2021
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-17 09:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me