Skip to content

Commit fa729cd

Browse files
author
MarcoFalke
committed
doc: Move assumed-values doxygen comments to header
1 parent fa64892 commit fa729cd

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

src/chainparams.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,7 @@ class CMainParams : public CChainParams {
9191
consensus.vDeployments[Consensus::DEPLOYMENT_TAPROOT].nStartTime = 1199145601; // January 1, 2008
9292
consensus.vDeployments[Consensus::DEPLOYMENT_TAPROOT].nTimeout = 1230767999; // December 31, 2008
9393

94-
// The best chain should have at least this much work.
9594
consensus.nMinimumChainWork = uint256S("0x00000000000000000000000000000000000000000e1ab5ec9348e9f4b8eb8154");
96-
97-
// By default assume that the signatures in ancestors of this block are valid.
9895
consensus.defaultAssumeValid = uint256S("0x0000000000000000000f2adce67e49b0b6bdeb9de8b7c3d7e93b21e7fc1e819d"); // 623950
9996

10097
/**
@@ -207,10 +204,7 @@ class CTestNetParams : public CChainParams {
207204
consensus.vDeployments[Consensus::DEPLOYMENT_TAPROOT].nStartTime = 1199145601; // January 1, 2008
208205
consensus.vDeployments[Consensus::DEPLOYMENT_TAPROOT].nTimeout = 1230767999; // December 31, 2008
209206

210-
// The best chain should have at least this much work.
211207
consensus.nMinimumChainWork = uint256S("0x0000000000000000000000000000000000000000000001495c1d5a01e2af8a23");
212-
213-
// By default assume that the signatures in ancestors of this block are valid.
214208
consensus.defaultAssumeValid = uint256S("0x000000000000056c49030c174179b52a928c870e6e8a822c75973b7970cfbd01"); // 1692000
215209

216210
pchMessageStart[0] = 0x0b;
@@ -395,10 +389,7 @@ class CRegTestParams : public CChainParams {
395389
consensus.vDeployments[Consensus::DEPLOYMENT_TAPROOT].nStartTime = Consensus::BIP9Deployment::ALWAYS_ACTIVE;
396390
consensus.vDeployments[Consensus::DEPLOYMENT_TAPROOT].nTimeout = Consensus::BIP9Deployment::NO_TIMEOUT;
397391

398-
// The best chain should have at least this much work.
399392
consensus.nMinimumChainWork = uint256S("0x00");
400-
401-
// By default assume that the signatures in ancestors of this block are valid.
402393
consensus.defaultAssumeValid = uint256S("0x00");
403394

404395
pchMessageStart[0] = 0xfa;

src/consensus/params.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ struct Params {
7979
int64_t nPowTargetSpacing;
8080
int64_t nPowTargetTimespan;
8181
int64_t DifficultyAdjustmentInterval() const { return nPowTargetTimespan / nPowTargetSpacing; }
82+
/** The best chain should have at least this much work */
8283
uint256 nMinimumChainWork;
84+
/** By default assume that the signatures in ancestors of this block are valid */
8385
uint256 defaultAssumeValid;
8486

8587
/**

0 commit comments

Comments
 (0)