File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,6 +29,9 @@ impl AppTrait for App {
2929 fn new ( config : AppConfig ) -> Result < Self > {
3030 let seen_inputs = Arc :: new ( Mutex :: new ( SeenInputs :: new ( ) ?) ) ;
3131 let app = Self { config, seen_inputs } ;
32+ app. bitcoind ( ) ?
33+ . get_blockchain_info ( )
34+ . context ( "Failed to connect to bitcoind. Check config RPC connection." ) ?;
3235 Ok ( app)
3336 }
3437
Original file line number Diff line number Diff line change @@ -30,6 +30,9 @@ impl AppTrait for App {
3030 let receive_store = Arc :: new ( AsyncMutex :: new ( ReceiveStore :: new ( ) ?) ) ;
3131 let send_store = Arc :: new ( AsyncMutex :: new ( SendStore :: new ( ) ?) ) ;
3232 let app = Self { config, receive_store, send_store, seen_inputs } ;
33+ app. bitcoind ( ) ?
34+ . get_blockchain_info ( )
35+ . context ( "Failed to connect to bitcoind. Check config RPC connection." ) ?;
3336 Ok ( app)
3437 }
3538
You can’t perform that action at this time.
0 commit comments