1
0

lnsweep: use dicts consistently

This commit is contained in:
Janus
2018-12-19 13:21:40 +01:00
committed by ThomasV
parent 06d4224101
commit 3975560db5
2 changed files with 13 additions and 13 deletions

View File

@@ -474,7 +474,7 @@ class Channel(PrintError):
outpoint = self.funding_outpoint.to_str()
ctx = self.remote_commitment_to_be_revoked # FIXME can't we just reconstruct it?
encumbered_sweeptxs = create_sweeptxs_for_their_just_revoked_ctx(self, ctx, per_commitment_secret, self.sweep_address)
for prev_txid, encumbered_tx in encumbered_sweeptxs:
for prev_txid, encumbered_tx in encumbered_sweeptxs.items():
if encumbered_tx is not None:
self.lnwatcher.add_sweep_tx(outpoint, prev_txid, encumbered_tx.to_json())