Module pchain_world_state::network::pool
source · Expand description
Definition of Key Format of Pool in Storage of Network Account
Structs§
- Pool is the place that stake owners can stake to.
- PoolAddress is the value store inside the IndexMap for Validator Set (Previous and Current). Different with PoolKey, power is not needed because PVP and VP does not need to implement a binary heap.
- PoolDict defines key formatting for dictionary-like read-write operations to Pool state in a Network Account.
- PoolKey is a small description of a pool. It affects the order of its representing pool in the Index Heap which is the state format of next validator set.
- ValidatorPool defines the pool value to be stored in state of a Network Account. Different from PoolDict, fields are stored as a single value in the Key-Value storage, rather than assigning keyspaces to each fields as a dictionary.