lnd.xprv/lntest/itest
ccdle12 05d0d028bc
htlcswitch+config+server: Adds a rejecthtlc flag that disables forwarded
htlcs

config: Adding RejectHTLC field in config struct

This commit adds a RejectHTLC field in the config struct in config.go.
This allows the user to run lnd as a node that does not accept onward
HTLCs.

htlcswitch/switch: Adding a field RejectHTLC to the switch config

This commit adds a field RejectHTLC to the switch config. When the
switch receives an HTLC it will check this flag and if the HTLC is not
from the source hop, the HTLC will be rejected.

htlcswitch/switch: adding check for RejectHTLC flag and incomingChanID

This commit adds a check when receiving UpdateAddHTLC. The check looks
for the RejectHTLC flag set and whether the HTLC is from the sourceHop
(the local switch). If the HTLC is not from the sourceHop, then we
reject the HTLC and return a FailChannelDisabled error.

server: adding RejectHTLC field to initialization of switch

lnd_test: adding test for RejectHTLC

This commit adds a test which tests that a node with the --rejecthtlc
flag will reject any onward HTLCs but still can receive direct HTLCs and
can send HTLCs.
2019-08-20 11:01:44 +01:00
..
lnd_multi-hop_htlc_local_chain_claim_test.go itest+routing: updating tests to account for BlockPadding 2019-07-23 21:03:30 -04:00
lnd_multi-hop_htlc_receiver_chain_claim_test.go itest+routing: updating tests to account for BlockPadding 2019-07-23 21:03:30 -04:00
lnd_multi-hop_htlc_remote_chain_claim_test.go itest+routing: updating tests to account for BlockPadding 2019-07-23 21:03:30 -04:00
lnd_test.go htlcswitch+config+server: Adds a rejecthtlc flag that disables forwarded 2019-08-20 11:01:44 +01:00
onchain.go lntest: add CPFP integration test 2019-06-11 15:06:41 -07:00