1
0

Perform breach remedy without sweepstore:

- add functions to lnsweep
 - lnworker: analyze candidate ctx and htlc_tx
 - watchtower will be optional
 - add test for breach remedy with spent htlcs
 - save tx name as label
This commit is contained in:
ThomasV
2019-06-24 11:13:18 +02:00
parent 238f3c949c
commit a8ce8109be
8 changed files with 280 additions and 95 deletions

View File

@@ -359,7 +359,7 @@ def make_htlc_tx_with_open_channel(chan: 'Channel', pcp: bytes, for_us: bool,
is_htlc_success = for_us == we_receive
script, htlc_tx_output = make_htlc_tx_output(
amount_msat = amount_msat,
local_feerate = chan.pending_feerate(LOCAL if for_us else REMOTE),
local_feerate = chan.pending_feerate(LOCAL if for_us else REMOTE), # uses pending feerate..
revocationpubkey=other_revocation_pubkey,
local_delayedpubkey=delayedpubkey,
success = is_htlc_success,