lnd/htlcswitch
yyforyongyu 22d98ca6d5
multi: use new revocation log when creating breach retribution
This commit changes the `NewBreachRetribution` to use the new revocation
log format, while maintaining the compatibilty to use an older
revocation log format. Unit tests have been added to make sure a breach
retribution can be created in both log formats.

This also means the watch tower needs to pass the relevant commit tx at
its backup height when creating the breach retribution during backing
up. This is achieved by recording the current remote commitment state
before advancing the remote commitment chain.
2022-04-20 01:18:14 +08:00
..
hodl multi: add golang 1.17 compatible build tags 2021-09-29 17:31:37 -07:00
hop htlcswitch+invoices: log payment metadata 2022-04-13 22:55:42 +02:00
circuit_map_test.go multi: use btcd's btcec/v2 and btcutil modules 2022-03-09 19:02:37 +01:00
circuit_map.go multi: formatting and comment fixes 2022-02-10 11:02:02 +01:00
circuit_test.go build: update to Go 1.18 2022-04-12 16:14:04 -07:00
circuit.go
decayedlog_test.go htlcswitch: fix duplicate close 2022-01-10 08:42:32 +01:00
decayedlog.go htlcswitch: fix duplicate close 2022-01-10 08:42:32 +01:00
failure_detail.go
failure.go
htlcnotifier.go multi: add logs when subservers are starting 2022-02-11 21:17:03 +08:00
interceptable_switch.go contractcourt: add onchain interception 2022-04-13 11:31:33 +02:00
interfaces.go routerrpc+htlcswitch: move intercepted htlc tracking to switch 2022-03-15 08:44:57 +01: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: add an always on mode to interceptable switch 2022-03-17 17:39:37 +01:00
link.go multi: use new revocation log when creating breach retribution 2022-04-20 01:18:14 +08:00
linkfailure.go htlcswitch: extend ChannelLink interface with ShutdownIfChannelClean 2021-09-13 13:29:50 -04:00
log.go
mailbox_test.go multi: use btcd's btcec/v2 and btcutil modules 2022-03-09 19:02:37 +01:00
mailbox.go multi: formatting and comment fixes 2022-02-10 11:02:02 +01:00
mock.go contractcourt: add onchain interception 2022-04-13 11:31:33 +02:00
packet.go multi: Fix typos [skip ci] 2022-01-24 12:19:02 +02:00
payment_result_test.go multi: formatting and comment fixes 2022-02-10 11:02:02 +01:00
payment_result.go multi: move all channelstate operations to ChannelStateDB 2021-09-29 17:00:03 +02:00
sequencer.go kvdb: move channeldb/kvdb to top level 2021-05-07 14:18:56 +02:00
switch_test.go htlcswitch: interceptor expiry check 2022-04-12 08:27:06 +02:00
switch.go multi: use btcd's btcec/v2 and btcutil modules 2022-03-09 19:02:37 +01:00
test_utils.go htlcswitch: add an always on mode to interceptable switch 2022-03-17 17:39:37 +01:00