aboutsummaryrefslogtreecommitdiff
path: root/src/versionbits.h
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2016-04-23 23:30:20 +0000
committerLuke Dashjr <luke-jr+git@utopios.org>2016-06-06 17:10:22 +0000
commitd3df40e51a29bd98830043dd19829126390d1bc4 (patch)
treeedfd8caa0807b98e7ab56b91729018040f8fd8a6 /src/versionbits.h
parent71527a0f31ae67edad0a7fcda59c75a6ce5666ca (diff)
downloadbitcoin-d3df40e51a29bd98830043dd19829126390d1bc4.tar.xz
Implement BIP 9 GBT changes
- BIP9DeploymentInfo struct for static deployment info - VersionBitsDeploymentInfo: Avoid C++11ism by commenting parameter names - getblocktemplate: Make sure to set deployments in the version if it is LOCKED_IN - In this commit, all rules are considered required for clients to support
Diffstat (limited to 'src/versionbits.h')
-rw-r--r--src/versionbits.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/versionbits.h b/src/versionbits.h
index 04f4738272..d805942028 100644
--- a/src/versionbits.h
+++ b/src/versionbits.h
@@ -30,6 +30,13 @@ enum ThresholdState {
// will either be NULL or a block with (height + 1) % Period() == 0.
typedef std::map<const CBlockIndex*, ThresholdState> ThresholdConditionCache;
+struct BIP9DeploymentInfo {
+ /** Deployment name */
+ const char *name;
+};
+
+extern const struct BIP9DeploymentInfo VersionBitsDeploymentInfo[];
+
/**
* Abstract class that implements BIP9-style threshold logic, and caches results.
*/