Skip to content

Commit b07111e

Browse files
committed
Import ChannelTransactionParameters from its real path
Rather than importing `ChannelTransactionParameters` via the `use` in `lightning::sign`, import it via its real path in `lightning::sign::ecdsa`. This makes reading the code (incredibly marginally) simpler, but also makes the bindings generator happy.
1 parent 3f82fd6 commit b07111e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lightning/src/sign/ecdsa.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,16 @@ use bitcoin::secp256k1::ecdsa::Signature;
77
use bitcoin::secp256k1::{PublicKey, Secp256k1, SecretKey};
88

99
use crate::ln::chan_utils::{
10-
ClosingTransaction, CommitmentTransaction, HTLCOutputInCommitment, HolderCommitmentTransaction,
10+
ChannelTransactionParameters, ClosingTransaction, CommitmentTransaction,
11+
HTLCOutputInCommitment, HolderCommitmentTransaction,
1112
};
1213
use crate::ln::msgs::UnsignedChannelAnnouncement;
1314
use crate::types::payment::PaymentPreimage;
1415

1516
#[allow(unused_imports)]
1617
use crate::prelude::*;
1718

18-
use crate::sign::{ChannelSigner, ChannelTransactionParameters, HTLCDescriptor};
19+
use crate::sign::{ChannelSigner, HTLCDescriptor};
1920

2021
/// A trait to sign Lightning channel transactions as described in
2122
/// [BOLT 3](https://github.com/lightning/bolts/blob/master/03-transactions.md).

0 commit comments

Comments
 (0)