From 9516d8da52028da478a2ef22a7a9d77ad243df2c Mon Sep 17 00:00:00 2001 From: Steven Roose Date: Thu, 15 Mar 2018 18:32:35 +0100 Subject: [PATCH] rpc: Fix typo in OpenChannelRequest --- lnrpc/rpc.pb.go | 20 ++++++-------------- lnrpc/rpc.proto | 4 ++-- lnrpc/rpc.swagger.json | 4 ++-- 3 files changed, 10 insertions(+), 18 deletions(-) diff --git a/lnrpc/rpc.pb.go b/lnrpc/rpc.pb.go index 5ed38eb4..1ffc2087 100644 --- a/lnrpc/rpc.pb.go +++ b/lnrpc/rpc.pb.go @@ -519,9 +519,7 @@ func (m *ChannelPoint) String() string { return proto.CompactTextStri func (*ChannelPoint) ProtoMessage() {} func (*ChannelPoint) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} } -type isChannelPoint_FundingTxid interface { - isChannelPoint_FundingTxid() -} +type isChannelPoint_FundingTxid interface{ isChannelPoint_FundingTxid() } type ChannelPoint_FundingTxidBytes struct { FundingTxidBytes []byte `protobuf:"bytes,1,opt,name=funding_txid_bytes,proto3,oneof"` @@ -1558,9 +1556,7 @@ func (m *CloseStatusUpdate) String() string { return proto.CompactTex func (*CloseStatusUpdate) ProtoMessage() {} func (*CloseStatusUpdate) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{41} } -type isCloseStatusUpdate_Update interface { - isCloseStatusUpdate_Update() -} +type isCloseStatusUpdate_Update interface{ isCloseStatusUpdate_Update() } type CloseStatusUpdate_ClosePending struct { ClosePending *PendingUpdate `protobuf:"bytes,1,opt,name=close_pending,oneof"` @@ -1730,9 +1726,9 @@ type OpenChannelRequest struct { LocalFundingAmount int64 `protobuf:"varint,4,opt,name=local_funding_amount" json:"local_funding_amount,omitempty"` // / The number of satoshis to push to the remote side as part of the initial commitment state PushSat int64 `protobuf:"varint,5,opt,name=push_sat" json:"push_sat,omitempty"` - // / The target number of blocks that the closure transaction should be confirmed by. + // / The target number of blocks that the funding transaction should be confirmed by. TargetConf int32 `protobuf:"varint,6,opt,name=target_conf,json=targetConf" json:"target_conf,omitempty"` - // / A manual fee rate set in sat/byte that should be used when crafting the closure transaction. + // / A manual fee rate set in sat/byte that should be used when crafting the funding transaction. SatPerByte int64 `protobuf:"varint,7,opt,name=sat_per_byte,json=satPerByte" json:"sat_per_byte,omitempty"` // / Whether this channel should be private, not announced to the greater network. Private bool `protobuf:"varint,8,opt,name=private" json:"private,omitempty"` @@ -1814,9 +1810,7 @@ func (m *OpenStatusUpdate) String() string { return proto.CompactText func (*OpenStatusUpdate) ProtoMessage() {} func (*OpenStatusUpdate) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{44} } -type isOpenStatusUpdate_Update interface { - isOpenStatusUpdate_Update() -} +type isOpenStatusUpdate_Update interface{ isOpenStatusUpdate_Update() } type OpenStatusUpdate_ChanPending struct { ChanPending *PendingUpdate `protobuf:"bytes,1,opt,name=chan_pending,oneof"` @@ -3714,9 +3708,7 @@ func (m *PolicyUpdateRequest) String() string { return proto.CompactT func (*PolicyUpdateRequest) ProtoMessage() {} func (*PolicyUpdateRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{92} } -type isPolicyUpdateRequest_Scope interface { - isPolicyUpdateRequest_Scope() -} +type isPolicyUpdateRequest_Scope interface{ isPolicyUpdateRequest_Scope() } type PolicyUpdateRequest_Global struct { Global bool `protobuf:"varint,1,opt,name=global,oneof"` diff --git a/lnrpc/rpc.proto b/lnrpc/rpc.proto index 31e2dae1..f2282fa4 100644 --- a/lnrpc/rpc.proto +++ b/lnrpc/rpc.proto @@ -965,10 +965,10 @@ message OpenChannelRequest { /// The number of satoshis to push to the remote side as part of the initial commitment state int64 push_sat = 5 [json_name = "push_sat"]; - /// The target number of blocks that the closure transaction should be confirmed by. + /// The target number of blocks that the funding transaction should be confirmed by. int32 target_conf = 6; - /// A manual fee rate set in sat/byte that should be used when crafting the closure transaction. + /// A manual fee rate set in sat/byte that should be used when crafting the funding transaction. int64 sat_per_byte = 7; /// Whether this channel should be private, not announced to the greater network. diff --git a/lnrpc/rpc.swagger.json b/lnrpc/rpc.swagger.json index 7cc21d43..4650a114 100644 --- a/lnrpc/rpc.swagger.json +++ b/lnrpc/rpc.swagger.json @@ -1756,12 +1756,12 @@ "target_conf": { "type": "integer", "format": "int32", - "description": "/ The target number of blocks that the closure transaction should be confirmed by." + "description": "/ The target number of blocks that the funding transaction should be confirmed by." }, "sat_per_byte": { "type": "string", "format": "int64", - "description": "/ A manual fee rate set in sat/byte that should be used when crafting the closure transaction." + "description": "/ A manual fee rate set in sat/byte that should be used when crafting the funding transaction." }, "private": { "type": "boolean",