From 5a7ac0abdb7c0c8afb990f9db1458c5e8a3ea751 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?colin=20axn=C3=A9r?= <25233464+colin-axner@users.noreply.github.com> Date: Fri, 5 Mar 2021 14:36:07 +0100 Subject: [PATCH] update outdated comment in state.go (#6214) I couldn't find any references to `state.NextState(...)`. Looks like `updateState` replaced that function --- state/state.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/state/state.go b/state/state.go index 80d337e88..9f5f02c7a 100644 --- a/state/state.go +++ b/state/state.go @@ -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