htlcswitch: add receiver-side inbound fee support

This commit is contained in:
Joost Jager
2022-09-19 12:06:34 +02:00
parent 3e6adbf1c0
commit e8c97deaef
10 changed files with 388 additions and 19 deletions

View File

@@ -1178,7 +1178,9 @@ func (s *Switch) handlePacketForward(packet *htlcPacket) error {
failure = link.CheckHtlcForward(
htlc.PaymentHash, packet.incomingAmount,
packet.amount, packet.incomingTimeout,
packet.outgoingTimeout, currentHeight,
packet.outgoingTimeout,
packet.inboundFee,
currentHeight,
packet.originalOutgoingChanID,
)
}