aboutsummaryrefslogtreecommitdiff
path: root/src/versionbits.h
diff options
context:
space:
mode:
authorAnthony Towns <aj@erisian.com.au>2021-04-16 18:33:02 +1000
committerAnthony Towns <aj@erisian.com.au>2021-06-30 08:19:12 +1000
commit4a69b4dbe0d7f504811b67c399da7e6d11e4f805 (patch)
treef68a96ce61f4cbc31c2550f75950c450e18fb98f /src/versionbits.h
parent0cfd6c6a8f929d5567ac41f95c21548f115efee5 (diff)
[move-only] Move ComputeBlockVersion from validation to versionbits
Diffstat (limited to 'src/versionbits.h')
-rw-r--r--src/versionbits.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/versionbits.h b/src/versionbits.h
index 4ede920803..c18a8d1176 100644
--- a/src/versionbits.h
+++ b/src/versionbits.h
@@ -96,4 +96,9 @@ public:
void Clear();
};
+/**
+ * Determine what nVersion a new block should use.
+ */
+int32_t ComputeBlockVersion(const CBlockIndex* pindexPrev, const Consensus::Params& params);
+
#endif // BITCOIN_VERSIONBITS_H