Skip to content
Draft
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
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 10 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,18 @@ async fn main() -> Result<(), anyhow::Error> {
brpc_auth.clone(),
)?;

let _ = match rpc_client.get_connection_count() {
let _ = match rpc_client.scan_blocks_status() {
Ok(cc) => cc,
Err(e) => {
return Err(anyhow!("Cannot connect to bitcoind, ensure your `smaug_bprc_cookie_dir` or `smaug_brpc_user` and `smaug_brpc_pass` are correct
and that your node is active and accepting rpc connections"))
eprintln!("{}", e);
return Err(anyhow!(format!(
"Cannot connect to bitcoind. Ensure your `smaug_bprc_cookie_dir`,\n\
`smaug_brpc_user` and `smaug_brpc_pass` are correct,\n\
and that your node is active and accepting RPC connections.\n
Also make sure your version of bitcoind is at least v25,
and that it has blockfilterindex=1 enabled in the config file,
and that the block filter index has finished syncing."
)));
},
};
}
Expand Down