mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
Merge c5e67be03b into merged_master (Bitcoin PR bitcoin/bitcoin#24032)
This commit is contained in:
commit
d8660ae865
2 changed files with 4 additions and 3 deletions
6
src/consensus/params.h
Normal file → Executable file
6
src/consensus/params.h
Normal file → Executable file
|
|
@ -46,13 +46,13 @@ constexpr bool ValidDeployment(DeploymentPos dep) { return DEPLOYMENT_TESTDUMMY
|
|||
*/
|
||||
struct BIP9Deployment {
|
||||
/** Bit position to select the particular bit in nVersion. */
|
||||
int bit;
|
||||
int bit{28};
|
||||
/** Start MedianTime for version bits miner confirmation. Can be a date in the past */
|
||||
// ELEMENTS: Interpreted as block height!
|
||||
int64_t nStartTime;
|
||||
int64_t nStartTime{NEVER_ACTIVE};
|
||||
/** Timeout/expiry MedianTime for the deployment attempt. */
|
||||
// ELEMENTS: Interpreted as block height!
|
||||
int64_t nTimeout;
|
||||
int64_t nTimeout{NEVER_ACTIVE};
|
||||
/** If lock in occurs, delay activation until at least this block
|
||||
* height. Note that activation will only occur on a retarget
|
||||
* boundary.
|
||||
|
|
|
|||
|
|
@ -273,6 +273,7 @@ static void check_computeblockversion(VersionBitsCache& versionbitscache, const
|
|||
nStartTime == Consensus::BIP9Deployment::NEVER_ACTIVE)
|
||||
{
|
||||
BOOST_CHECK_EQUAL(min_activation_height, 0);
|
||||
BOOST_CHECK_EQUAL(nTimeout, Consensus::BIP9Deployment::NO_TIMEOUT);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue