-
Notifications
You must be signed in to change notification settings - Fork 70
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
Create wallet dir only when necessary #116
Create wallet dir only when necessary #116
Conversation
0b36019
to
74f6553
Compare
@danielabrozzoni I have modified this part of the code in #102 .. We needed to streamline the directory creation for many directories (includeing bitcoind and electrsd dirs along with wallet files) and current function flow wasn't ideal for it.. I don't know whats the good way to go, but all the new PRs in these locations are going to heavily conflict with #102.. Its always this problem of having big refactoring PR open for a long time. All downstream works gets conflicted.. Maybe we should push in #102 and #104 before making further updates? The resultant structure of the library might also guide approach for the following wasm changes.. The current state of the library is an "intermediate" one.. |
I understand if you don't want to rebase your PR on top of this one, but at least check that this same logic of "let's avoid creating the data directory if we don't need it" (which is a prerequisite for wasm) is still doable after #102, otherwise I have to re-refactor the whole code. |
The logic looks good to me.. 102 is meant to make wasm works easier, the
The code is ready.. No new modification would be required.. If small fixes remains can be done in future PRs.. We are just waiting for bdk 22.. After that it should be good to go.. |
But there are still no ACKs, and the review process will take quite some time, so it will probably be merged in a couple of weeks? Does it make sense to wait weeks before merging this one? |
I just now added an ACK on #102 with a little explanation, I think it can be made ready to merge shortly after bdk 0.22 is released. My preference would be to then make the next bdk-cli release. With also this PR or similar added to #102. |
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.
tACK 74f6553
I used below command to confirm wallet worked and no dirs created as expected.
cargo run --no-default-features --features esplora-ureq,repl -- repl --descriptor "wpkh(tpubEBr4i6yk5nf5DAaJpsi9N2pPYBeJ7fZ5Z9rmN4977iYLCGco1VyjB9tvvuvYtfZzjD5A8igzgw3HeWeeKFmanHYqksqZXYXGsw5zjnj7KM9/*)"
I am ok with merging this one.. But its getting really difficult to rebase 102 with more inb4 changes.. It could even require rewriting some changes totally, depending upon where it is being made.. For this one its straight forward so its fine to go in.. Probably the feature gate will moved onto a different function, but I can handle that at rebase.. But more intrusive changes at this stage in the crate would get difficult.. I am expecting 102 to go in as soon as the next bdk 22 release.. |
I thought it would take more to get #102 merged, if it's merged shortly after 0.22 then I don't mind waiting and rebasing :)
…-------- Original Message --------
On Sep 7, 2022, 10:15, Raj wrote:
> Does it make sense to wait weeks before merging this one?
I am ok with merging this one.. But its getting really difficult to rebase 102 with more inb4 changes.. It could even require rewriting some changes totally, depending upon where it is being made..
For this one its straight forward so its fine to go in.. Probably the feature gate will moved onto a different function, but I can handle that at rebase.. But more intrusive changes at this stage in the crate would get difficult..
I am expecting 102 to go in as soon as the next bdk 22 release..
—
Reply to this email directly, [view it on GitHub](#116 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AF7B4KIYUZSCWNSUOZOQFTTV5BFLPANCNFSM6AAAAAAQDSTMPE).
You are receiving this because you were assigned.Message ID: ***@***.***>
|
714c76a
to
a4f58dc
Compare
Nevermind, I ended up needing it for #117. This is now ready for review :) |
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.
tACK a4f58dc
Just one nit..
a4f58dc
to
5558354
Compare
...not necessary This is useful for the wasm integration, where we want to call the `open_database` function directly, without wanting it to create any directories. Note that when using bdk-cli normally, it won't create a db directory if it's useless, but it will still create a base directory (even if empty). This is suboptimal, but fixing it would require a quite big refactor to the code.
5558354
to
bff2d37
Compare
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.
Thanks @danielabrozzoni
tACK bff2d37
LGTM.. Will wait for @notmandatory if he has anything to add. Or its good to go..
731dc74 Add wasm build in CI (Daniela Brozzoni) b3469b4 Add wasm support (Daniela Brozzoni) Pull request description: ### Description This PR adds a module to bdk-cli that exposes some structures/functions to WASM. You can see it in use here: bitcoindevkit/bitcoindevkit.org#118 ### Notes to the reviewers Based on #116 ### Checklists #### All Submissions: * [x] I've signed all my commits * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk-cli/blob/master/CONTRIBUTING.md) * [x] I ran `cargo fmt` and `cargo clippy` before committing #### New Features: * [ ] I've added tests for the new feature * [ ] I've added docs for the new feature * [x] I've updated `CHANGELOG.md` #### Bugfixes: * [ ] This pull request breaks the existing API * [ ] I've added tests to reproduce the issue which are now passing * [ ] I'm linking the issue being fixed by this PR ACKs for top commit: rajarshimaitra: ACK 731dc74 Tree-SHA512: 69011ab6cb421f7e6f7dd000f9eaf5581428b2288358e31ffaec4425996951443fa2fc79f99db7de9c030d6a3fda57d25eee11564cf2fab9c745da593324f763
Description
Making sure to create the wallet dir only when necessary (database is either sqlite or key-value)
All Submissions:
cargo fmt
andcargo clippy
before committingNew Features:
CHANGELOG.md
Bugfixes: