mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-10 10:05:18 +00:00
23 lines
756 B
Go
23 lines
756 B
Go
// Copyright 2016 All in Bits, inc
|
|
// Modifications copyright 2019 Kava Labs
|
|
|
|
package app
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// The genesis state of the blockchain is represented here as a map of raw json
|
|
// messages key'd by a identifier string.
|
|
// The identifier is used to determine which module genesis information belongs
|
|
// to so it may be appropriately routed during init chain.
|
|
// Within this application default genesis information is retrieved from
|
|
// the ModuleBasicManager which populates json from each BasicModule
|
|
// object provided to it during init.
|
|
type GenesisState map[string]json.RawMessage
|
|
|
|
// NewDefaultGenesisState generates the default state for gaia.
|
|
func NewDefaultGenesisState() GenesisState {
|
|
return ModuleBasics.DefaultGenesis()
|
|
}
|