You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lightning/src/ln/channel.rs
+7-28
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ use bitcoin::blockdata::opcodes;
14
14
use bitcoin::util::bip143;
15
15
use bitcoin::consensus::encode;
16
16
17
-
use bitcoin::hashes::{Hash,HashEngine};
17
+
use bitcoin::hashes::Hash;
18
18
use bitcoin::hashes::sha256::HashasSha256;
19
19
use bitcoin::hash_types::{Txid,BlockHash,WPubkeyHash};
20
20
@@ -26,7 +26,7 @@ use ln::features::{ChannelFeatures, InitFeatures};
26
26
use ln::msgs;
27
27
use ln::msgs::{DecodeError,OptionalField,DataLossProtect};
28
28
use ln::channelmanager::{PendingHTLCStatus,HTLCSource,HTLCFailReason,HTLCFailureMsg,PendingHTLCInfo,RAACommitmentOrder,PaymentPreimage,PaymentHash,BREAKDOWN_TIMEOUT,MAX_LOCAL_BREAKDOWN_TIMEOUT};
29
-
use ln::chan_utils::{CounterpartyCommitmentSecrets,TxCreationKeys,HTLCOutputInCommitment,HTLC_SUCCESS_TX_WEIGHT,HTLC_TIMEOUT_TX_WEIGHT, make_funding_redeemscript,ChannelPublicKeys,CommitmentTransaction,HolderCommitmentTransaction,ChannelTransactionParameters,CounterpartyChannelTransactionParameters,MAX_HTLCS};
29
+
use ln::chan_utils::{CounterpartyCommitmentSecrets,TxCreationKeys,HTLCOutputInCommitment,HTLC_SUCCESS_TX_WEIGHT,HTLC_TIMEOUT_TX_WEIGHT, make_funding_redeemscript,ChannelPublicKeys,CommitmentTransaction,HolderCommitmentTransaction,ChannelTransactionParameters,CounterpartyChannelTransactionParameters,MAX_HTLCS, get_commitment_transaction_number_obscure_factor};
30
30
use ln::chan_utils;
31
31
use chain::chaininterface::{FeeEstimator,ConfirmationTarget};
32
32
use chain::channelmonitor::{ChannelMonitor,ChannelMonitorUpdate,ChannelMonitorUpdateStep,HTLC_FAIL_BACK_BUFFER};
let funding_redeemscript = self.get_funding_redeemscript();
1541
1518
let funding_txo_script = funding_redeemscript.to_v0_p2wsh();
1519
+
let obscure_factor = get_commitment_transaction_number_obscure_factor(&self.get_holder_pubkeys().payment_point,&self.get_counterparty_pubkeys().payment_point,self.is_outbound());
let funding_redeemscript = self.get_funding_redeemscript();
1609
1587
let funding_txo = self.get_funding_txo().unwrap();
1610
1588
let funding_txo_script = funding_redeemscript.to_v0_p2wsh();
1589
+
let obscure_factor = get_commitment_transaction_number_obscure_factor(&self.get_holder_pubkeys().payment_point,&self.get_counterparty_pubkeys().payment_point,self.is_outbound());
0 commit comments