@@ -387,6 +387,8 @@ impl ChainSource {
387
387
}
388
388
}
389
389
390
+ // Synchronize the onchain wallet via transaction-based protocols (i.e., Esplora, Electrum,
391
+ // etc.)
390
392
pub ( crate ) async fn sync_onchain_wallet ( & self ) -> Result < ( ) , Error > {
391
393
match self {
392
394
Self :: Esplora {
@@ -502,10 +504,16 @@ impl ChainSource {
502
504
503
505
res
504
506
} ,
505
- Self :: BitcoindRpc { .. } => todo ! ( ) ,
507
+ Self :: BitcoindRpc { .. } => {
508
+ // In BitcoindRpc mode we sync lightning and onchain wallet in one go by via
509
+ // `ChainPoller`. So nothing to do here.
510
+ unreachable ! ( "Onchain wallet will be synced via chain polling" )
511
+ } ,
506
512
}
507
513
}
508
514
515
+ // Synchronize the Lightning wallet via transaction-based protocols (i.e., Esplora, Electrum,
516
+ // etc.)
509
517
pub ( crate ) async fn sync_lightning_wallet (
510
518
& self , channel_manager : Arc < ChannelManager > , chain_monitor : Arc < ChainMonitor > ,
511
519
output_sweeper : Arc < Sweeper > ,
@@ -595,7 +603,11 @@ impl ChainSource {
595
603
596
604
res
597
605
} ,
598
- Self :: BitcoindRpc { .. } => todo ! ( ) ,
606
+ Self :: BitcoindRpc { .. } => {
607
+ // In BitcoindRpc mode we sync lightning and onchain wallet in one go by via
608
+ // `ChainPoller`. So nothing to do here.
609
+ unreachable ! ( "Lightning wallet will be synced via chain polling" )
610
+ } ,
599
611
}
600
612
}
601
613
0 commit comments