mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-02 02:05:19 +00:00
fix watchtower: sweep_tx must not be None
This commit is contained in:
parent
d477e3489f
commit
dff1822c37
1 changed files with 2 additions and 1 deletions
|
@ -55,6 +55,7 @@ def create_sweeptxs_for_their_revoked_ctx(chan: 'Channel', ctx: Transaction, per
|
||||||
witness_script=witness_script,
|
witness_script=witness_script,
|
||||||
privkey=other_revocation_privkey,
|
privkey=other_revocation_privkey,
|
||||||
is_revocation=True)
|
is_revocation=True)
|
||||||
|
if sweep_tx:
|
||||||
txs.append(sweep_tx)
|
txs.append(sweep_tx)
|
||||||
# HTLCs
|
# HTLCs
|
||||||
def create_sweeptx_for_htlc(htlc: 'UpdateAddHtlc', is_received_htlc: bool) -> Tuple[Optional[Transaction],
|
def create_sweeptx_for_htlc(htlc: 'UpdateAddHtlc', is_received_htlc: bool) -> Tuple[Optional[Transaction],
|
||||||
|
|
Loading…
Add table
Reference in a new issue