mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-30 00:41:31 +00:00
lnbase: set to_self_delay back to 144, defer cltv_expiry problem
This commit is contained in:
parent
aa3723797c
commit
88f270a170
1 changed files with 2 additions and 2 deletions
|
@ -768,7 +768,7 @@ class Peer(PrintError):
|
||||||
per_commitment_secret_index = 2**48 - 1
|
per_commitment_secret_index = 2**48 - 1
|
||||||
# amounts
|
# amounts
|
||||||
local_feerate = 20000
|
local_feerate = 20000
|
||||||
to_self_delay = 143
|
to_self_delay = 144
|
||||||
dust_limit_sat = 10
|
dust_limit_sat = 10
|
||||||
#
|
#
|
||||||
per_commitment_secret_first = get_per_commitment_secret_from_seed(per_commitment_secret_seed, per_commitment_secret_index)
|
per_commitment_secret_first = get_per_commitment_secret_from_seed(per_commitment_secret_seed, per_commitment_secret_index)
|
||||||
|
@ -1048,7 +1048,7 @@ class Peer(PrintError):
|
||||||
local_delayedpubkey=remote_delayedpubkey,
|
local_delayedpubkey=remote_delayedpubkey,
|
||||||
amount_msat=amount_msat,
|
amount_msat=amount_msat,
|
||||||
witness_script=bh2u(preimage_script))
|
witness_script=bh2u(preimage_script))
|
||||||
htlc_tx = make_htlc_tx(remote_delay, inputs=htlc_tx_inputs, output=htlc_tx_output)
|
htlc_tx = make_htlc_tx(cltv_expiry, inputs=htlc_tx_inputs, output=htlc_tx_output)
|
||||||
|
|
||||||
# htlc_sig signs the HTLC transaction that spends from THEIR commitment transaction's offered_htlc output
|
# htlc_sig signs the HTLC transaction that spends from THEIR commitment transaction's offered_htlc output
|
||||||
sig = bfh(htlc_tx.sign_txin(0, their_remote_htlc_privkey))
|
sig = bfh(htlc_tx.sign_txin(0, their_remote_htlc_privkey))
|
||||||
|
|
Loading…
Add table
Reference in a new issue