diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2016-02-15 05:13:27 +0100 |
---|---|---|
committer | BtcDrak <btcdrak@gmail.com> | 2016-03-18 09:14:52 +0000 |
commit | 6f83cf2adb2fd73cfeaa8ef67054ea8a0e4ef4db (patch) | |
tree | 8958c2d5a7f146c560d73f1b85149a1be098647c /src/main.h | |
parent | ade85e126d1ba7cb90a3382fb8c3cc4f3b89dc4d (diff) | |
download | bitcoin-6f83cf2adb2fd73cfeaa8ef67054ea8a0e4ef4db.tar.xz |
BIP9 Implementation
Inspired by former implementations by Eric Lombrozo and Rusty Russell, and
based on code by Jorge Timon.
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h index 3793f55ba2..8c6a51cacd 100644 --- a/src/main.h +++ b/src/main.h @@ -528,6 +528,11 @@ extern CBlockTreeDB *pblocktree; */ int GetSpendHeight(const CCoinsViewCache& inputs); +/** + * Determine what nVersion a new block should use. + */ +int32_t ComputeBlockVersion(const CBlockIndex* pindexPrev, const Consensus::Params& params); + /** Reject codes greater or equal to this can be returned by AcceptToMemPool * for transactions, to signal internal conditions. They cannot and should not * be sent over the P2P network. |