[move-only] Move ComputeBlockVersion from validation to versionbits

This commit is contained in:
Anthony Towns
2021-04-16 18:33:02 +10:00
parent 0cfd6c6a8f
commit 4a69b4dbe0
4 changed files with 21 additions and 19 deletions

View File

@@ -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