mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-05-02 16:00:30 +02:00
rpcserver: expose ChanStatusFlags in pending close
This commit exposes the ChanStatusFlags inside waitingCloseResp such that the channel close type is exposed.
This commit is contained in:
parent
099d5b8286
commit
53e02fa83d
File diff suppressed because it is too large
Load Diff
@ -2312,6 +2312,9 @@ message PendingChannelsResponse {
|
|||||||
|
|
||||||
// Total number of forwarding packages created in this channel.
|
// Total number of forwarding packages created in this channel.
|
||||||
int64 num_forwarding_packages = 10;
|
int64 num_forwarding_packages = 10;
|
||||||
|
|
||||||
|
// A set of flags showing the current state of the channel.
|
||||||
|
string chan_status_flags = 11;
|
||||||
}
|
}
|
||||||
|
|
||||||
message PendingOpenChannel {
|
message PendingOpenChannel {
|
||||||
|
@ -2757,6 +2757,10 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"format": "int64",
|
"format": "int64",
|
||||||
"description": "Total number of forwarding packages created in this channel."
|
"description": "Total number of forwarding packages created in this channel."
|
||||||
|
},
|
||||||
|
"chan_status_flags": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "A set of flags showing the current state of the channel."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -3453,6 +3453,7 @@ func (r *rpcServer) PendingChannels(ctx context.Context,
|
|||||||
Initiator: rpcInitiator(waitingClose.IsInitiator),
|
Initiator: rpcInitiator(waitingClose.IsInitiator),
|
||||||
CommitmentType: rpcCommitmentType(waitingClose.ChanType),
|
CommitmentType: rpcCommitmentType(waitingClose.ChanType),
|
||||||
NumForwardingPackages: int64(len(fwdPkgs)),
|
NumForwardingPackages: int64(len(fwdPkgs)),
|
||||||
|
ChanStatusFlags: waitingClose.ChanStatus().String(),
|
||||||
}
|
}
|
||||||
|
|
||||||
waitingCloseResp := &lnrpc.PendingChannelsResponse_WaitingCloseChannel{
|
waitingCloseResp := &lnrpc.PendingChannelsResponse_WaitingCloseChannel{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user