You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`ConsPubKeyRotationHistory` is used for querying the rotations of a validator
286
286
@@ -292,7 +292,7 @@ A `ConsPubKeyRotationHistory` object is created every time a consensus pubkey ro
292
292
293
293
An entry is added in `OldToNewConsKeyMap` collection for every rotation (Note: this is to handle the evidences when submitted with old cons key).
294
294
295
-
An entry is added in `NewToOldConsKeyMap` collection for every rotation, this entry is to block the rotation if the validator is rotating to the cons key which is involved in the history.
295
+
An entry is added in `ConsKeyToValidatorIdentifierMap` collection for every rotation, this entry is to block the rotation if the validator is rotating to the cons key which is involved in the history.
Copy file name to clipboardexpand all lines: x/staking/types/keys.go
+1-1
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,7 @@ var (
66
66
BlockConsPubKeyRotationHistoryKey=collections.NewPrefix(102) // prefix for consPubkey rotation history by height
67
67
ValidatorConsensusKeyRotationRecordQueueKey=collections.NewPrefix(103) // this key is used to set the unbonding period time on each rotation
68
68
ValidatorConsensusKeyRotationRecordIndexKey=collections.NewPrefix(104) // this key is used to restrict the validator next rotation within waiting (unbonding) period
69
-
NewToOldConsKeyMap=collections.NewPrefix(105) // prefix for rotated cons address to new cons address
69
+
ConsKeyToValidatorIdentifierMapPrefix=collections.NewPrefix(105) // prefix for rotated cons address to new cons address
70
70
OldToNewConsKeyMap=collections.NewPrefix(106) // prefix for rotated cons address to new cons address
0 commit comments