Parameters that influence chain consensus.
Synopsis
Declared in <consensus/params.h>
struct Params;
Member Functions
Name |
Description |
Returns the activation height of a buried deployment. |
|
Returns the number of blocks in one difficulty retargeting interval. |
|
Returns the target spacing between blocks. |
Data Members
Name |
Description |
Hash of the block at which BIP34 becomes active. |
|
Block height and hash at which BIP34 becomes active |
|
Block height at which BIP65 becomes active |
|
Block height at which BIP66 becomes active |
|
Block height at which CSV (BIP68, BIP112 and BIP113) becomes active |
|
Don't warn about unknown BIP 9 activations below this height. This prevents us from warning about the CSV, segwit and taproot activations. |
|
Block height at which Segwit (BIP141, BIP143 and BIP147) becomes active. Note that segwit v0 script rules are enforced on all blocks except the BIP 16 exception blocks. |
|
By default assume that the signatures in ancestors of this block are valid |
|
Enforce BIP94 timewarp attack mitigation. On testnet4 this also enforces the block storm mitigation. |
|
If true, allow minimum‐difficulty blocks after a long gap (used on test chains). |
|
If true, disable difficulty retargeting (used on the regression test chain). |
|
Hash of the genesis block for this chain. |
|
The best chain should have at least this much work |
|
Target spacing between blocks, in seconds. |
|
Length of a difficulty retargeting window, in seconds. |
|
Number of blocks between successive halvings of the block subsidy. |
|
Proof of work parameters |
|
Hashes of blocks that ‐ are known to be consensus valid, and ‐ buried in the chain, and ‐ fail if the default script verify flags are applied. |
|
If true, witness commitments contain a payload equal to a Bitcoin Script solution to the signet challenge. See BIP325. |
|
Bitcoin Script challenge that signet block witness commitments must solve (BIP325). |
|
Per‐deployment BIP9 version‐bits parameters, indexed by DeploymentPos. |
Non-Member Functions
Name |
Description |
Determine if a version‐bits deployment is enabled (can ever be active). |
|
Determine if a deployment is enabled (can ever be active) |
|
Return false if the proof‐of‐work requirement specified by new_nbits at a given height is not possible, given the proof‐of‐work on the prior block as specified by old_nbits. |
Created with MrDocs