lnd/htlcswitch
eugene 3897baff0a
htlcswitch: call evaluateDustThreshold in SendHTLC, handlePacketForward
This commit makes SendHTLC (we are the source) evaluate the dust
threshold of the outgoing channel against the default threshold of
500K satoshis. If the threshold is exceeded by adding this HTLC, we
fail backwards. It also makes handlePacketForward (we are forwarding)
evaluate the dust threshold of the incoming channel and the outgoing
channel and fails backwards if either channel's dust sum exceeds the
default threshold.
2021-09-30 13:44:34 -04:00
..
hodl htlcswitch/hodl: switch from debug tag to dev 2018-10-05 13:04:45 +09:00
hop multi: add shutdown logs in subservers 2021-09-15 19:52:03 +08:00
circuit.go htlcswitch: move hop iterator into htlcswitch/hop package 2019-09-05 15:30:31 +02:00
circuit_map.go htlcswitch: clean circuits and keystones for closed channels 2021-09-23 13:24:15 +08:00
circuit_map_test.go htlcswitch: clean circuits and keystones for closed channels 2021-09-23 13:24:15 +08:00
circuit_test.go trivial: typo fix 2021-09-23 13:24:15 +08:00
decayedlog.go bbolt sync-freelist ignored 2021-09-27 06:49:56 +01:00
decayedlog_test.go multi: make decayed log DB remote compatible 2021-08-04 14:55:53 +02:00
failure.go htlcswitch: add linkError field to htlcpacket 2020-02-06 19:43:29 +02:00
failure_detail.go htlcswitch: add linkError field to htlcpacket 2020-02-06 19:43:29 +02:00
htlcnotifier.go multi: add shutdown logs in subservers 2021-09-15 19:52:03 +08:00
interceptable_switch.go htlcswitch: set sourceRef when resolving packets through interceptor 2021-05-07 10:31:22 -03:00
interfaces.go htlcswitch: extend ChannelLink iface with dustHandler iface 2021-09-30 13:44:34 -04:00
link.go htlcswitch: extend ChannelLink iface with dustHandler iface 2021-09-30 13:44:34 -04:00
link_isolated_test.go htlcswitch: introduce and embed packetHandler interface in ChannelLink 2021-08-10 17:15:51 -04:00
link_test.go htlcswitch: fix flake in TestShutdownIfChannelClean 2021-09-29 17:04:53 -04:00
linkfailure.go htlcswitch: extend ChannelLink interface with ShutdownIfChannelClean 2021-09-13 13:29:50 -04:00
log.go htlcswitch/hop: fix logging 2019-09-09 13:52:35 +02:00
mailbox.go htlcswitch: extend Mailbox iface with dust, fee methods 2021-09-30 13:44:34 -04:00
mailbox_test.go htlcswitch: extend Mailbox iface with dust, fee methods 2021-09-30 13:44:34 -04:00
mock.go htlcswitch: extend ChannelLink iface with dustHandler iface 2021-09-30 13:44:34 -04:00
packet.go htlcswitch: expose custom records on intercepted packet 2020-06-27 11:00:46 +02:00
payment_result.go kvdb: move channeldb/kvdb to top level 2021-05-07 14:18:56 +02:00
payment_result_test.go lnwire: prep wire messages for TLV extensions 2021-02-24 17:31:55 +01:00
sequencer.go kvdb: move channeldb/kvdb to top level 2021-05-07 14:18:56 +02:00
switch.go htlcswitch: call evaluateDustThreshold in SendHTLC, handlePacketForward 2021-09-30 13:44:34 -04:00
switch_test.go htlcswitch: call evaluateDustThreshold in SendHTLC, handlePacketForward 2021-09-30 13:44:34 -04:00
test_utils.go htlcswitch+peer: pass BestHeight to ChannelLinkConfig 2021-08-10 17:15:49 -04:00