Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more bitcoind-related setup logging #609

Merged
merged 1 commit into from
Aug 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/bitcoin/d/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
6 changes: 4 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
1 change: 0 additions & 1 deletion tests/test_framework/lianad.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ def start(self):
self.wait_for_logs(
[
"Database initialized and checked",
"Connection to bitcoind established and checked.",
"JSONRPC server started.",
]
)
Expand Down