Repository navigation
Allow optional persistent datadir - #52
Conversation
|
Internals logic with Use cases we need are:
The reason why I think we should add a field in the If both if both are none we do (1) if tmpdir is some we do (2) if datadir is some we do (3) |
410b4d5 to
fa929ba
Compare
|
Yes thanks for the suggestion. That makes perfect sense. Updated the |
RCasatta
left a comment
There was a problem hiding this comment.
Could you please also squash the 2 commits because the second one reworks stuff of the previous?
Thanks for your work
|
Another thing come to my mind, at the moment the |
fa929ba to
18dae23
Compare
|
Thanks @RCasatta for the review.. All were valid points.. Polished up the code a bit.. Changed the name Added the |
I think it's fine how you did it (no panic should ever happen in drop) utack except for #52 (comment) |
This allows the node work directory to be either temporary or persisting on the disk. This can be configured using the `tmpdir` and `staticdir` `Conf` options in different combinations. Usage information in the `Conf` doc.
18dae23 to
7e05242
Compare
I assume its the comment on the specific error type? Fixed that in last push.. |
|
ACK 7e05242 thanks! going to release a new version on crates.io soon |
c08ea32 bitcoind: call wait in drop to reap process (Nick Johnson) Pull request description: Over in [rust-psbt we are seeing integration test failures](https://git.rust-bitcoin.org/rust-bitcoin/rust-psbt/actions/runs/58/jobs/8/attempt/1) which result in a CI runner spinning for hours, even though the test failed in a minute. Setting aside why the test failed (looks bitcoind related but dunno what), I am wondering if we should have a stronger guarantee in the drop to clean up the process. I looked back in the [old archive for the original impl reasoning](rust-bitcoin/bitcoind#52) and don't see much. I could also see this being a big no-no in a Drop impl, but for a high level thing like the bitcoind process maybe better than not? ACKs for top commit: tcharding: ACK c08ea32 Tree-SHA512: 9a1ff79f4f8ad3735363cc385f235fd3dc99643965b4f134de5514014167f8e41baf313384173d8404e650d2cfcf74d1f99dcd3edf4f596a5922a49cf83a6d5a
The intention here is to open possibility to have persistent data directory option for the node along with tempdir option too..
There were many ways of doing this.. I choose this one as it seemed the one with least changes..
Looking for approach acks..