diff --git a/htlcswitch/link.go b/htlcswitch/link.go index eb94cffc..3272969f 100644 --- a/htlcswitch/link.go +++ b/htlcswitch/link.go @@ -928,7 +928,9 @@ func (l *channelLink) processLockedInHtlcs( // extended. Additionally, we'll ensure that // our time-lock value has been computed // correctly. - if fwdInfo.AmountToForward != invoice.Terms.Value { + if !l.cfg.DebugHTLC && + fwdInfo.AmountToForward != invoice.Terms.Value { + log.Errorf("Onion payload of incoming "+ "htlc(%x) has incorrect value: "+ "expected %v, got %v", pd.RHash, @@ -940,7 +942,9 @@ func (l *channelLink) processLockedInHtlcs( needUpdate = true continue } - if fwdInfo.OutgoingCTLV != l.cfg.FwrdingPolicy.TimeLockDelta { + if !l.cfg.DebugHTLC && + fwdInfo.OutgoingCTLV != l.cfg.FwrdingPolicy.TimeLockDelta { + log.Errorf("Onion payload of incoming "+ "htlc(%x) has incorrect time-lock: "+ "expected %v, got %v", diff --git a/htlcswitch/switch.go b/htlcswitch/switch.go index 41c0fee4..ad927f05 100644 --- a/htlcswitch/switch.go +++ b/htlcswitch/switch.go @@ -628,7 +628,7 @@ func (s *Switch) htlcForwarder() { // Otherwise, we'll log this diff, then accumulate the // new stats into the running total. log.Infof("Sent %v satoshis received %v satoshi "+ - " in the last 10 seconds (%v tx/sec)", + "in the last 10 seconds (%v tx/sec)", diffSatSent, diffSatRecv, float64(diffNumUpdates)/10) totalNumUpdates += diffNumUpdates