Merge #609: Add more bitcoind-related setup logging
5c87937d4676354f19357e17b36655eb4853dbf9 Add more bitcoind-related setup logging (Antoine Poinsot) Pull request description: At startup it sometimes appear we may be hanging when setting up bitcoind. Add more logging to give more information about what's taking long to setup (for instance, loading the watchonly wallet). Related to https://github.com/wizardsardine/liana/issues/475. ACKs for top commit: darosior: ACK 5c87937d4676354f19357e17b36655eb4853dbf9 Tree-SHA512: 75c553cabf545d57a5fc2d251e5b4cd880a931a408c6f1b1052067f2ccc8e0728ad779f30de5a88c2566f9e67ac085b713393ee4fa193331e49c3a8e6112ecc8
This commit is contained in:
commit
a0c8adbfcc
@ -265,7 +265,9 @@ impl BitcoinD {
|
||||
watchonly_wallet_path: watchonly_wallet_path.clone(),
|
||||
retries: 0,
|
||||
};
|
||||
log::info!("Checking the connection to bitcoind.");
|
||||
dummy_bitcoind.check_connection()?;
|
||||
log::info!("Connection to bitcoind checked.");
|
||||
|
||||
// Now the connection is checked, create the clients with an appropriate timeout.
|
||||
let node_client = Client::with_transport(
|
||||
|
||||
@ -292,12 +292,14 @@ fn setup_bitcoind(
|
||||
wo_name,
|
||||
)?;
|
||||
|
||||
log::info!("Creating a new watchonly wallet on bitcoind.");
|
||||
bitcoind.create_watchonly_wallet(&config.main_descriptor)?;
|
||||
log::info!("Created a new watchonly wallet on bitcoind.");
|
||||
log::info!("Watchonly wallet created.");
|
||||
}
|
||||
log::info!("Loading our watchonly wallet on bitcoind.");
|
||||
bitcoind.maybe_load_watchonly_wallet()?;
|
||||
bitcoind.wallet_sanity_checks(&config.main_descriptor)?;
|
||||
log::info!("Connection to bitcoind established and checked.");
|
||||
log::info!("Watchonly wallet loaded on bitcoind and sanity checked.");
|
||||
|
||||
Ok(bitcoind)
|
||||
}
|
||||
|
||||
@ -119,7 +119,6 @@ class Lianad(TailableProc):
|
||||
self.wait_for_logs(
|
||||
[
|
||||
"Database initialized and checked",
|
||||
"Connection to bitcoind established and checked.",
|
||||
"JSONRPC server started.",
|
||||
]
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user