MCPcopy Create free account
hub / github.com/OCEChain/OCEChain / InitGenesis

Function InitGenesis

x/stake/genesis.go:20–81  ·  view source on GitHub ↗

InitGenesis sets the pool and parameters for the provided keeper and initializes the IntraTxCounter. For each validator in data, it sets that validator in the keeper along with manually setting the indexes. In addition, it also sets any delegations found in data. Finally, it updates the bonded valid

(ctx sdk.Context, keeper Keeper, data types.GenesisState)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 15

WithBlockHeightMethod · 0.80
SetPoolMethod · 0.80
SetIntraTxCounterMethod · 0.80
SetLastTotalPowerMethod · 0.80
SetValidatorMethod · 0.80
InsertValidatorQueueMethod · 0.80
SetDelegationMethod · 0.80
InsertUnbondingQueueMethod · 0.80
SetRedelegationMethod · 0.80

Tested by

no test coverage detected