state: don't save genesis state in database when loaded (#5231)

Fixes #5138. I don't have a strong opinion on this, but find it sort of odd that `Load` functions actually save as well.
This commit is contained in:
Erik Grinaker
2020-08-12 10:24:44 +02:00
committed by GitHub
parent cc247c091b
commit feaa1ed17e
4 changed files with 6 additions and 9 deletions

View File

@@ -1255,9 +1255,8 @@ var (
)
// LoadStateFromDBOrGenesisDocProvider attempts to load the state from the
// database, or creates one using the given genesisDocProvider and persists the
// result to the database. On success this also returns the genesis doc loaded
// through the given provider.
// database, or creates one using the given genesisDocProvider. On success this also
// returns the genesis doc loaded through the given provider.
func LoadStateFromDBOrGenesisDocProvider(
stateDB dbm.DB,
genesisDocProvider GenesisDocProvider,