Allow database begin_batch functions to fail#850
Allow database begin_batch functions to fail#850Mic92 wants to merge 1 commit intobitcoindevkit:masterfrom
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 |
rajarshimaitra
left a comment
There was a problem hiding this comment.
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 fmtandcargo clippybefore committingNew Features:
Bugfixes: