Increase default recovery window to 31000#10630
Increase default recovery window to 31000#10630BlueeeMoon wants to merge 1 commit intolightningnetwork:masterfrom
Conversation
Increase the default recovery windows for OGs Lightning runners. I tested 2500, 10000, 20000, 30000 and 31000 and with the last value I recover all my funds finally. Or maybe add a value in docs between 2500 to XXXXXX
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request increases a critical default configuration value, the recovery window, within the application. This change is aimed at improving the success rate of fund recovery for Lightning Network participants, as demonstrated by testing where the new value facilitated complete fund recovery. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request increases the default recovery window from 2500 to 31000. This change is based on user feedback and aims to make wallet recovery more robust, especially for wallets with a long history of address usage. This is a good improvement for fund safety.
I've added one suggestion to include a comment explaining the new value, which will improve code maintainability. As a follow-up, I recommend updating the documentation in docs/recovery.md to reflect this new default value and to provide more guidance for users on this parameter.
Note: Security Review did not run due to the size of the PR.
| // TODO(roasbeef): expose all fee conf targets | ||
|
|
||
| const defaultRecoveryWindow int32 = 2500 | ||
| const defaultRecoveryWindow int32 = 31000 |
There was a problem hiding this comment.
To improve maintainability and provide context for this change, it would be helpful to add a comment explaining why defaultRecoveryWindow is being increased to this specific value. This will help future developers understand the reasoning behind this choice, in line with the style guide's recommendation to explain the 'why' behind code changes.
For example:
// defaultRecoveryWindow is the default number of addresses to scan ahead for
// when recovering a wallet. This value was increased from 2500 to 31000 based
// on user reports of incomplete recovery with the lower value.
const defaultRecoveryWindow int32 = 31000References
- The style guide states that comments should explain the 'why' behind a certain block of code, especially if it requires contextual knowledge not immediately obvious from the code itself. Adding a comment here would clarify the motivation for this specific value. (link)
|
Closed due to #10632 (review) |
Increase the default recovery windows for OGs Lightning runners.
I tested 2500, 10000, 20000, 30000 and 31000 and with the last value I recover all my funds finally.
Or maybe add a value in docs between 2500 to XXXXXX.
Thank you.