Skip to content

Instantly share code, notes, and snippets.

@delta1
Last active October 30, 2023 10:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save delta1/2b59174445d527df545493372fee7cda to your computer and use it in GitHub Desktop.
Save delta1/2b59174445d527df545493372fee7cda to your computer and use it in GitHub Desktop.
blockstream/electrs build fix for debian unstable
diff --git a/Cargo.toml b/Cargo.toml
index 7b8ec56..bbaa386 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -39,8 +39,8 @@ num_cpus = "1.12.0"
page_size = "0.4.2"
prometheus = "0.13"
rayon = "1.5.0"
-rocksdb = { version = "0.17.0", optional = true }
-rocksdb-oldcpu = { version = "0.12.4", optional = true, package = "rocksdb" }
+rocksdb = { version = "0.21.0", optional = true }
+rocksdb-oldcpu = { version = "0.21.0", optional = true, package = "rocksdb" }
rust-crypto = "0.2"
serde = "1.0.118"
serde_derive = "1.0.118"
diff --git a/src/new_index/db.rs b/src/new_index/db.rs
index ef226d3..f5814f2 100644
--- a/src/new_index/db.rs
+++ b/src/new_index/db.rs
@@ -26,7 +26,7 @@ impl<'a> Iterator for ScanIterator<'a> {
if self.done {
return None;
}
- let (key, value) = self.iter.next()?;
+ let (key, value) = self.iter.next()?.ok()?;
if !key.starts_with(&self.prefix) {
self.done = true;
return None;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment