Skip to content

Commit

Permalink
Improve more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenButtolph committed Jul 24, 2023
1 parent 246a937 commit 6c947f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vms/platformvm/state/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -1772,7 +1772,9 @@ func (s *state) writeCurrentStakers(updateValidators bool, height uint64) error
// Invariant: Only the Primary Network contains non-nil public
// keys.
if staker.PublicKey != nil {
// Record the public key of the validator being added.
// Record that the public key for the validator is being
// added. This means the prior value for the public key was
// nil.
err := s.flatValidatorPublicKeyDiffsDB.Put(
getBLSKey(height, nodeID),
nil,
Expand Down

0 comments on commit 6c947f3

Please sign in to comment.