Skip to content

Commit

Permalink
wip: update init codec
Browse files Browse the repository at this point in the history
  • Loading branch information
boodyvo committed Oct 25, 2024
1 parent f7bb2cf commit 4b6d2f4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,11 @@ replace (
//github.com/cosmos/cosmos-sdk => github.com/kava-labs/cosmos-sdk v0.47.10-iavl-v1-kava.1
//github.com/cosmos/cosmos-sdk => github.com/kava-labs/cosmos-sdk v0.50.10-test-patch 5f9239e3147358ef034bfc4d19aacb34e5ea2064
//github.com/cosmos/cosmos-sdk => github.com/kava-labs/cosmos-sdk v0.0.0-20241007153930-5f9239e31473
github.com/cosmos/cosmos-sdk => github.com/kava-labs/cosmos-sdk v0.0.0-20241025140408-fd0923262069
github.com/cosmos/cosmos-sdk => github.com/kava-labs/cosmos-sdk v0.0.0-20241025140408-2e87644687a1
//github.com/cosmos/cosmos-sdk => ../cosmos-sdk
// Use cosmos-sdk fork with staking transfer events, and custom tally handler support
//github.com/cosmos/cosmos-sdk => github.com/kava-labs/cosmos-sdk v0.47.10-iavl-v1-kava.1
github.com/ethereum/go-ethereum => github.com/Kava-Labs/go-ethereum v1.10.27-0.20240308170502-da7973e5eee0
github.com/ethereum/go-ethereum => github.com/Kava-Labs/go-ethereum v1.10.27-0.20241025222820-da7973e5eee0
// Fix upstream GHSA-h395-qcrw-5vmq vulnerability.
// TODO Remove it: https://github.com/cosmos/cosmos-sdk/issues/10409
github.com/gin-gonic/gin => github.com/gin-gonic/gin v1.9.0
Expand Down
24 changes: 12 additions & 12 deletions server/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -956,18 +956,18 @@ func startTelemetry(cfg config.Config) (*telemetry.Metrics, error) {

// GenDocProvider returns a function which returns the genesis doc from the genesis file.
func GenDocProvider(cfg *cmtcfg.Config) func() (*cmttypes.GenesisDoc, error) {
fmt.Println("cfg.GenesisFile(): ", cfg.GenesisFile())
file, err := os.Open(filepath.Clean(cfg.GenesisFile()))
if err != nil {
return nil
}

jsonBlob, err := io.ReadAll(file)
if err != nil {
return nil
}

fmt.Println("GenDocProvider jsonBlob: ", string(jsonBlob))
//fmt.Println("cfg.GenesisFile(): ", cfg.GenesisFile())
//file, err := os.Open(filepath.Clean(cfg.GenesisFile()))
//if err != nil {
// return nil
//}
//
//jsonBlob, err := io.ReadAll(file)
//if err != nil {
// return nil
//}
//
//fmt.Println("GenDocProvider jsonBlob: ", string(jsonBlob))

return func() (*cmttypes.GenesisDoc, error) {
appGenesis, err := genutiltypes.AppGenesisFromFile(cfg.GenesisFile())
Expand Down

0 comments on commit 4b6d2f4

Please sign in to comment.