mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-31 17:51:33 +02:00
rpc: display HTLC amount in satoshis in ListChannels response
Before this commit, they were displayed in mSAT which violates the current trend of always displaying amounts externally in satoshis.
This commit is contained in:
@@ -1337,7 +1337,7 @@ func (r *rpcServer) ListChannels(ctx context.Context,
|
||||
for i, htlc := range localCommit.Htlcs {
|
||||
channel.PendingHtlcs[i] = &lnrpc.HTLC{
|
||||
Incoming: htlc.Incoming,
|
||||
Amount: int64(htlc.Amt),
|
||||
Amount: int64(htlc.Amt.ToSatoshis()),
|
||||
HashLock: htlc.RHash[:],
|
||||
ExpirationHeight: htlc.RefundTimeout,
|
||||
}
|
||||
|
Reference in New Issue
Block a user