mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-12-19 20:25:51 +01:00
lnrpc: add commit fees to WaitingPendingClose
This commit is contained in:
12
rpcserver.go
12
rpcserver.go
@@ -2800,6 +2800,10 @@ func (r *rpcServer) PendingChannels(ctx context.Context,
|
||||
commitments.LocalTxid =
|
||||
waitingClose.LocalCommitment.CommitTx.TxHash().
|
||||
String()
|
||||
|
||||
commitments.LocalCommitFeeSat = uint64(
|
||||
waitingClose.LocalCommitment.CommitFee,
|
||||
)
|
||||
}
|
||||
|
||||
// Report remote commit. May not be present when DLP is active.
|
||||
@@ -2807,6 +2811,10 @@ func (r *rpcServer) PendingChannels(ctx context.Context,
|
||||
commitments.RemoteTxid =
|
||||
waitingClose.RemoteCommitment.CommitTx.TxHash().
|
||||
String()
|
||||
|
||||
commitments.RemoteCommitFeeSat = uint64(
|
||||
waitingClose.RemoteCommitment.CommitFee,
|
||||
)
|
||||
}
|
||||
|
||||
// Report the remote pending commit if any.
|
||||
@@ -2826,7 +2834,9 @@ func (r *rpcServer) PendingChannels(ctx context.Context,
|
||||
default:
|
||||
hash := remoteCommitDiff.Commitment.CommitTx.TxHash()
|
||||
commitments.RemotePendingTxid = hash.String()
|
||||
|
||||
commitments.RemoteCommitFeeSat = uint64(
|
||||
remoteCommitDiff.Commitment.CommitFee,
|
||||
)
|
||||
}
|
||||
|
||||
channel := &lnrpc.PendingChannelsResponse_PendingChannel{
|
||||
|
||||
Reference in New Issue
Block a user