aboutsummaryrefslogtreecommitdiff
path: root/src/consensus
diff options
context:
space:
mode:
authorKarl-Johan Alm <karljohan-alm@garage.co.jp>2019-07-17 17:41:32 +0900
committerKarl-Johan Alm <karljohan-alm@garage.co.jp>2020-09-10 10:47:40 +0900
commit404682b7cdb54494e7c98f0ba0cac8b51f379750 (patch)
treeefbf6c2ab88f7392185efefb5f77006c2db2cecc /src/consensus
parenta2147d7dadec1febcd9c2b8ebbbf78dce6d0556b (diff)
add signet basic support (signet.cpp)
Co-authored-by: Anthony Towns <aj@erisian.com.au>
Diffstat (limited to 'src/consensus')
-rw-r--r--src/consensus/params.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/consensus/params.h b/src/consensus/params.h
index 61b1fbc2e5..85ab3f61ef 100644
--- a/src/consensus/params.h
+++ b/src/consensus/params.h
@@ -80,6 +80,13 @@ struct Params {
int64_t DifficultyAdjustmentInterval() const { return nPowTargetTimespan / nPowTargetSpacing; }
uint256 nMinimumChainWork;
uint256 defaultAssumeValid;
+
+ /**
+ * If true, witness commitments contain a payload equal to a Bitcoin Script solution
+ * to the signet challenge. See BIP325.
+ */
+ bool signet_blocks{false};
+ std::vector<uint8_t> signet_challenge;
};
} // namespace Consensus