diff options
author | Karl-Johan Alm <karljohan-alm@garage.co.jp> | 2019-07-17 17:41:32 +0900 |
---|---|---|
committer | Karl-Johan Alm <karljohan-alm@garage.co.jp> | 2020-09-10 10:47:40 +0900 |
commit | 404682b7cdb54494e7c98f0ba0cac8b51f379750 (patch) | |
tree | efbf6c2ab88f7392185efefb5f77006c2db2cecc /src/consensus | |
parent | a2147d7dadec1febcd9c2b8ebbbf78dce6d0556b (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.h | 7 |
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 |