From 29a893b193f6e94a0b10c169d110d0ae48ddcd27 Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Tue, 18 Apr 2017 10:44:13 -0400 Subject: [PATCH] update comment --- state/state.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/state/state.go b/state/state.go index 7d0f2455..086b0e71 100644 --- a/state/state.go +++ b/state/state.go @@ -132,7 +132,8 @@ func (s *State) Bytes() []byte { // after running EndBlock func (s *State) SetBlockAndValidators(header *types.Header, blockPartsHeader types.PartSetHeader, abciResponses *ABCIResponses) { - // copy the valset + // copy the valset so we can apply changes from EndBlock + // and update s.LastValidators and s.Validators prevValSet := s.Validators.Copy() nextValSet := prevValSet.Copy()