Determine what nVersion a new block should use
Declared in <versionbits.h>
[[requires_capability(0x7ff36ce27d28), requires_capability(0x7ff379f4aa08), requires_capability(0x7ff391c7c778), requires_capability(0x7ff37c067b78), requires_capability(0x7ff38c3fd678), requires_capability(0x7ff39165a638), requires_capability(0x7ff391fc15f8)]]
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. |