mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-29 08:21:27 +00:00
create_sweeptxs_for_our_ctx: fix static_remotekey
This commit is contained in:
parent
5bf3115a4a
commit
f53a10084d
1 changed files with 3 additions and 1 deletions
|
@ -193,7 +193,9 @@ def create_sweeptxs_for_our_ctx(*, chan: 'AbstractChannel', ctx: Transaction,
|
|||
to_local_witness_script = bh2u(make_commitment_output_to_local_witness_script(
|
||||
their_revocation_pubkey, to_self_delay, our_localdelayed_pubkey))
|
||||
to_local_address = redeem_script_to_address('p2wsh', to_local_witness_script)
|
||||
their_payment_pubkey = derive_pubkey(their_conf.payment_basepoint.pubkey, our_pcp)
|
||||
# to remote address
|
||||
bpk = their_conf.payment_basepoint.pubkey
|
||||
their_payment_pubkey = bpk if chan.is_static_remotekey_enabled() else derive_pubkey(their_conf.payment_basepoint.pubkey, our_pcp)
|
||||
to_remote_address = make_commitment_output_to_remote_address(their_payment_pubkey)
|
||||
# test ctx
|
||||
_logger.debug(f'testing our ctx: {to_local_address} {to_remote_address}')
|
||||
|
|
Loading…
Add table
Reference in a new issue