diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-11-16 14:40:19 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2022-01-29 14:48:37 +0100 |
commit | cccc1e70b8a14430cc94143da97936a60d6c83d3 (patch) | |
tree | c28482c21587e74823811b914990558217ca3408 /src/consensus/params.h | |
parent | fa422994116a7a053789304d56159760081479eb (diff) |
Enforce Taproot script flags whenever WITNESS is set
Diffstat (limited to 'src/consensus/params.h')
-rw-r--r-- | src/consensus/params.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/consensus/params.h b/src/consensus/params.h index 77bf7fd0d8..aca1995c36 100644 --- a/src/consensus/params.h +++ b/src/consensus/params.h @@ -7,7 +7,9 @@ #define BITCOIN_CONSENSUS_PARAMS_H #include <uint256.h> + #include <limits> +#include <map> namespace Consensus { @@ -70,8 +72,13 @@ struct BIP9Deployment { struct Params { uint256 hashGenesisBlock; int nSubsidyHalvingInterval; - /* Block hash that is excepted from BIP16 enforcement */ - uint256 BIP16Exception; + /** + * 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. + */ + std::map<uint256, uint32_t> script_flag_exceptions; /** Block height and hash at which BIP34 becomes active */ int BIP34Height; uint256 BIP34Hash; |