Skip to content

Commit 1958626

Browse files
committed
Fix stale import behind anchors build tag
1 parent e7fb47b commit 1958626

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lightning/src/ln/monitor_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//! Further functional tests which test blockchain reorganizations.
1111
1212
#[cfg(anchors)]
13-
use crate::chain::keysinterface::BaseSign;
13+
use crate::chain::keysinterface::{ChannelSigner, EcdsaChannelSigner};
1414
#[cfg(anchors)]
1515
use crate::chain::channelmonitor::LATENCY_GRACE_PERIOD_BLOCKS;
1616
use crate::chain::channelmonitor::{ANTI_REORG_DELAY, Balance};

lightning/src/util/events.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -290,10 +290,10 @@ pub struct HTLCDescriptor {
290290
/// [`InMemorySigner`]: crate::chain::keysinterface::InMemorySigner
291291
pub channel_value_satoshis: u64,
292292
/// The necessary channel parameters that need to be provided to the re-derived
293-
/// [`InMemorySigner`] through [`BaseSign::provide_channel_parameters`].
293+
/// [`InMemorySigner`] through [`ChannelSigner::provide_channel_parameters`].
294294
///
295295
/// [`InMemorySigner`]: crate::chain::keysinterface::InMemorySigner
296-
/// [`BaseSign::provide_channel_parameters`]: crate::chain::keysinterface::BaseSign::provide_channel_parameters
296+
/// [`ChannelSigner::provide_channel_parameters`]: crate::chain::keysinterface::ChannelSigner::provide_channel_parameters
297297
pub channel_parameters: ChannelTransactionParameters,
298298
/// The txid of the commitment transaction in which the HTLC output lives.
299299
pub commitment_txid: Txid,
@@ -387,7 +387,7 @@ pub enum BumpTransactionEvent {
387387
/// child anchor transaction. To sign its anchor input, an [`InMemorySigner`] should be
388388
/// re-derived through [`KeysManager::derive_channel_keys`] with the help of
389389
/// [`AnchorDescriptor::channel_keys_id`] and [`AnchorDescriptor::channel_value_satoshis`]. The
390-
/// anchor input signature can be computed with [`BaseSign::sign_holder_anchor_input`],
390+
/// anchor input signature can be computed with [`EcdsaChannelSigner::sign_holder_anchor_input`],
391391
/// which can then be provided to [`build_anchor_input_witness`] along with the `funding_pubkey`
392392
/// to obtain the full witness required to spend.
393393
///
@@ -410,7 +410,7 @@ pub enum BumpTransactionEvent {
410410
///
411411
/// [`InMemorySigner`]: crate::chain::keysinterface::InMemorySigner
412412
/// [`KeysManager::derive_channel_keys`]: crate::chain::keysinterface::KeysManager::derive_channel_keys
413-
/// [`BaseSign::sign_holder_anchor_input`]: crate::chain::keysinterface::BaseSign::sign_holder_anchor_input
413+
/// [`EcdsaChannelSigner::sign_holder_anchor_input`]: crate::chain::keysinterface::EcdsaChannelSigner::sign_holder_anchor_input
414414
/// [`build_anchor_input_witness`]: crate::ln::chan_utils::build_anchor_input_witness
415415
ChannelClose {
416416
/// The target feerate that the transaction package, which consists of the commitment
@@ -444,7 +444,7 @@ pub enum BumpTransactionEvent {
444444
/// HTLC transaction. To sign HTLC inputs, an [`InMemorySigner`] should be re-derived through
445445
/// [`KeysManager::derive_channel_keys`] with the help of `channel_keys_id` and
446446
/// `channel_value_satoshis`. Each HTLC input's signature can be computed with
447-
/// [`BaseSign::sign_holder_htlc_transaction`], which can then be provided to
447+
/// [`EcdsaChannelSigner::sign_holder_htlc_transaction`], which can then be provided to
448448
/// [`HTLCDescriptor::tx_input_witness`] to obtain the fully signed witness required to spend.
449449
///
450450
/// It is possible to receive more than one instance of this event if a valid HTLC transaction
@@ -459,7 +459,7 @@ pub enum BumpTransactionEvent {
459459
///
460460
/// [`InMemorySigner`]: crate::chain::keysinterface::InMemorySigner
461461
/// [`KeysManager::derive_channel_keys`]: crate::chain::keysinterface::KeysManager::derive_channel_keys
462-
/// [`BaseSign::sign_holder_htlc_transaction`]: crate::chain::keysinterface::BaseSign::sign_holder_htlc_transaction
462+
/// [`EcdsaChannelSigner::sign_holder_htlc_transaction`]: crate::chain::keysinterface::EcdsaChannelSigner::sign_holder_htlc_transaction
463463
/// [`HTLCDescriptor::tx_input_witness`]: HTLCDescriptor::tx_input_witness
464464
HTLCResolution {
465465
target_feerate_sat_per_1000_weight: u32,

0 commit comments

Comments
 (0)