Browse Source

update outdated comment in state.go (#6214)

I couldn't find any references to `state.NextState(...)`. Looks like `updateState` replaced that function
pull/6220/head
colin axnér 4 years ago
committed by GitHub
parent
commit
5a7ac0abdb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      state/state.go

+ 1
- 1
state/state.go 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


Loading…
Cancel
Save