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/chain/channelmonitor.rs
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -34,10 +34,11 @@ use bitcoin::secp256k1::{Secp256k1,Signature};
34
34
use bitcoin::secp256k1::key::{SecretKey,PublicKey};
35
35
use bitcoin::secp256k1;
36
36
37
+
use ln::{PaymentHash,PaymentPreimage};
37
38
use ln::msgs::DecodeError;
38
39
use ln::chan_utils;
39
40
use ln::chan_utils::{CounterpartyCommitmentSecrets,HTLCOutputInCommitment,HTLCType,ChannelTransactionParameters,HolderCommitmentTransaction};
40
-
use ln::channelmanager::{BestBlock,HTLCSource,PaymentPreimage,PaymentHash};
41
+
use ln::channelmanager::{BestBlock,HTLCSource};
41
42
use ln::onchaintx::{OnchainTxHandler,InputDescriptors};
42
43
use chain;
43
44
use chain::WatchedOutput;
@@ -3048,7 +3049,8 @@ mod tests {
3048
3049
use hex;
3049
3050
use chain::channelmonitor::ChannelMonitor;
3050
3051
use chain::transaction::OutPoint;
3051
-
use ln::channelmanager::{BestBlock,PaymentPreimage,PaymentHash};
3052
+
use ln::{PaymentPreimage,PaymentHash};
3053
+
use ln::channelmanager::BestBlock;
3052
3054
use ln::onchaintx::{OnchainTxHandler,InputDescriptors};
3053
3055
use ln::chan_utils;
3054
3056
use ln::chan_utils::{HTLCOutputInCommitment,ChannelPublicKeys,ChannelTransactionParameters,HolderCommitmentTransaction,CounterpartyChannelTransactionParameters};
Copy file name to clipboardExpand all lines: lightning/src/ln/channel.rs
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -21,10 +21,11 @@ use bitcoin::secp256k1::key::{PublicKey,SecretKey};
21
21
use bitcoin::secp256k1::{Secp256k1,Signature};
22
22
use bitcoin::secp256k1;
23
23
24
+
use ln::{PaymentPreimage,PaymentHash};
24
25
use ln::features::{ChannelFeatures,InitFeatures};
25
26
use ln::msgs;
26
27
use ln::msgs::{DecodeError,OptionalField,DataLossProtect};
27
-
use ln::channelmanager::{BestBlock,PendingHTLCStatus,HTLCSource,HTLCFailReason,HTLCFailureMsg,PendingHTLCInfo,RAACommitmentOrder,PaymentPreimage,PaymentHash,BREAKDOWN_TIMEOUT,MIN_CLTV_EXPIRY_DELTA,MAX_LOCAL_BREAKDOWN_TIMEOUT};
28
+
use ln::channelmanager::{BestBlock,PendingHTLCStatus,HTLCSource,HTLCFailReason,HTLCFailureMsg,PendingHTLCInfo,RAACommitmentOrder,BREAKDOWN_TIMEOUT,MIN_CLTV_EXPIRY_DELTA,MAX_LOCAL_BREAKDOWN_TIMEOUT};
28
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};
29
30
use ln::chan_utils;
30
31
use chain::chaininterface::{FeeEstimator,ConfirmationTarget};
@@ -4824,7 +4825,8 @@ mod tests {
4824
4825
use bitcoin::network::constants::Network;
4825
4826
use bitcoin::hashes::hex::FromHex;
4826
4827
use hex;
4827
-
use ln::channelmanager::{BestBlock,HTLCSource,PaymentPreimage,PaymentHash};
4828
+
use ln::{PaymentPreimage,PaymentHash};
4829
+
use ln::channelmanager::{BestBlock,HTLCSource};
4828
4830
use ln::channel::{Channel,InboundHTLCOutput,OutboundHTLCOutput,InboundHTLCState,OutboundHTLCState,HTLCOutputInCommitment,HTLCCandidate,HTLCInitiator,TxCreationKeys};
Copy file name to clipboardExpand all lines: lightning/src/ln/functional_test_utils.rs
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,8 @@
13
13
use chain::{Confirm,Listen,Watch};
14
14
use chain::channelmonitor::ChannelMonitor;
15
15
use chain::transaction::OutPoint;
16
-
use ln::channelmanager::{BestBlock,ChainParameters,ChannelManager,ChannelManagerReadArgs,RAACommitmentOrder,PaymentPreimage,PaymentHash,PaymentSecret,PaymentSendFailure};
16
+
use ln::{PaymentPreimage,PaymentHash,PaymentSecret};
17
+
use ln::channelmanager::{BestBlock,ChainParameters,ChannelManager,ChannelManagerReadArgs,RAACommitmentOrder,PaymentSendFailure};
17
18
use routing::router::{Route, get_route};
18
19
use routing::network_graph::{NetGraphMsgHandler,NetworkGraph};
Copy file name to clipboardExpand all lines: lightning/src/ln/functional_tests.rs
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -18,8 +18,9 @@ use chain::channelmonitor;
18
18
use chain::channelmonitor::{ChannelMonitor,CLTV_CLAIM_BUFFER,LATENCY_GRACE_PERIOD_BLOCKS,ANTI_REORG_DELAY};
19
19
use chain::transaction::OutPoint;
20
20
use chain::keysinterface::{KeysInterface,BaseSign};
21
+
use ln::{PaymentPreimage,PaymentSecret,PaymentHash};
21
22
use ln::channel::{COMMITMENT_TX_BASE_WEIGHT,COMMITMENT_TX_WEIGHT_PER_HTLC};
22
-
use ln::channelmanager::{ChannelManager,ChannelManagerReadArgs,RAACommitmentOrder,PaymentPreimage,PaymentSecret,PaymentHash,PaymentSendFailure,BREAKDOWN_TIMEOUT};
23
+
use ln::channelmanager::{ChannelManager,ChannelManagerReadArgs,RAACommitmentOrder,PaymentSendFailure,BREAKDOWN_TIMEOUT};
0 commit comments