Skip to content

Commit d33a788

Browse files
committed
f: make sync sub mod
1 parent 8594446 commit d33a788

File tree

8 files changed

+10
-9
lines changed

8 files changed

+10
-9
lines changed

lightning/src/events/bump_transaction.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
//!
1212
//! [`Event`]: crate::events::Event
1313
14+
pub mod sync;
15+
1416
use alloc::collections::BTreeMap;
1517
use core::ops::Deref;
1618

@@ -991,7 +993,7 @@ where
991993
mod tests {
992994
use super::*;
993995

994-
use crate::events::bump_transaction_sync::{
996+
use crate::events::bump_transaction::sync::{
995997
BumpTransactionEventHandlerSync, CoinSelectionSourceSync,
996998
};
997999
use crate::io::Cursor;

lightning/src/events/bump_transaction_sync.rs renamed to lightning/src/events/bump_transaction/sync.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ use crate::util::logger::Logger;
1414

1515
use bitcoin::{Psbt, ScriptBuf, Transaction, TxOut};
1616

17-
use super::bump_transaction::{
17+
use super::BumpTransactionEvent;
18+
use super::{
1819
BumpTransactionEventHandler, CoinSelection, CoinSelectionSource, Input, Utxo, Wallet,
1920
WalletSource,
2021
};
21-
use super::BumpTransactionEvent;
2222

2323
/// A synchronous version of the [`WalletSource`] trait. Implementations of this trait should be wrapped in
2424
/// WalletSourceSyncWrapper for it to be used within rust-lightning.

lightning/src/events/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
//! few other things.
1616
1717
pub mod bump_transaction;
18-
pub mod bump_transaction_sync;
1918

2019
pub use bump_transaction::BumpTransactionEvent;
2120

lightning/src/ln/async_signer_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use bitcoin::transaction::Version;
2020

2121
use crate::chain::channelmonitor::LATENCY_GRACE_PERIOD_BLOCKS;
2222
use crate::chain::ChannelMonitorUpdateStatus;
23-
use crate::events::bump_transaction_sync::WalletSourceSync;
23+
use crate::events::bump_transaction::sync::WalletSourceSync;
2424
use crate::events::{ClosureReason, Event};
2525
use crate::ln::chan_utils::ClosingTransaction;
2626
use crate::ln::channel::DISCONNECT_PEER_AWAITING_RESPONSE_TICKS;

lightning/src/ln/functional_test_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use crate::chain::channelmonitor::ChannelMonitor;
1717
use crate::chain::transaction::OutPoint;
1818
use crate::events::{ClaimedHTLC, ClosureReason, Event, HTLCHandlingFailureType, PaidBolt12Invoice, PathFailure, PaymentFailureReason, PaymentPurpose};
1919
use crate::events::bump_transaction::{BumpTransactionEvent};
20-
use crate::events::bump_transaction_sync::{BumpTransactionEventHandlerSync, WalletSourceSync, WalletSync};
20+
use crate::events::bump_transaction::sync::{BumpTransactionEventHandlerSync, WalletSourceSync, WalletSync};
2121
use crate::ln::types::ChannelId;
2222
use crate::types::features::ChannelTypeFeatures;
2323
use crate::types::payment::{PaymentPreimage, PaymentHash, PaymentSecret};

lightning/src/ln/functional_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1473,7 +1473,7 @@ pub fn claim_htlc_outputs() {
14731473
// This is a regression test for https://github.com/lightningdevkit/rust-lightning/issues/3537.
14741474
#[xtest(feature = "_externalize_tests")]
14751475
pub fn test_multiple_package_conflicts() {
1476-
use crate::events::bump_transaction_sync::WalletSourceSync;
1476+
use crate::events::bump_transaction::sync::WalletSourceSync;
14771477

14781478
let chanmon_cfgs = create_chanmon_cfgs(3);
14791479
let node_cfgs = create_node_cfgs(3, &chanmon_cfgs);

lightning/src/ln/monitor_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
//! Further functional tests which test blockchain reorganizations.
1313
14-
use crate::events::bump_transaction_sync::WalletSourceSync;
14+
use crate::events::bump_transaction::sync::WalletSourceSync;
1515
use crate::sign::{ecdsa::EcdsaChannelSigner, OutputSpender, SignerProvider, SpendableOutputDescriptor};
1616
use crate::chain::channelmonitor::{ANTI_REORG_DELAY, ARCHIVAL_DELAY_BLOCKS,LATENCY_GRACE_PERIOD_BLOCKS, COUNTERPARTY_CLAIMABLE_WITHIN_BLOCKS_PINNABLE, Balance, BalanceSource, ChannelMonitorUpdateStep};
1717
use crate::chain::transaction::OutPoint;

lightning/src/util/test_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ use crate::chain::channelmonitor::{
2121
};
2222
use crate::chain::transaction::OutPoint;
2323
use crate::chain::WatchedOutput;
24+
use crate::events::bump_transaction::sync::WalletSourceSync;
2425
use crate::events::bump_transaction::Utxo;
25-
use crate::events::bump_transaction_sync::WalletSourceSync;
2626
#[cfg(any(test, feature = "_externalize_tests"))]
2727
use crate::ln::chan_utils::CommitmentTransaction;
2828
use crate::ln::channel_state::ChannelDetails;

0 commit comments

Comments
 (0)