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