-
Notifications
You must be signed in to change notification settings - Fork 329
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
Allow database begin_batch functions to fail #850
Conversation
c5b995c
to
77123dd
Compare
Concept ACK. The blockchain sync and database code is completely changing with the bdk_core work that is underway. But until that code is merged into BDK proper I think it makes sense to remove any |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Concept + utACK 77123dd
I will go through the code again for a deeper review. And we should probably handle such other unwraps elsewhere too if remains..
@Mic92 we had an issue with our CI, please rebase. |
When dealing with local or remote databases than beginning a transaction can fail. Not allowing implementations to return a result and resorting to `unwrap()` is a non-starter for reliable production code as this will skip Rust's own drop handler in many places and crashes the application. Signed-off-by: Jörg Thalheim <joerg@thalheim.io>
77123dd
to
3b8555c
Compare
rebased. I made good experience with using bors as a merge bot for things like rebasing and testing against latest HEAD. Github is now adding something similar called merge queue. |
Thanks for all your work on this but in preparation for our new bdk 1.0.0 work we've gotten to the point where I'd like to hold off on merging any new changes and only merge critical bug fixes to the The way persistence is done after the |
Hey, we are in the process of releasing BDK 1.0, which will under the hood work quite differently from the current BDK. For this reason, I'm closing all the PRs that don't really apply anymore. If you think this is a mistake, feel free to rebase on master and re-open! |
When dealing with local or remote databases than beginning a transaction can fail. Not allowing implementations to return a result and resorting to unwrap() is a non-starter for reliable production code as this will skip Rust's own drop handler in many places and crashes the application.
I have not updated documentation / changelog yet, but would appreciate feedback on the change. I have not run yet any tests.
Description
Notes to the reviewers
Changelog notice
Checklists
All Submissions:
cargo fmt
andcargo clippy
before committingNew Features:
Bugfixes: