mirror of
https://github.com/0glabs/0g-chain.git
synced 2025-04-04 15:55:23 +00:00
init voting info with genesis state
This commit is contained in:
parent
17c2692052
commit
d6ecf1313e
@ -23,6 +23,8 @@ func InitGenesis(ctx sdk.Context, keeper keeper.Keeper, gs types.GenesisState) {
|
||||
}
|
||||
|
||||
keeper.SetCurrentCouncilID(ctx, gs.CurrentCouncilID)
|
||||
keeper.SetVotingStartHeight(ctx, gs.VotingStartHeight)
|
||||
keeper.SetVotingPeriod(ctx, gs.VotingPeriod)
|
||||
|
||||
for _, p := range gs.Councils {
|
||||
keeper.SetCouncil(ctx, p)
|
||||
|
Loading…
Reference in New Issue
Block a user