1
0

move sweeping methods from lnchan.py to new file

also sweep "received" htlcs from "our" ctx
also sweep htlcs from their ctx (non-breach)
extract ctn; included_htlcs_in_their_latest_ctxs
This commit is contained in:
SomberNight
2018-10-23 16:44:39 +02:00
committed by ThomasV
parent bc72966442
commit 595cfcbb65
9 changed files with 645 additions and 301 deletions

View File

@@ -552,8 +552,6 @@ class TestLNUtil(unittest.TestCase):
our_htlc_tx_inputs = make_htlc_tx_inputs(
htlc_output_txid=our_commit_tx.txid(),
htlc_output_index=htlc_output_index,
revocationpubkey=local_revocation_pubkey,
local_delayedpubkey=local_delayedpubkey,
amount_msat=amount_msat,
witness_script=bh2u(htlc))
our_htlc_tx = make_htlc_tx(cltv_timeout,