Determine what nVersion a new block should use
Declared in <versionbits.h>
[[requires_capability(0x7f9500ef3678), requires_capability(0x7f95120fd2e8), requires_capability(0x7f951e75bc98), requires_capability(0x7f94f8f84fc8), requires_capability(0x7f9513e37b38), requires_capability(0x7f94f32665b8), requires_capability(0x7f9516a86e48)]]
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. |