-
Notifications
You must be signed in to change notification settings - Fork 43
fix(drive-abci): update_quorum_info is_init_chain / start_from_scratch not working #2521
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
base: v2.0-dev
Are you sure you want to change the base?
Conversation
…h not working as expected
WalkthroughThe changes rename the boolean parameter in several functions from Changes
Sequence Diagram(s)sequenceDiagram
participant Caller
participant UpdateMN as update_masternode_list_v0
Note over UpdateMN: Evaluate start_from_scratch flag and core height check
Caller->>UpdateMN: Call update_masternode_list_v0(start_from_scratch, core_block_height, ...)
alt Condition: Not starting from scratch & height matches
UpdateMN-->>Caller: Log debug and early return
else Continue update
UpdateMN->>UpdateMN: Update masternode list and quorum info
UpdateMN-->>Caller: Return result
end
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
⏰ Context from checks skipped due to timeout of 90000ms (7)
🔇 Additional comments (7)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Issue being fixed or feature implemented
We need a way to rebuild cached information about Dash Core.
There is a function update_core_info() which should do the job.
It also has a parameter
is_init_chain
, that should rebuild everything from scratch, but it doesn't work as expected.What was done?
is_init_chain
tostart_from_scratch
start_from_scratch
How Has This Been Tested?
GHA + used in statesync testing
Breaking Changes
Minor semantic change of is_init_chain which should have no impact on existing code. Considering it non-breaking.
Checklist:
For repository code-owners and collaborators only
Summary by CodeRabbit