mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-27 07:23:25 +00:00
follow up b5eb7dd7683f24f03c80ab8f612658b5f3966eb1
This commit is contained in:
parent
8b4bdf6fc0
commit
df60d4eb05
1 changed files with 1 additions and 2 deletions
|
@ -483,7 +483,6 @@ def make_commitment(ctn, local_funding_pubkey, remote_funding_pubkey, remotepubk
|
||||||
tx.BIP_LI01_sort()
|
tx.BIP_LI01_sort()
|
||||||
return tx
|
return tx
|
||||||
|
|
||||||
FOR_US, FOR_REMOTE = range(2)
|
|
||||||
|
|
||||||
class Peer(PrintError):
|
class Peer(PrintError):
|
||||||
def __init__(self, host, port, pubkey, request_initial_sync=False, network=None):
|
def __init__(self, host, port, pubkey, request_initial_sync=False, network=None):
|
||||||
|
@ -922,7 +921,7 @@ class Peer(PrintError):
|
||||||
local_ctx_args.base_point, local_ctx_args.remote_payment_basepoint,
|
local_ctx_args.base_point, local_ctx_args.remote_payment_basepoint,
|
||||||
revocation_pubkey, remote_delayedpubkey, remote_delay,
|
revocation_pubkey, remote_delayedpubkey, remote_delay,
|
||||||
local_ctx_args.funding_txid, local_ctx_args.funding_index, local_ctx_args.funding_satoshis,
|
local_ctx_args.funding_txid, local_ctx_args.funding_index, local_ctx_args.funding_satoshis,
|
||||||
local_ctx_args.local_amount, local_ctx_args.remote_amount, remote_dust_limit_satoshis, local_ctx_args.local_feerate, FOR_REMOTE, htlcs=htlcs_in_remote)
|
local_ctx_args.local_amount, local_ctx_args.remote_amount, remote_dust_limit_satoshis, local_ctx_args.local_feerate, False, htlcs=htlcs_in_remote)
|
||||||
remote_ctx.sign({bh2u(local_ctx_args.funding_pubkey): (funding_privkey, True)})
|
remote_ctx.sign({bh2u(local_ctx_args.funding_pubkey): (funding_privkey, True)})
|
||||||
sig_index = pubkeys.index(bh2u(local_ctx_args.funding_pubkey))
|
sig_index = pubkeys.index(bh2u(local_ctx_args.funding_pubkey))
|
||||||
sig = bytes.fromhex(remote_ctx.inputs()[0]["signatures"][sig_index])
|
sig = bytes.fromhex(remote_ctx.inputs()[0]["signatures"][sig_index])
|
||||||
|
|
Loading…
Add table
Reference in a new issue