update outdated comment in state.go (#6214)

I couldn't find any references to `state.NextState(...)`. Looks like `updateState` replaced that function
This commit is contained in:
colin axnér
2021-03-05 14:36:07 +01:00
committed by GitHub
parent 418e2c140f
commit 5a7ac0abdb

View File

@@ -62,7 +62,7 @@ func VersionFromProto(v tmstate.Version) Version {
// including the last validator set and the consensus params.
// All fields are exposed so the struct can be easily serialized,
// but none of them should be mutated directly.
// Instead, use state.Copy() or state.NextState(...).
// Instead, use state.Copy() or updateState(...).
// NOTE: not goroutine-safe.
type State struct {
Version Version