From a7c43fbb032b5fc4c15743d0a9dfa7c333429f5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hampus=20Sj=C3=B6berg?= Date: Mon, 5 Apr 2021 15:19:22 +0200 Subject: [PATCH] lnrpc: Change State -> state in SubscribeStateResponse This is to keep it in-line with the naming convention of the protobuf response fields. --- lnrpc/stateservice.pb.go | 28 ++++++++++++++-------------- lnrpc/stateservice.proto | 2 +- lnrpc/stateservice.swagger.json | 2 +- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/lnrpc/stateservice.pb.go b/lnrpc/stateservice.pb.go index 4dca5aab..a1d1aeef 100644 --- a/lnrpc/stateservice.pb.go +++ b/lnrpc/stateservice.pb.go @@ -87,7 +87,7 @@ func (m *SubscribeStateRequest) XXX_DiscardUnknown() { var xxx_messageInfo_SubscribeStateRequest proto.InternalMessageInfo type SubscribeStateResponse struct { - State WalletState `protobuf:"varint,1,opt,name=State,proto3,enum=lnrpc.WalletState" json:"State,omitempty"` + State WalletState `protobuf:"varint,1,opt,name=state,proto3,enum=lnrpc.WalletState" json:"state,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -134,23 +134,23 @@ func init() { func init() { proto.RegisterFile("stateservice.proto", fileDescriptor_9cd64a11048f05dd) } var fileDescriptor_9cd64a11048f05dd = []byte{ - // 244 bytes of a gzipped FileDescriptorProto + // 245 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2a, 0x2e, 0x49, 0x2c, 0x49, 0x2d, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0xcd, 0xc9, 0x2b, 0x2a, 0x48, 0x56, 0x12, 0xe7, 0x12, 0x0d, 0x2e, 0x4d, 0x2a, 0x4e, 0x2e, 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x19, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x05, 0xd6, 0xa9, 0xb4, - 0x4e, 0x01, 0x00, 0x00, + 0x43, 0x97, 0x28, 0x2e, 0xc8, 0xcf, 0x2b, 0x4e, 0x15, 0xd2, 0xe0, 0x62, 0x05, 0x9b, 0x27, 0xc1, + 0xa8, 0xc0, 0xa8, 0xc1, 0x67, 0x24, 0xa4, 0x07, 0x36, 0x49, 0x2f, 0x3c, 0x31, 0x27, 0x27, 0xb5, + 0x04, 0xa2, 0x14, 0xa2, 0x40, 0xcb, 0x93, 0x8b, 0x1b, 0x49, 0x54, 0x48, 0x80, 0x8b, 0xc7, 0xcf, + 0xdf, 0x2f, 0xde, 0x35, 0xc2, 0x33, 0x38, 0xc4, 0xd3, 0xcf, 0x5d, 0x80, 0x41, 0x88, 0x8b, 0x8b, + 0xcd, 0xc7, 0xdf, 0xd9, 0xdb, 0xd5, 0x45, 0x80, 0x51, 0x88, 0x87, 0x8b, 0x23, 0xd4, 0x0f, 0xca, + 0x63, 0x12, 0xe2, 0xe3, 0xe2, 0x0a, 0x0a, 0x70, 0x8e, 0x77, 0x74, 0x0e, 0xf1, 0x0c, 0x73, 0x15, + 0x60, 0x36, 0x8a, 0xe0, 0x62, 0x85, 0x18, 0xe2, 0xcf, 0xc5, 0x87, 0xea, 0x2e, 0x21, 0x19, 0xa8, + 0x03, 0xb0, 0xfa, 0x43, 0x4a, 0x16, 0x87, 0x2c, 0xc4, 0x33, 0x06, 0x8c, 0x4e, 0xea, 0x51, 0xaa, + 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x39, 0x99, 0xe9, 0x19, 0x25, + 0x79, 0x99, 0x79, 0xe9, 0x79, 0xa9, 0x25, 0xe5, 0xf9, 0x45, 0xd9, 0xfa, 0x39, 0x79, 0x29, 0xfa, + 0x60, 0x13, 0x92, 0xd8, 0xc0, 0x01, 0x67, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x75, 0x6a, 0x2f, + 0xe2, 0x4e, 0x01, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/lnrpc/stateservice.proto b/lnrpc/stateservice.proto index a884e781..e7a6ecbd 100644 --- a/lnrpc/stateservice.proto +++ b/lnrpc/stateservice.proto @@ -42,5 +42,5 @@ message SubscribeStateRequest { } message SubscribeStateResponse { - WalletState State = 1; + WalletState state = 1; } diff --git a/lnrpc/stateservice.swagger.json b/lnrpc/stateservice.swagger.json index ef521fc4..c0589afe 100644 --- a/lnrpc/stateservice.swagger.json +++ b/lnrpc/stateservice.swagger.json @@ -48,7 +48,7 @@ "lnrpcSubscribeStateResponse": { "type": "object", "properties": { - "State": { + "state": { "$ref": "#/definitions/lnrpcWalletState" } }