Browse Source

use to_dict (follow-up baa03a469f3e0e0ae61593272f5cb7e2483d49ad)

dependabot/pip/contrib/deterministic-build/ecdsa-0.13.3
ThomasV 6 years ago
parent
commit
320dc29732
  1. 8
      electrum/lnchan.py

8
electrum/lnchan.py

@ -473,10 +473,10 @@ class Channel(PrintError):
return return
outpoint = self.funding_outpoint.to_str() outpoint = self.funding_outpoint.to_str()
ctx = self.remote_commitment_to_be_revoked # FIXME can't we just reconstruct it? 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) sweeptxs = create_sweeptxs_for_their_just_revoked_ctx(self, ctx, per_commitment_secret, self.sweep_address)
for prev_txid, encumbered_tx in encumbered_sweeptxs.items(): for prev_txid, tx in sweeptxs.items():
if encumbered_tx is not None: if tx is not None:
self.lnwatcher.add_sweep_tx(outpoint, prev_txid, encumbered_tx.to_json()) self.lnwatcher.add_sweep_tx(outpoint, prev_txid, tx.to_dict())
def receive_revocation(self, revocation) -> Tuple[int, int]: def receive_revocation(self, revocation) -> Tuple[int, int]:
self.print_error("receive_revocation") self.print_error("receive_revocation")

Loading…
Cancel
Save