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:
parent
4d92d23762
commit
475c3b6c0c
@ -1251,7 +1251,7 @@ func (l *channelLink) processLockedInHtlcs(
|
|||||||
// construct the forwarding information for
|
// construct the forwarding information for
|
||||||
// this hop. In any case, we'll cancel this
|
// this hop. In any case, we'll cancel this
|
||||||
// HTLC.
|
// HTLC.
|
||||||
if pd.Amount-expectedFee != fwdInfo.AmountToForward {
|
if pd.Amount-expectedFee < fwdInfo.AmountToForward {
|
||||||
log.Errorf("Incoming htlc(%x) has "+
|
log.Errorf("Incoming htlc(%x) has "+
|
||||||
"insufficient fee: expected "+
|
"insufficient fee: expected "+
|
||||||
"%v, got %v", pd.RHash[:],
|
"%v, got %v", pd.RHash[:],
|
||||||
|
Loading…
Reference in New Issue
Block a user