feat(x/staking): implement RotateConsPubKey method (#18188)
This commit is contained in:
@@ -415,7 +415,7 @@ message ConsPubKeyRotationHistory {
|
||||
option (gogoproto.goproto_getters) = false;
|
||||
|
||||
// operator_address defines the address of the validator's operator; bech encoded in JSON.
|
||||
string operator_address = 1;
|
||||
bytes operator_address = 1;
|
||||
// old_cons_pubkey is the old consensus public key of the validator, as a Protobuf Any.
|
||||
google.protobuf.Any old_cons_pubkey = 2 [(cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"];
|
||||
// new_cons_pubkey is the new consensus public key of the validator, as a Protobuf Any.
|
||||
@@ -429,5 +429,5 @@ message ConsPubKeyRotationHistory {
|
||||
// ValAddrsOfRotatedConsKeys contains the array of validator addresses which rotated their keys
|
||||
// This is to block the validator's next rotation till unbonding period.
|
||||
message ValAddrsOfRotatedConsKeys {
|
||||
repeated string addresses = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
||||
repeated bytes addresses = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ service Msg {
|
||||
|
||||
// RotateConsPubKey defines an operation for rotating the consensus keys
|
||||
// of a validator.
|
||||
// Since: cosmos-sdk 0.48
|
||||
// Since: cosmos-sdk 0.51
|
||||
rpc RotateConsPubKey(MsgRotateConsPubKey) returns (MsgRotateConsPubKeyResponse);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user