Determine what nVersion a new block should use
Declared in <versionbits.h>
[[requires_capability(0x7fbc8cfe2008), requires_capability(0x7fbc8e1aedb8), requires_capability(0x7fbca3701bd8), requires_capability(0x7fbcae76d318), requires_capability(0x7fbc93dd6aa8), requires_capability(0x7fbc906cd3f8), requires_capability(0x7fbc96a0b908)]]
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. |