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

Update rust-bitcoin, rust-elements, rust-rocksdb and others #67

Merged
merged 4 commits into from
Feb 16, 2024

Conversation

shesek
Copy link
Collaborator

@shesek shesek commented Feb 13, 2024

No description provided.

…e, tiny_http, stderrlog, itertools, tempfile and ureq
And drop support for the `oldcpu` feature, which required an outdated rocksdb
release (v0.12.4, released over 4 years ago)
@shesek
Copy link
Collaborator Author

shesek commented Feb 13, 2024

I verified DB compatibility by loading a database initially created with fd35014.

@@ -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()?.expect("valid iterator");
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rust-rocksdb was changed to iterate over a Result that may contain an error if the iteration fails.

Previously the iterator was terminated with a None and it was expected that users of the library manually check iter.status() for errors after calling next(), which we did not do -- meaning that errors were ignored.

mempool/electrs#16 updated rust-rocksdb while keeping the old behavior, but it seems more correct to panic on errors as I implemented here.

@LeoComandini
Copy link
Collaborator

LeoComandini commented Feb 16, 2024

utACK 255fb17, assuming we want to drop support for the oldcpu feature, code review

@shesek shesek merged commit 85b8baf into Blockstream:new-index Feb 16, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants