1
0

HTLC switch:

- fulfills/fails/forwards HTLCs
- onion_packets are saved when update_add_htlc is received
This commit is contained in:
ThomasV
2020-02-29 09:12:33 +01:00
parent 387c2a1acd
commit da67fda92a
5 changed files with 65 additions and 41 deletions

View File

@@ -25,6 +25,7 @@ class HTLCManager:
log[LOCAL] = deepcopy(initial)
log[REMOTE] = deepcopy(initial)
log['unacked_local_updates2'] = {}
log['unfulfilled_htlcs'] = {} # htlc_id -> onion_packet
# maybe bootstrap fee_updates if initial_feerate was provided
if initial_feerate is not None: