Determine what nVersion a new block should use
Declared in <versionbits.h>
int32_t
ComputeBlockVersion(
CBlockIndex const* pindexPrev,
Consensus::Params const& params);
The version to use for the new block.
| Name | Description |
|---|---|
| pindexPrev | The parent block preceding the new block. |
| params | The consensus parameters holding the deployments. |