htlcswitch: accept over-paid HTLC's fee-wise
This commit modifies fee acceptance logic to allow remote nodes to *over pay* for the HTLC’s sent.
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -1251,7 +1251,7 @@ func (l *channelLink) processLockedInHtlcs(
|
||||
// construct the forwarding information for
|
||||
// this hop. In any case, we'll cancel this
|
||||
// HTLC.
|
||||
if pd.Amount-expectedFee != fwdInfo.AmountToForward {
|
||||
if pd.Amount-expectedFee < fwdInfo.AmountToForward {
|
||||
log.Errorf("Incoming htlc(%x) has "+
|
||||
"insufficient fee: expected "+
|
||||
"%v, got %v", pd.RHash[:],
|
||||
|
||||
Reference in new issue
Block a user