aboutsummaryrefslogtreecommitdiff
path: root/src/consensus/params.h
diff options
context:
space:
mode:
authorRoss Nicoll <[email protected]>2021-06-08 08:26:03 +0100
committerRoss Nicoll <[email protected]>2021-06-08 08:29:43 +0100
commitd662bd50115c426ef7349f35e2cdb0f8c0467c81 (patch)
tree95b5031d99381cf2a472239ab3572e38613b4cb0 /src/consensus/params.h
parentIntroduce AuxPoW chain parameters (diff)
downloaddiscoin-d662bd50115c426ef7349f35e2cdb0f8c0467c81.tar.xz
discoin-d662bd50115c426ef7349f35e2cdb0f8c0467c81.zip
Switch naming of AuxPoW activation to match BIPxxHeight style
Also removes the AllowLegacyBlocks() function, to be replaced by directly checking height against the value (as per style used elsewhere).
Diffstat (limited to 'src/consensus/params.h')
-rw-r--r--src/consensus/params.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/consensus/params.h b/src/consensus/params.h
index baf841e33..d16cb6338 100644
--- a/src/consensus/params.h
+++ b/src/consensus/params.h
@@ -99,19 +99,7 @@ struct Params {
/** Auxpow parameters */
int32_t nAuxpowChainId;
bool fStrictChainId;
- int nLegacyBlocksBefore; // -1 for "always allow"
-
- /**
- * Check whether or not to allow legacy blocks at the given height.
- * @param nHeight Height of the block to check.
- * @return True if it is allowed to have a legacy version.
- */
- bool AllowLegacyBlocks(unsigned nHeight) const
- {
- if (nLegacyBlocksBefore < 0)
- return true;
- return static_cast<int> (nHeight) < nLegacyBlocksBefore;
- }
+ int nAuxPowHeight; // 0 for "always on"
};
} // namespace Consensus