We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc58a1e commit 3a50a9cCopy full SHA for 3a50a9c
stackslib/src/burnchains/bitcoin/indexer.rs
@@ -1004,9 +1004,9 @@ impl BurnchainIndexer for BitcoinIndexer {
1004
false,
1005
)?;
1006
let first_block_height = self.get_first_block_height();
1007
- let first_header = spv_client
1008
- .read_block_header(first_block_height)?
1009
- .expect("BUG: no first block header timestamp");
+ let Ok(Some(first_header)) = spv_client.read_block_header(first_block_height) else {
+ return Err(burnchain_error::MissingHeaders);
+ };
1010
1011
let first_block_header_timestamp = first_header.header.time as u64;
1012
Ok(first_block_header_timestamp)
0 commit comments