mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2025-12-18 14:44:22 +01:00
lnrpc: add FeeMsat to ForwardingEvent
This commit is contained in:
@@ -4692,6 +4692,7 @@ func (r *rpcServer) ForwardingHistory(ctx context.Context,
|
||||
for i, event := range timeSlice.ForwardingEvents {
|
||||
amtInSat := event.AmtIn.ToSatoshis()
|
||||
amtOutSat := event.AmtOut.ToSatoshis()
|
||||
feeMsat := event.AmtIn - event.AmtOut
|
||||
|
||||
resp.ForwardingEvents[i] = &lnrpc.ForwardingEvent{
|
||||
Timestamp: uint64(event.Timestamp.Unix()),
|
||||
@@ -4699,7 +4700,8 @@ func (r *rpcServer) ForwardingHistory(ctx context.Context,
|
||||
ChanIdOut: event.OutgoingChanID.ToUint64(),
|
||||
AmtIn: uint64(amtInSat),
|
||||
AmtOut: uint64(amtOutSat),
|
||||
Fee: uint64(amtInSat - amtOutSat),
|
||||
Fee: uint64(feeMsat.ToSatoshis()),
|
||||
FeeMsat: uint64(feeMsat),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user