diff --git a/proto/babylon/btcstaking/v1/btcstaking.proto b/proto/babylon/btcstaking/v1/btcstaking.proto index 23d1fcf8..eac8afa6 100644 --- a/proto/babylon/btcstaking/v1/btcstaking.proto +++ b/proto/babylon/btcstaking/v1/btcstaking.proto @@ -36,6 +36,9 @@ message FinalityProvider { uint32 slashed_btc_height = 7; // jailed defines whether the finality provider is jailed bool jailed = 8; + // highest_voted_height is the highest height for which the + // finality provider has voted + uint32 highest_voted_height = 9; } // FinalityProviderWithMeta wraps the FinalityProvider with metadata. @@ -57,6 +60,9 @@ message FinalityProviderWithMeta { uint32 slashed_btc_height = 5; // jailed defines whether the finality provider is detected jailed bool jailed = 6; + // highest_voted_height is the highest height for which the + // finality provider has voted + uint32 highest_voted_height = 7; } // BTCDelegation defines a BTC delegation diff --git a/proto/babylon/btcstaking/v1/query.proto b/proto/babylon/btcstaking/v1/query.proto index 896cf5b1..389da8e1 100644 --- a/proto/babylon/btcstaking/v1/query.proto +++ b/proto/babylon/btcstaking/v1/query.proto @@ -270,4 +270,7 @@ message FinalityProviderResponse { uint64 height = 8; // jailed defines whether the finality provider is jailed bool jailed = 9; + // highest_voted_height is the highest height for which the + // finality provider has voted + uint32 highest_voted_height = 10; } diff --git a/proto/babylon/finality/v1/query.proto b/proto/babylon/finality/v1/query.proto index 6030febe..b4d8e7af 100644 --- a/proto/babylon/finality/v1/query.proto +++ b/proto/babylon/finality/v1/query.proto @@ -163,6 +163,9 @@ message ActiveFinalityProvidersAtHeightResponse { uint32 slashed_btc_height = 5; // jailed defines whether the finality provider is detected jailed bool jailed = 6; + // highest_voted_height is the highest height for which the + // finality provider has voted + uint32 highest_voted_height = 7; } // QueryActiveFinalityProvidersAtHeightResponse is the response type for the diff --git a/x/btcstaking/keeper/finality_providers.go b/x/btcstaking/keeper/finality_providers.go index f32da958..25b4b49f 100644 --- a/x/btcstaking/keeper/finality_providers.go +++ b/x/btcstaking/keeper/finality_providers.go @@ -53,6 +53,17 @@ func (k Keeper) setFinalityProvider(ctx context.Context, fp *types.FinalityProvi store.Set(fp.BtcPk.MustMarshal(), fpBytes) } +// UpdateFinalityProvider update the given finality provider to KVStore +func (k Keeper) UpdateFinalityProvider(ctx context.Context, fp *types.FinalityProvider) error { + if !k.HasFinalityProvider(ctx, fp.BtcPk.MustMarshal()) { + return types.ErrFpNotFound + } + + k.setFinalityProvider(ctx, fp) + + return nil +} + // HasFinalityProvider checks if the finality provider exists func (k Keeper) HasFinalityProvider(ctx context.Context, fpBTCPK []byte) bool { store := k.finalityProviderStore(ctx) diff --git a/x/btcstaking/keeper/grpc_query_test.go b/x/btcstaking/keeper/grpc_query_test.go index d80e7f89..c250b838 100644 --- a/x/btcstaking/keeper/grpc_query_test.go +++ b/x/btcstaking/keeper/grpc_query_test.go @@ -107,6 +107,9 @@ func FuzzFinalityProvider(f *testing.F) { require.NoError(t, err) AddFinalityProvider(t, ctx, *keeper, fp) + fp.HighestVotedHeight = uint32(datagen.RandomInt(r, 1000) + 1) + err = keeper.UpdateFinalityProvider(ctx, fp) + require.NoError(t, err) fpsMap[fp.BtcPk.MarshalHex()] = fp } @@ -129,6 +132,7 @@ func FuzzFinalityProvider(f *testing.F) { // check keys from map matches those in returned response require.Equal(t, v.BtcPk.MarshalHex(), resp.FinalityProvider.BtcPk.MarshalHex()) require.Equal(t, v.Addr, resp.FinalityProvider.Addr) + require.Equal(t, v.HighestVotedHeight, resp.FinalityProvider.HighestVotedHeight) } // check some random non-existing guy diff --git a/x/btcstaking/types/btcstaking.pb.go b/x/btcstaking/types/btcstaking.pb.go index 3dbd9bd0..f4768ada 100644 --- a/x/btcstaking/types/btcstaking.pb.go +++ b/x/btcstaking/types/btcstaking.pb.go @@ -104,6 +104,9 @@ type FinalityProvider struct { SlashedBtcHeight uint32 `protobuf:"varint,7,opt,name=slashed_btc_height,json=slashedBtcHeight,proto3" json:"slashed_btc_height,omitempty"` // jailed defines whether the finality provider is jailed Jailed bool `protobuf:"varint,8,opt,name=jailed,proto3" json:"jailed,omitempty"` + // highest_voted_height is the highest height for which the + // finality provider has voted + HighestVotedHeight uint32 `protobuf:"varint,9,opt,name=highest_voted_height,json=highestVotedHeight,proto3" json:"highest_voted_height,omitempty"` } func (m *FinalityProvider) Reset() { *m = FinalityProvider{} } @@ -181,6 +184,13 @@ func (m *FinalityProvider) GetJailed() bool { return false } +func (m *FinalityProvider) GetHighestVotedHeight() uint32 { + if m != nil { + return m.HighestVotedHeight + } + return 0 +} + // FinalityProviderWithMeta wraps the FinalityProvider with metadata. type FinalityProviderWithMeta struct { // btc_pk is the Bitcoin secp256k1 PK of thisfinality provider @@ -200,6 +210,9 @@ type FinalityProviderWithMeta struct { SlashedBtcHeight uint32 `protobuf:"varint,5,opt,name=slashed_btc_height,json=slashedBtcHeight,proto3" json:"slashed_btc_height,omitempty"` // jailed defines whether the finality provider is detected jailed Jailed bool `protobuf:"varint,6,opt,name=jailed,proto3" json:"jailed,omitempty"` + // highest_voted_height is the highest height for which the + // finality provider has voted + HighestVotedHeight uint32 `protobuf:"varint,7,opt,name=highest_voted_height,json=highestVotedHeight,proto3" json:"highest_voted_height,omitempty"` } func (m *FinalityProviderWithMeta) Reset() { *m = FinalityProviderWithMeta{} } @@ -270,6 +283,13 @@ func (m *FinalityProviderWithMeta) GetJailed() bool { return false } +func (m *FinalityProviderWithMeta) GetHighestVotedHeight() uint32 { + if m != nil { + return m.HighestVotedHeight + } + return 0 +} + // BTCDelegation defines a BTC delegation type BTCDelegation struct { // staker_addr is the address to receive rewards from BTC delegation. @@ -897,91 +917,93 @@ func init() { } var fileDescriptor_3851ae95ccfaf7db = []byte{ - // 1337 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0xdd, 0x6e, 0x1b, 0x45, - 0x14, 0xce, 0xda, 0xce, 0xdf, 0xb1, 0x9d, 0xb8, 0xd3, 0x10, 0xb6, 0x8d, 0x48, 0x82, 0x29, 0x95, - 0x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 0xf4, 0x85, 0xea, 0xca, 0x1e, 0xfa, 0x55, 0x51, 0xd9, 0x43, 0xc2, 0x64, 0x6b, 0x55, 0x19, - 0x26, 0x27, 0x7d, 0xac, 0xb0, 0xcf, 0x2a, 0x59, 0x8b, 0xf4, 0xb1, 0x32, 0x09, 0x78, 0x92, 0xf5, - 0xa1, 0x49, 0xc0, 0x55, 0x67, 0xde, 0x03, 0xc0, 0x9e, 0x33, 0x49, 0xf2, 0x79, 0xec, 0x39, 0x4a, - 0xbd, 0x02, 0xf3, 0x9c, 0x72, 0xab, 0x67, 0x32, 0x8b, 0x4b, 0x82, 0x67, 0x8c, 0x39, 0x29, 0x68, - 0x5a, 0xd2, 0x37, 0xaa, 0x60, 0xa4, 0xcf, 0x0b, 0xd0, 0x8d, 0xf9, 0x71, 0xfe, 0x91, 0xa4, 0x88, - 0x52, 0xd3, 0x01, 0xf7, 0x07, 0xdc, 0x24, 0xce, 0x48, 0x07, 0x45, 0x91, 0x50, 0xb3, 0x2f, 0x15, - 0x75, 0x67, 0x84, 0xb6, 0x20, 0x2b, 0x69, 0xa3, 0xa2, 0x65, 0x65, 0x0b, 0xaf, 0x1c, 0x9f, 0xac, - 0x09, 0x82, 0x34, 0x95, 0xa6, 0x35, 0x32, 0x80, 0x45, 0xbf, 0xd1, 0x8f, 0x90, 0x77, 0x42, 0xea, - 0xd0, 0xc0, 0x64, 0xc4, 0xd5, 0x73, 0xd2, 0xeb, 0xf3, 0xe3, 0x93, 0xb5, 0x4f, 0xde, 0x0c, 0xe0, - 0x26, 0x71, 0x3d, 0x8b, 0x0f, 0x02, 0x6c, 0xe4, 0xa2, 0x88, 0x4d, 0xe2, 0xa2, 0x03, 0xc8, 0xdb, - 0x74, 0x88, 0x3d, 0xcb, 0xe3, 0x22, 0x01, 0xd3, 0xf3, 0xeb, 0xe9, 0x52, 0x76, 0xeb, 0xf6, 0x39, - 0x64, 0xd8, 0x51, 0xb6, 0xdb, 0x8e, 0xe5, 0x87, 0x11, 0xc2, 0xa8, 0xcc, 0xc8, 0x8d, 0xc3, 0x34, - 0x89, 0xcb, 0xd0, 0x87, 0xb0, 0x30, 0xf0, 0xda, 0xd4, 0x73, 0xa2, 0xee, 0x2d, 0x48, 0x58, 0xf2, - 0x91, 0x54, 0xf6, 0xef, 0x1b, 0x28, 0x08, 0xfa, 0x0c, 0x3c, 0x27, 0x7a, 0x20, 0xfa, 0xa2, 0x64, - 0xe3, 0xcd, 0x73, 0x0a, 0xa8, 0xb6, 0x76, 0x0e, 0x12, 0xd6, 0xc6, 0x62, 0x9b, 0xdb, 0x49, 0x81, - 0xc8, 0xec, 0x5b, 0x81, 0xd5, 0x67, 0xe6, 0x10, 0x07, 0x72, 0xea, 0x17, 0xc2, 0xcc, 0xa1, 0xf4, - 0x71, 0x28, 0x2c, 0x7e, 0x09, 0xcb, 0xb5, 0x31, 0x0e, 0x07, 0xe3, 0x9a, 0xea, 0xde, 0x21, 0x45, - 0x37, 0x60, 0x81, 0xf9, 0x82, 0x32, 0xf2, 0xe5, 0x89, 0x56, 0xc9, 0x11, 0x66, 0xe4, 0xa4, 0xb4, - 0x29, 0x84, 0xad, 0x51, 0xf1, 0xf7, 0x0c, 0x2c, 0xbe, 0x54, 0x8b, 0x60, 0x63, 0xe2, 0xd2, 0x63, - 0xbf, 0x6c, 0x7c, 0xe5, 0xff, 0x90, 0x20, 0xf5, 0x3a, 0x24, 0xf8, 0x19, 0x96, 0x13, 0x24, 0x18, - 0x7b, 0x0b, 0x36, 0xa4, 0x2f, 0xce, 0x86, 0xa5, 0x98, 0x0d, 0x2a, 0xb2, 0x60, 0xc5, 0x21, 0x2c, - 0xc7, 0xac, 0x48, 0x64, 0x64, 0xf2, 0x85, 0xbf, 0x0d, 0x3d, 0x96, 0x22, 0x7a, 0xc4, 0x69, 0x18, - 0xb2, 0x61, 0x25, 0xca, 0x13, 0x43, 0xc7, 0x88, 0x1b, 0x8e, 0x93, 0x69, 0x99, 0xec, 0xc6, 0x39, - 0xc9, 0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 0x00, 0x8e, - 0x92, 0xff, 0x70, 0x24, 0x9a, 0xed, 0x19, 0xf9, 0x9f, 0xe5, 0xce, 0xbf, 0x01, 0x00, 0x00, 0xff, - 0xff, 0x16, 0x11, 0x9e, 0xc4, 0x9a, 0x0d, 0x00, 0x00, + // 1369 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0xdd, 0x6e, 0xdb, 0x46, + 0x16, 0x36, 0x25, 0xf9, 0xef, 0x48, 0xb2, 0x95, 0x89, 0xd6, 0xcb, 0xc4, 0x58, 0xdb, 0xab, 0xcd, + 0x06, 0xc2, 0x6e, 0x2c, 0xc5, 0x4e, 0x80, 0xcd, 0xb6, 0x68, 0x01, 0xcb, 0x72, 0x1a, 0xa1, 0x89, + 0xad, 0x52, 0xb2, 0x8b, 0x16, 0x28, 0x58, 0x8a, 0x1c, 0x53, 0x53, 0x49, 0x1c, 0x96, 0x33, 0x52, + 0xe5, 0xa7, 0x68, 0x0b, 0x14, 0x7d, 0x86, 0x3e, 0x40, 0x1e, 0x22, 0x97, 0x41, 0xd0, 0x8b, 0xc2, + 0x17, 0x46, 0x91, 0xbc, 0x48, 0x31, 0xc3, 0x11, 0x49, 0xbb, 0x76, 0xea, 0xc4, 0xbe, 0xd3, 0x9c, + 0xff, 0xf9, 0xce, 0x37, 0xe7, 0x88, 0x70, 0xb7, 0x63, 0x75, 0x8e, 0xfa, 0xd4, 0xab, 0x76, 0xb8, + 0xcd, 0xb8, 0xd5, 0x23, 0x9e, 0x5b, 0x1d, 0x6d, 0x24, 0x4e, 0x15, 0x3f, 0xa0, 0x9c, 0xa2, 0xbf, + 0x29, 0xbb, 0x4a, 0x42, 0x33, 0xda, 0xb8, 0x5d, 0x74, 0xa9, 0x4b, 0xa5, 0x45, 0x55, 0xfc, 0x0a, + 0x8d, 0x6f, 0xdf, 0xb2, 0x29, 0x1b, 0x50, 0x66, 0x86, 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0x84, 0xd7, 0x31, 0xc2, + 0xc3, 0x7f, 0x5a, 0x70, 0xf3, 0x14, 0xa5, 0x5b, 0xdc, 0xe2, 0x43, 0x86, 0xb2, 0x30, 0xdb, 0xdc, + 0xd9, 0xad, 0x37, 0x76, 0x3f, 0x29, 0x4c, 0xa1, 0x1c, 0xcc, 0x1d, 0xec, 0x18, 0x8d, 0xc7, 0x8d, + 0x9d, 0x7a, 0x41, 0x43, 0x00, 0x33, 0x5b, 0xdb, 0xed, 0xc6, 0xc1, 0x4e, 0x21, 0x25, 0x34, 0xfb, + 0xbb, 0xb5, 0xbd, 0xdd, 0xfa, 0x4e, 0xbd, 0x90, 0x46, 0xb3, 0x90, 0xde, 0xda, 0xfd, 0xa2, 0x90, + 0xa9, 0xed, 0xbe, 0x78, 0xbd, 0xa2, 0xbd, 0x7c, 0xbd, 0xa2, 0xfd, 0xfe, 0x7a, 0x45, 0xfb, 0xe1, + 0xcd, 0xca, 0xd4, 0xcb, 0x37, 0x2b, 0x53, 0xbf, 0xbd, 0x59, 0x99, 0xfa, 0xf2, 0x12, 0x00, 0x8e, + 0x93, 0x5f, 0x51, 0x12, 0xcd, 0xce, 0x8c, 0xfc, 0x2e, 0x7a, 0xf0, 0x47, 0x00, 0x00, 0x00, 0xff, + 0xff, 0x68, 0x04, 0x87, 0x15, 0xfe, 0x0d, 0x00, 0x00, } func (m *FinalityProvider) Marshal() (dAtA []byte, err error) { @@ -1004,6 +1026,11 @@ func (m *FinalityProvider) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.HighestVotedHeight != 0 { + i = encodeVarintBtcstaking(dAtA, i, uint64(m.HighestVotedHeight)) + i-- + dAtA[i] = 0x48 + } if m.Jailed { i-- if m.Jailed { @@ -1102,6 +1129,11 @@ func (m *FinalityProviderWithMeta) MarshalToSizedBuffer(dAtA []byte) (int, error _ = i var l int _ = l + if m.HighestVotedHeight != 0 { + i = encodeVarintBtcstaking(dAtA, i, uint64(m.HighestVotedHeight)) + i-- + dAtA[i] = 0x38 + } if m.Jailed { i-- if m.Jailed { @@ -1730,6 +1762,9 @@ func (m *FinalityProvider) Size() (n int) { if m.Jailed { n += 2 } + if m.HighestVotedHeight != 0 { + n += 1 + sovBtcstaking(uint64(m.HighestVotedHeight)) + } return n } @@ -1758,6 +1793,9 @@ func (m *FinalityProviderWithMeta) Size() (n int) { if m.Jailed { n += 2 } + if m.HighestVotedHeight != 0 { + n += 1 + sovBtcstaking(uint64(m.HighestVotedHeight)) + } return n } @@ -2253,6 +2291,25 @@ func (m *FinalityProvider) Unmarshal(dAtA []byte) error { } } m.Jailed = bool(v != 0) + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HighestVotedHeight", wireType) + } + m.HighestVotedHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBtcstaking + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HighestVotedHeight |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipBtcstaking(dAtA[iNdEx:]) @@ -2434,6 +2491,25 @@ func (m *FinalityProviderWithMeta) Unmarshal(dAtA []byte) error { } } m.Jailed = bool(v != 0) + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HighestVotedHeight", wireType) + } + m.HighestVotedHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBtcstaking + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HighestVotedHeight |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipBtcstaking(dAtA[iNdEx:]) diff --git a/x/btcstaking/types/query.go b/x/btcstaking/types/query.go index eff64812..8274256d 100644 --- a/x/btcstaking/types/query.go +++ b/x/btcstaking/types/query.go @@ -81,5 +81,6 @@ func NewFinalityProviderResponse(f *FinalityProvider, bbnBlockHeight uint64) *Fi SlashedBtcHeight: f.SlashedBtcHeight, Jailed: f.Jailed, Height: bbnBlockHeight, + HighestVotedHeight: f.HighestVotedHeight, } } diff --git a/x/btcstaking/types/query.pb.go b/x/btcstaking/types/query.pb.go index 8ed1ef4b..5d8e91fd 100644 --- a/x/btcstaking/types/query.pb.go +++ b/x/btcstaking/types/query.pb.go @@ -1132,6 +1132,9 @@ type FinalityProviderResponse struct { Height uint64 `protobuf:"varint,8,opt,name=height,proto3" json:"height,omitempty"` // jailed defines whether the finality provider is jailed Jailed bool `protobuf:"varint,9,opt,name=jailed,proto3" json:"jailed,omitempty"` + // highest_voted_height is the highest height for which the + // finality provider has voted + HighestVotedHeight uint32 `protobuf:"varint,10,opt,name=highest_voted_height,json=highestVotedHeight,proto3" json:"highest_voted_height,omitempty"` } func (m *FinalityProviderResponse) Reset() { *m = FinalityProviderResponse{} } @@ -1216,6 +1219,13 @@ func (m *FinalityProviderResponse) GetJailed() bool { return false } +func (m *FinalityProviderResponse) GetHighestVotedHeight() uint32 { + if m != nil { + return m.HighestVotedHeight + } + return 0 +} + func init() { proto.RegisterType((*QueryParamsRequest)(nil), "babylon.btcstaking.v1.QueryParamsRequest") proto.RegisterType((*QueryParamsResponse)(nil), "babylon.btcstaking.v1.QueryParamsResponse") @@ -1241,112 +1251,114 @@ func init() { func init() { proto.RegisterFile("babylon/btcstaking/v1/query.proto", fileDescriptor_74d49d26f7429697) } var fileDescriptor_74d49d26f7429697 = []byte{ - // 1673 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x58, 0x4b, 0x6f, 0xdb, 0xca, - 0x15, 0x36, 0x6d, 0x59, 0xb1, 0x8f, 0x2c, 0xd9, 0x9e, 0xeb, 0xd8, 0x8c, 0x7c, 0x2d, 0x3b, 0x6a, - 0x6e, 0xe2, 0x3c, 0x2c, 0xc6, 0x8f, 0xf4, 0x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x33, 0x12, 0x29, 0x57, 0x58, 0xca, 0xdb, - 0xe8, 0xc9, 0xa9, 0x53, 0x56, 0x5e, 0x76, 0x2d, 0x3b, 0x87, 0x47, 0x55, 0xd0, 0x1f, 0x25, 0xc8, - 0x75, 0xef, 0x7d, 0x68, 0xf5, 0xb8, 0xec, 0xfa, 0xae, 0xb3, 0xf9, 0xb5, 0x41, 0x4c, 0x44, 0x39, - 0x5f, 0xb3, 0x72, 0x56, 0x91, 0xa2, 0x24, 0xfe, 0xd5, 0x14, 0xdf, 0x82, 0x94, 0x97, 0xfc, 0x43, - 0xe7, 0x10, 0xfd, 0x5b, 0x82, 0xf9, 0x63, 0x76, 0x2a, 0xf4, 0xbd, 0x41, 0xd0, 0xed, 0x53, 0xcc, - 0xf7, 0xcf, 0x6c, 0x2f, 0x2a, 0xdb, 0x66, 0x95, 0x3d, 0x44, 0xf7, 0xcf, 0x7e, 0x51, 0xb1, 0xc2, - 0xd1, 0x9f, 0x25, 0xc8, 0x76, 0x61, 0x88, 0x6e, 0x9f, 0x1a, 0xee, 0xa0, 0xa6, 0xd5, 0x01, 0x2c, - 0x44, 0x15, 0x9b, 0xac, 0x8a, 0x6f, 0xd0, 0xdd, 0x53, 0xdd, 0x0f, 0xbb, 0x9e, 0xde, 0x2d, 0xef, - 0xb0, 0xfc, 0xa3, 0xb7, 0x9f, 0x0a, 0xd2, 0xbb, 0x4f, 0x05, 0xe9, 0x1f, 0x9f, 0x0a, 0xd2, 0x6f, - 0x3f, 0x17, 0x86, 0xde, 0x7d, 0x2e, 0x0c, 0xfd, 0xfd, 0x73, 0x61, 0xe8, 0xa7, 0xa7, 0x18, 0x2a, - 0x9d, 0x78, 0x44, 0x36, 0x61, 0x6a, 0x69, 0xf6, 0xa7, 0xe2, 0xfa, 0xff, 0x02, 0x00, 0x00, 0xff, - 0xff, 0xd4, 0x91, 0x2b, 0x9a, 0x9e, 0x15, 0x00, 0x00, + // 1699 bytes of a gzipped FileDescriptorProto + 0x1f, 0x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7, 0xc2, 0xfd, 0xc6, 0x8f, 0xbe, 0x7a, 0x5b, 0x55, + 0xbe, 0x7e, 0x5b, 0x55, 0xfe, 0xf1, 0xb6, 0xaa, 0xfc, 0xf6, 0x5d, 0xf5, 0xcc, 0xd7, 0xef, 0xaa, + 0x67, 0xfe, 0xfe, 0xae, 0x7a, 0xe6, 0x27, 0xc7, 0x18, 0x43, 0x83, 0x74, 0x44, 0x3e, 0x93, 0x5a, + 0x79, 0xfe, 0x37, 0xe4, 0xfd, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0x4e, 0xdb, 0x0e, 0x28, 0xd0, + 0x15, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -2500,6 +2512,11 @@ func (m *FinalityProviderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error _ = i var l int _ = l + if m.HighestVotedHeight != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.HighestVotedHeight)) + i-- + dAtA[i] = 0x50 + } if m.Jailed { i-- if m.Jailed { @@ -2968,6 +2985,9 @@ func (m *FinalityProviderResponse) Size() (n int) { if m.Jailed { n += 2 } + if m.HighestVotedHeight != 0 { + n += 1 + sovQuery(uint64(m.HighestVotedHeight)) + } return n } @@ -5467,6 +5487,25 @@ func (m *FinalityProviderResponse) Unmarshal(dAtA []byte) error { } } m.Jailed = bool(v != 0) + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HighestVotedHeight", wireType) + } + m.HighestVotedHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HighestVotedHeight |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) diff --git a/x/finality/keeper/grpc_query.go b/x/finality/keeper/grpc_query.go index 6b0289e4..8567ddf5 100644 --- a/x/finality/keeper/grpc_query.go +++ b/x/finality/keeper/grpc_query.go @@ -90,6 +90,7 @@ func (k Keeper) ActiveFinalityProvidersAtHeight(ctx context.Context, req *types. VotingPower: votingPower, SlashedBabylonHeight: finalityProvider.SlashedBabylonHeight, SlashedBtcHeight: finalityProvider.SlashedBtcHeight, + HighestVotedHeight: finalityProvider.HighestVotedHeight, } finalityProvidersWithMeta = append(finalityProvidersWithMeta, &finalityProviderWithMeta) } @@ -420,6 +421,7 @@ func convertToActiveFinalityProvidersAtHeightResponse(finalityProvidersWithMeta SlashedBabylonHeight: fpWithMeta.SlashedBabylonHeight, SlashedBtcHeight: fpWithMeta.SlashedBtcHeight, Jailed: fpWithMeta.Jailed, + HighestVotedHeight: fpWithMeta.HighestVotedHeight, }) } return activeFinalityProvidersAtHeightResponse diff --git a/x/finality/keeper/msg_server.go b/x/finality/keeper/msg_server.go index 13410bee..4d02c9ba 100644 --- a/x/finality/keeper/msg_server.go +++ b/x/finality/keeper/msg_server.go @@ -172,6 +172,15 @@ func (ms msgServer) AddFinalitySig(goCtx context.Context, req *types.MsgAddFinal // this signature is good, add vote to DB ms.SetSig(ctx, req.BlockHeight, fpPK, req.FinalitySig) + // update `HighestVotedHeight` if needed + if fp.HighestVotedHeight < uint32(req.BlockHeight) { + fp.HighestVotedHeight = uint32(req.BlockHeight) + err := ms.BTCStakingKeeper.UpdateFinalityProvider(ctx, fp) + if err != nil { + return nil, fmt.Errorf("failed to update the finality provider: %w", err) + } + } + // if this finality provider has signed the canonical block before, // slash it via extracting its secret key, and emit an event if ms.HasEvidence(ctx, req.FpBtcPk, req.BlockHeight) { diff --git a/x/finality/keeper/msg_server_test.go b/x/finality/keeper/msg_server_test.go index f7e54ee5..d156a54e 100644 --- a/x/finality/keeper/msg_server_test.go +++ b/x/finality/keeper/msg_server_test.go @@ -112,6 +112,7 @@ func FuzzAddFinalitySig(f *testing.F) { defer ctrl.Finish() bsKeeper := types.NewMockBTCStakingKeeper(ctrl) + bsKeeper.EXPECT().UpdateFinalityProvider(gomock.Any(), gomock.Any()).Return(nil).AnyTimes() cKeeper := types.NewMockCheckpointingKeeper(ctrl) iKeeper := types.NewMockIncentiveKeeper(ctrl) iKeeper.EXPECT().IndexRefundableMsg(gomock.Any(), gomock.Any()).AnyTimes() @@ -310,6 +311,7 @@ func TestVoteForConflictingHashShouldRetrieveEvidenceAndSlash(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() bsKeeper := types.NewMockBTCStakingKeeper(ctrl) + bsKeeper.EXPECT().UpdateFinalityProvider(gomock.Any(), gomock.Any()).Return(nil).AnyTimes() cKeeper := types.NewMockCheckpointingKeeper(ctrl) iKeeper := types.NewMockIncentiveKeeper(ctrl) iKeeper.EXPECT().IndexRefundableMsg(gomock.Any(), gomock.Any()).AnyTimes() @@ -381,6 +383,7 @@ func TestDoNotPanicOnNilProof(t *testing.T) { defer ctrl.Finish() bsKeeper := types.NewMockBTCStakingKeeper(ctrl) + bsKeeper.EXPECT().UpdateFinalityProvider(gomock.Any(), gomock.Any()).Return(nil).AnyTimes() cKeeper := types.NewMockCheckpointingKeeper(ctrl) iKeeper := types.NewMockIncentiveKeeper(ctrl) iKeeper.EXPECT().IndexRefundableMsg(gomock.Any(), gomock.Any()).AnyTimes() diff --git a/x/finality/types/expected_keepers.go b/x/finality/types/expected_keepers.go index eac488a8..b4244174 100644 --- a/x/finality/types/expected_keepers.go +++ b/x/finality/types/expected_keepers.go @@ -3,9 +3,10 @@ package types import ( "context" + sdk "github.com/cosmos/cosmos-sdk/types" + bstypes "github.com/babylonlabs-io/babylon/x/btcstaking/types" etypes "github.com/babylonlabs-io/babylon/x/epoching/types" - sdk "github.com/cosmos/cosmos-sdk/types" ) type BTCStakingKeeper interface { @@ -20,6 +21,7 @@ type BTCStakingKeeper interface { ClearPowerDistUpdateEvents(ctx context.Context, btcHeight uint32) JailFinalityProvider(ctx context.Context, fpBTCPK []byte) error UnjailFinalityProvider(ctx context.Context, fpBTCPK []byte) error + UpdateFinalityProvider(ctx context.Context, fp *bstypes.FinalityProvider) error } type CheckpointingKeeper interface { diff --git a/x/finality/types/mocked_keepers.go b/x/finality/types/mocked_keepers.go index 044983cc..30bd8b13 100644 --- a/x/finality/types/mocked_keepers.go +++ b/x/finality/types/mocked_keepers.go @@ -191,6 +191,20 @@ func (mr *MockBTCStakingKeeperMockRecorder) UnjailFinalityProvider(ctx, fpBTCPK return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnjailFinalityProvider", reflect.TypeOf((*MockBTCStakingKeeper)(nil).UnjailFinalityProvider), ctx, fpBTCPK) } +// UpdateFinalityProvider mocks base method. +func (m *MockBTCStakingKeeper) UpdateFinalityProvider(ctx context.Context, fp *types.FinalityProvider) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateFinalityProvider", ctx, fp) + ret0, _ := ret[0].(error) + return ret0 +} + +// UpdateFinalityProvider indicates an expected call of UpdateFinalityProvider. +func (mr *MockBTCStakingKeeperMockRecorder) UpdateFinalityProvider(ctx, fp interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFinalityProvider", reflect.TypeOf((*MockBTCStakingKeeper)(nil).UpdateFinalityProvider), ctx, fp) +} + // MockCheckpointingKeeper is a mock of CheckpointingKeeper interface. type MockCheckpointingKeeper struct { ctrl *gomock.Controller diff --git a/x/finality/types/query.pb.go b/x/finality/types/query.pb.go index 64ccbf9a..b858c89c 100644 --- a/x/finality/types/query.pb.go +++ b/x/finality/types/query.pb.go @@ -454,6 +454,9 @@ type ActiveFinalityProvidersAtHeightResponse struct { SlashedBtcHeight uint32 `protobuf:"varint,5,opt,name=slashed_btc_height,json=slashedBtcHeight,proto3" json:"slashed_btc_height,omitempty"` // jailed defines whether the finality provider is detected jailed Jailed bool `protobuf:"varint,6,opt,name=jailed,proto3" json:"jailed,omitempty"` + // highest_voted_height is the highest height for which the + // finality provider has voted + HighestVotedHeight uint32 `protobuf:"varint,7,opt,name=highest_voted_height,json=highestVotedHeight,proto3" json:"highest_voted_height,omitempty"` } func (m *ActiveFinalityProvidersAtHeightResponse) Reset() { @@ -526,6 +529,13 @@ func (m *ActiveFinalityProvidersAtHeightResponse) GetJailed() bool { return false } +func (m *ActiveFinalityProvidersAtHeightResponse) GetHighestVotedHeight() uint32 { + if m != nil { + return m.HighestVotedHeight + } + return 0 +} + // QueryActiveFinalityProvidersAtHeightResponse is the response type for the // Query/ActiveFinalityProvidersAtHeight RPC method. type QueryActiveFinalityProvidersAtHeightResponse struct { @@ -1847,129 +1857,131 @@ func init() { func init() { proto.RegisterFile("babylon/finality/v1/query.proto", fileDescriptor_32bddab77af6fdae) } var fileDescriptor_32bddab77af6fdae = []byte{ - // 1950 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0xcd, 0x6f, 0xdb, 0xd8, - 0x11, 0xf7, 0xb3, 0x63, 0xc7, 0x19, 0x49, 0x8d, 0xfd, 0xec, 0xb8, 0xae, 0x92, 0xc8, 0x32, 0x77, - 0x13, 0x7b, 0x9d, 0x84, 0x8c, 0x95, 0x34, 0xcd, 0x06, 0x9b, 0x4d, 0xac, 0xd4, 0xae, 0x8d, 0x3a, - 0x8e, 0x96, 0xce, 0x06, 0x68, 0x2e, 0x04, 0x25, 0x53, 0x12, 0x6b, 0xf1, 0x63, 0x45, 0x52, 0xb5, - 0x51, 0x2c, 0x50, 0xf4, 0xb0, 0x87, 0xa2, 0x05, 0x16, 0xe8, 0xa5, 0x3d, 0xec, 0xa1, 0x40, 0x5b, - 0x14, 0xed, 0xa5, 0xc7, 0xf6, 0x3f, 0xd8, 0xe3, 0x62, 0xdb, 0x43, 0xb1, 0xc5, 0xa6, 0x41, 0x12, - 0xa0, 0x40, 0x4f, 0xfd, 0x13, 0x0a, 0xbe, 0x37, 0x14, 0x45, 0x89, 0x92, 0xe8, 0x0f, 0xf4, 0x62, - 0x58, 0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8, 0xf5, - 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd9, 0x4d, 0x5d, 0x1d, 0x74, 0x1d, 0x00, 0x00, + // 1974 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0xcd, 0x6f, 0x1b, 0xd7, + 0x11, 0xd7, 0x93, 0x2c, 0x59, 0x1e, 0x92, 0xb5, 0xf4, 0x24, 0xab, 0x2a, 0x6d, 0x53, 0xd4, 0x26, + 0xb6, 0x14, 0xd9, 0xde, 0xb5, 0x68, 0xd7, 0x75, 0x8c, 0x38, 0xb6, 0xe8, 0x4a, 0x95, 0x50, 0x59, + 0x66, 0x56, 0x8e, 0x81, 0xfa, 0xb2, 0x58, 0x52, 0x4b, 0x72, 0x2b, 0xee, 0x47, 0xb8, 0xbb, 0xac, + 0x84, 0x22, 0x40, 0xd1, 0x43, 0x0e, 0x45, 0x0b, 0x04, 0xe8, 0xa5, 0x3d, 0xe4, 0x50, 0xa0, 0x2d, + 0x8a, 0xf6, 0xd2, 0x6b, 0xff, 0x03, 0x1f, 0x83, 0xb4, 0x87, 0x22, 0x45, 0xdc, 0xc0, 0x36, 0x50, + 0x20, 0xa7, 0xfe, 0x09, 0xc5, 0xbe, 0x37, 0xcb, 0xe5, 0x92, 0x4b, 0x72, 0xf5, 0x81, 0x5e, 0x04, + 0xf1, 0xbd, 0xf9, 0xf8, 0xcd, 0xbc, 0x99, 0xd9, 0x99, 0x81, 0x85, 0xb2, 0x5a, 0x3e, 0x6c, 0x58, + 0xa6, 0x54, 0xd5, 0x4d, 0xb5, 0xa1, 0xbb, 0x87, 0x52, 0x6b, 0x55, 0xfa, 0xc8, 0xd3, 0x9a, 0x87, + 0xa2, 0xdd, 0xb4, 0x5c, 0x8b, 0xce, 0x20, 0x81, 0x18, 0x10, 0x88, 0xad, 0xd5, 0xec, 0x6c, 0xcd, + 0xaa, 0x59, 0xec, 0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x11, 0x9c, 0x0b, 0x30, 0x07, 0x95, + 0x24, 0xa1, 0xad, 0x21, 0xdf, 0xe9, 0x15, 0x94, 0xf7, 0xb0, 0xde, 0xed, 0xea, 0x35, 0x53, 0x37, + 0x6b, 0x5b, 0x66, 0xd5, 0x3a, 0x42, 0xb6, 0x7e, 0x45, 0x60, 0x26, 0xc2, 0x79, 0xa4, 0x84, 0x8d, + 0x3c, 0x88, 0x6f, 0xc3, 0x58, 0xf4, 0x41, 0x0a, 0x70, 0xc1, 0xd0, 0x1d, 0xc7, 0x1f, 0x51, 0x58, + 0x19, 0x55, 0x2a, 0x96, 0x67, 0xba, 0x38, 0x05, 0x8d, 0xc9, 0x33, 0xfc, 0x92, 0x57, 0xe9, 0x47, + 0xfc, 0x8a, 0x6e, 0x43, 0x9a, 0xcf, 0x26, 0x8a, 0x67, 0xba, 0x7a, 0x83, 0xe5, 0x61, 0xaa, 0x90, + 0x15, 0xf9, 0xfe, 0x41, 0x0c, 0xf6, 0x0f, 0xe2, 0xd3, 0x60, 0xff, 0x50, 0xcc, 0xbc, 0x78, 0xb9, + 0x30, 0xf2, 0xe9, 0xbf, 0x17, 0xc8, 0x9f, 0xfe, 0xf3, 0xd7, 0x15, 0x22, 0xa7, 0x38, 0xfb, 0x87, + 0x3e, 0xb7, 0x60, 0xc0, 0x7c, 0xaf, 0x77, 0xda, 0x75, 0x33, 0xed, 0xf0, 0x63, 0x45, 0x37, 0xab, + 0x16, 0x86, 0xed, 0x72, 0xec, 0x53, 0xc6, 0xf0, 0xe3, 0x12, 0x22, 0xe5, 0x84, 0x57, 0x42, 0xb9, + 0x57, 0x5d, 0x3b, 0x80, 0xa3, 0xd1, 0x49, 0x8e, 0x1d, 0x9d, 0x7f, 0x0b, 0xd2, 0x24, 0xaa, 0x04, + 0x8d, 0xda, 0x85, 0x4c, 0xa7, 0x51, 0x41, 0x80, 0x1e, 0xd5, 0xaa, 0x74, 0x87, 0x55, 0xa7, 0x17, + 0xac, 0x2b, 0x0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, + 0x10, 0x98, 0x0c, 0xba, 0x56, 0xfa, 0x4e, 0x7f, 0x55, 0x5d, 0x73, 0x61, 0x76, 0x25, 0x09, 0x29, + 0x02, 0xda, 0x64, 0x80, 0x8a, 0xf4, 0xe1, 0x71, 0x23, 0x2e, 0x68, 0xa2, 0xe9, 0x6f, 0x08, 0x64, + 0x22, 0x2d, 0xfa, 0x20, 0x6f, 0xc6, 0x0d, 0x15, 0x83, 0xbc, 0x19, 0xdb, 0xfb, 0x0b, 0x57, 0x19, + 0xf8, 0x3c, 0xcd, 0xc5, 0x82, 0x0f, 0xdb, 0xfb, 0x3f, 0x12, 0x48, 0x75, 0x74, 0x57, 0x74, 0x40, + 0x2c, 0xf5, 0x36, 0xee, 0xd9, 0x1b, 0x09, 0xa9, 0x11, 0xd4, 0x3d, 0x06, 0xea, 0x36, 0x2d, 0xc4, + 0x82, 0x8a, 0xb4, 0x83, 0xdd, 0xce, 0xa4, 0xbf, 0x25, 0x90, 0xee, 0x6c, 0x24, 0x69, 0x32, 0xdd, + 0x6d, 0x0f, 0x8a, 0x49, 0xc9, 0x11, 0xeb, 0x0a, 0xc3, 0xfa, 0x36, 0x15, 0x86, 0x63, 0x2d, 0x6e, + 0xbf, 0x78, 0x95, 0x23, 0x9f, 0xbf, 0xca, 0x91, 0xaf, 0x5f, 0xe5, 0xc8, 0xa7, 0xaf, 0x73, 0x23, + 0x9f, 0xbf, 0xce, 0x8d, 0xfc, 0xf3, 0x75, 0x6e, 0xe4, 0x79, 0x61, 0xf8, 0x3c, 0x7b, 0x10, 0x0a, + 0x66, 0xa3, 0x6d, 0x79, 0x82, 0x8d, 0x0e, 0xb7, 0xfe, 0x17, 0x00, 0x00, 0xff, 0xff, 0x1a, 0x36, + 0x2c, 0x81, 0xa6, 0x1d, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -2798,6 +2810,11 @@ func (m *ActiveFinalityProvidersAtHeightResponse) MarshalToSizedBuffer(dAtA []by _ = i var l int _ = l + if m.HighestVotedHeight != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.HighestVotedHeight)) + i-- + dAtA[i] = 0x38 + } if m.Jailed { i-- if m.Jailed { @@ -3964,6 +3981,9 @@ func (m *ActiveFinalityProvidersAtHeightResponse) Size() (n int) { if m.Jailed { n += 2 } + if m.HighestVotedHeight != 0 { + n += 1 + sovQuery(uint64(m.HighestVotedHeight)) + } return n } @@ -5118,6 +5138,25 @@ func (m *ActiveFinalityProvidersAtHeightResponse) Unmarshal(dAtA []byte) error { } } m.Jailed = bool(v != 0) + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HighestVotedHeight", wireType) + } + m.HighestVotedHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HighestVotedHeight |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:])