github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/x/staking/keeper/keeper.md (about) 1 ## storeKey 2 3 ### staking 4 5 | key | value | number(key) | value details | value size | clean up | 备注 | 6 | ----------------------------------- | ---------------------------------- | ----------- | ------------------------------- | ---------- | ------------------------------------------------------- | ----------------------- | 7 | 0x11+OperatorAddr | Power | N/A | 无数组 | <1k | 交易清理 | LastValidatorsPower | 8 | 0x12 | Total Power | 1 | 无数组 | <1k | 无需清零 | LastTotalPower | 9 | 0x21+OperatorAddr | x/staking/types.Validator | N/A | 无数组 | <1k | 交易清理 | Validator | 10 | 0x22+ConsensusAddr | OperatorAddr | N/A | 无数组 | <1k | 交易清理 | Validator | 11 | 0x23+Power+^OperatorAddr | OperatorAddr | N/A | 无数组 | <1k | 交易清理 | Validator | 12 | 0x43+Time | x/staking/types.[]ValAddress | N/A | 数组长度最多为validator集合总数 | \>1k | 每个区块清理到期 | ValidatorQueue | 13 | 0x51+DelegatorAddr+ValidatorAddr | x/staking/types.Shares | N/A | 无数组 | <1k | 取消投票时清理 | SharesKey | 14 | 0x52+DelegatorAddr | x/staking/types.Delegator | N/A | 无数组 | <1k | 当全部解委托tokens时清理 | DelegatorKey | 15 | 0x53+DelegatorAddr | x/staking/types.UndelegationInfo | N/A | 无数组 | <1k | 当解委托到期时清理 | UnDelegationInfoKey | 16 | 0x54+Time | x/staking/[]types.UndelegationInfo | N/A | 有数组 | 可能会>1k | 当[]UndelegationInfo中的UndelegationInfo都到期时 | UnDelegateQueueKey | 17 | 0x55+ProxyAddr+DelegatorAddr | []byte("") | N/A | 无数组 | <1k | 当delegator发起解代理tx时 | ProxyKey | 18 | 0x60 | x/staking/[]sdk.ValAddress | 1 | 有数组 | 可能会>1k | 当存在要强制剔除出块集合的validator时,EndBlock时候清理 | ValidatorAbandonedKey | 19 20 21 22 23 ### params 24 25 | key | value | number(key) | value details | value size | clean up | 备注 | 26 | ------------------------- | ---------------------- | ----------- | ------------- | ---------- | -------- | ------ | 27 | ParamsSubspace("staking") | x/staking/types.Params | 1 | 无数组 | <1k | 无需清零 | Params | 28 29 30