ckb_chain_spec

Module versionbits

Source
Expand description

Versionbits defines a finite-state-machine to deploy a softfork in multiple stages.

Structs§

  • Signal state cache
  • Struct for each individual consensus rule change using soft fork.
  • Struct Implements versionbits threshold logic, and caches results.
  • RFC0000 allows multiple soft forks to be deployed in parallel. We cache per-epoch state for every one of them. */

Enums§

  • This is useful for testing, as it means tests don’t need to deal with the activation process. Only tests that specifically test the behaviour during activation cannot use this.
  • Soft fork deployment
  • RFC0043 defines a finite-state-machine to deploy a soft fork in multiple stages. State transitions happen during epoch if conditions are met In case of reorg, transitions can go backward. Without transition, state is inherited between epochs. All blocks of a epoch share the same state.

Constants§

Traits§