aboutsummaryrefslogtreecommitdiff
path: root/src/consensus
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-11-16 14:40:19 +0100
committerMarcoFalke <falke.marco@gmail.com>2022-01-29 14:48:37 +0100
commitcccc1e70b8a14430cc94143da97936a60d6c83d3 (patch)
treec28482c21587e74823811b914990558217ca3408 /src/consensus
parentfa422994116a7a053789304d56159760081479eb (diff)
downloadbitcoin-cccc1e70b8a14430cc94143da97936a60d6c83d3.tar.xz
Enforce Taproot script flags whenever WITNESS is set
Diffstat (limited to 'src/consensus')
-rw-r--r--src/consensus/params.h11
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;