fix watchtower: sweep_tx must not be None
This commit is contained in:
@@ -55,7 +55,8 @@ 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)
|
||||||
txs.append(sweep_tx)
|
if 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],
|
||||||
Optional[Transaction],
|
Optional[Transaction],
|
||||||
|
|||||||
Reference in New Issue
Block a user