Skip to content

Commit 5afe490

Browse files
committed
Intermittently introduce additional impl blocks
.. in the hopes of making the git diff more readable going forward, we break up the `ChainSource` impl block.
1 parent 7e93a8b commit 5afe490

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/chain/mod.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,9 @@ impl ChainSource {
700700
}
701701
}
702702
}
703+
}
703704

705+
impl ChainSource {
704706
// Synchronize the onchain wallet via transaction-based protocols (i.e., Esplora, Electrum,
705707
// etc.)
706708
pub(crate) async fn sync_onchain_wallet(&self) -> Result<(), Error> {
@@ -917,7 +919,9 @@ impl ChainSource {
917919
},
918920
}
919921
}
922+
}
920923

924+
impl ChainSource {
921925
// Synchronize the Lightning wallet via transaction-based protocols (i.e., Esplora, Electrum,
922926
// etc.)
923927
pub(crate) async fn sync_lightning_wallet(
@@ -1087,7 +1091,9 @@ impl ChainSource {
10871091
},
10881092
}
10891093
}
1094+
}
10901095

1096+
impl ChainSource {
10911097
pub(crate) async fn poll_and_update_listeners(
10921098
&self, channel_manager: Arc<ChannelManager>, chain_monitor: Arc<ChainMonitor>,
10931099
output_sweeper: Arc<Sweeper>,
@@ -1241,7 +1247,9 @@ impl ChainSource {
12411247
},
12421248
}
12431249
}
1250+
}
12441251

1252+
impl ChainSource {
12451253
pub(crate) async fn update_fee_rate_estimates(&self) -> Result<(), Error> {
12461254
match &self.kind {
12471255
ChainSourceKind::Esplora {
@@ -1504,7 +1512,9 @@ impl ChainSource {
15041512
},
15051513
}
15061514
}
1515+
}
15071516

1517+
impl ChainSource {
15081518
pub(crate) async fn process_broadcast_queue(&self) {
15091519
match &self.kind {
15101520
ChainSourceKind::Esplora { esplora_client, tx_broadcaster, logger, .. } => {

0 commit comments

Comments
 (0)