From 4a69b4dbe0d7f504811b67c399da7e6d11e4f805 Mon Sep 17 00:00:00 2001 From: Anthony Towns Date: Fri, 16 Apr 2021 18:33:02 +1000 Subject: [move-only] Move ComputeBlockVersion from validation to versionbits --- src/versionbits.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/versionbits.h') 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 -- cgit v1.2.3