[#VersionBitsCache-ComputeBlockVersion] = xref:VersionBitsCache.adoc[VersionBitsCache]::ComputeBlockVersion :relfileprefix: ../ :mrdocs: Determine what nVersion a new block should use == Synopsis Declared in `<versionbits.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7fb95ce982b8), requires_capability(0x7fb95e080b38), requires_capability(0x7fb9857791a8), requires_capability(0x7fb97abdc738), requires_capability(0x7fb96b806a28), requires_capability(0x7fb95b58a068), requires_capability(0x7fb956398e98)]] int32_t ComputeBlockVersion( xref:CBlockIndex.adoc[CBlockIndex] const* pindexPrev, xref:Consensus/Params.adoc[Consensus::Params] const& params); ---- == Return Value The version to use for the new block. == Parameters [cols="1,4"] |=== | Name| Description | *pindexPrev* | The parent block preceding the new block. | *params* | The consensus parameters holding the deployments. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#