-
Notifications
You must be signed in to change notification settings - Fork 413
feat: allow disabling consensus WAL #1723
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1723 +/- ##
=======================================
Coverage 47.47% 47.47%
=======================================
Files 385 385
Lines 61376 61376
=======================================
Hits 29139 29139
Misses 29802 29802
Partials 2435 2435 ☔ View full report in Codecov by Sentry. |
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.
Looks good 💯
Thank you for enabling this option 🙏
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.
Besides that, I'm not sure why this file was initialized in GNOROOT
by default instead of GNOHOME
. Generally speaking, we should avoid initializing anything inside GNOROOT
and GNOROOT
should be treated as a read-only directory.
Good one! 😆 (jk, I agree) |
<!-- please provide a detailed description of the changes made in this pull request. --> This allows for the consensus state's WAL to be disabled. This is desirable for testing against a running node when we don't care about the WAL -- it avoids potential permissions issues by not writing anything to disk. This allows for our integration testing package to be imported and used outside of the gno repository. <details><summary>Contributors' checklist...</summary> - [ ] Added new tests, or not needed, or not feasible - [ ] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [ ] Updated the official documentation or not needed - [ ] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description - [ ] Added references to related issues and PRs - [ ] Provided any useful hints for running manual tests - [ ] Added new benchmarks to [generated graphs](https://gnoland.github.io/benchmarks), if any. More info [here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md). </details> --------- Co-authored-by: Morgan <git@howl.moe>
This allows for the consensus state's WAL to be disabled. This is desirable for testing against a running node when we don't care about the WAL -- it avoids potential permissions issues by not writing anything to disk. This allows for our integration testing package to be imported and used outside of the gno repository.
Contributors' checklist...
BREAKING CHANGE: xxx
message was included in the description