Commit graph

17 commits

Author SHA1 Message Date
Carla Kirk-Cohen
7d140d57b9
process: allow outgoing channel not found for failed htlcs
Update error handling for outgoing channel not found to catch the case
where an outgoing channel was not found for a failed HTLC. Unlike
incoming HTLCs, where the HTLC arrived on the channel so we know it
exists, we have not yet performed any existence validation on the
outgoing channel (because interception happens before we check that it
exists).

Since we only need the outgoing channel for record keeping, we just
log the case where a HTLC was failed back and we don't know the channel
(since this is just a bogus channel). We don't store this HTLC in the
DB, as it will be instantly failed back.
2023-12-13 10:31:22 -05:00
Carla Kirk-Cohen
7e6263e72a
multi: report resolved HTLCs to external handler
Add a closure that will handle completed HLTCs for the peer controller.
2023-10-02 12:54:15 -04:00
Carla Kirk-Cohen
686924601c
peer_controller: track HTLC timestamp and fee
Track details in our HTLC map that will not be available on restart.
2023-10-02 12:54:11 -04:00
Carla Kirk-Cohen
7558dd1e18
multi: add outgoing peer information to peerResolvedEvent 2023-10-02 12:54:07 -04:00
Carla Kirk-Cohen
56f29709fe
peer_controller/refactor: add markHtlcComplete function to remove HTLCs
When we want to export HLTC information, we'll need to take more
actions than simply deleting from this map.
2023-09-27 16:57:32 -04:00
Carla Kirk-Cohen
c62a94c013
multi: add now function to peer peer_controller
For use timestamping HTLCs.
2023-09-27 16:57:32 -04:00
Carla Kirk-Cohen
9616f0a724
multi/refactor: rename resolved event key to incoming key 2023-09-14 16:44:12 -04:00
Joost Jager
0cd238a52d
add blocked mode 2023-02-13 14:40:07 +01:00
Joost Jager
56fb959379
refactor peer controller switch 2023-02-13 14:29:36 +01:00
Joost Jager
359f3d2f1d
add web ui 2023-01-09 18:43:59 +01:00
Joost Jager
12cb9b38d4
skip queue if possible 2022-12-31 10:04:48 +01:00
Joost Jager
5a1bc187aa
always resume duplicates 2022-12-31 10:04:48 +01:00
Joost Jager
d20d48f4b1
sync pending htlcs 2022-12-31 10:04:48 +01:00
Joost Jager
2485ecdd6b
fix log 2022-12-15 16:07:53 +00:00
Joost Jager
66264ff430
add queue mode 2022-12-02 14:43:15 +01:00
Joost Jager
f8c0868d7f
enable linter 2022-12-02 12:10:50 +01:00
Joost Jager
b5a28e3ec3
isolate per-peer logic 2022-11-30 15:59:42 +01:00