Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: big genesis file #576

Merged
merged 13 commits into from
Mar 14, 2023
3 changes: 0 additions & 3 deletions node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -1438,9 +1438,6 @@ func loadGenesisDoc(db dbm.DB) (*types.GenesisDoc, error) {
if err = iter.Close(); err != nil {
return nil, err
}
if err = iter.Error(); err != nil {
return nil, err
}

if len(b) == 0 {
return nil, errors.New("genesis doc not found")
Expand Down
3 changes: 2 additions & 1 deletion node/node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,8 @@ func TestNodeInvalidNodeInfoCustomReactors(t *testing.T) {
}

func TestSaveAndLoadBigGensisFile(t *testing.T) {
stateDB := dbm.NewMemDB()
stateDB, err := dbm.NewDB("state", "goleveldb", os.TempDir())
tnasu marked this conversation as resolved.
Show resolved Hide resolved
require.NoError(t, err)
config := cfg.ResetTestRoot("node_big_genesis_test")
defer os.RemoveAll(config.RootDir)
n, err := DefaultNewNode(config, log.TestingLogger())
Expand Down