Skip to content

Commit 44b1440

Browse files
committed
Bitcoind 29.0 added additional error messages for getblock, updating to handle them
1 parent cb1054f commit 44b1440

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/daemon.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,9 @@ impl Daemon {
620620
Ok(blocks) => break blocks,
621621
Err(e) => {
622622
let err_msg = format!("{e:?}");
623-
if err_msg.contains("Block not found on disk") {
623+
if err_msg.contains("Block not found on disk")
624+
|| err_msg.contains("Block not available")
625+
{
624626
// There is a small chance the node returns the header but didn't finish to index the block
625627
log::warn!("getblocks failing with: {e:?} trying {attempts} more time")
626628
} else {

0 commit comments

Comments
 (0)