-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix: partially revert 6730 #6767
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
✅ No Merge Conflicts DetectedThis PR currently has no conflicts with other open PRs. |
WalkthroughThe code updates the logic for building and processing the deterministic masternode list during special transaction handling in a block. The mn_list variable is now always declared, but its construction and processing are conditioned on the activation of DIP0003 at the current block index, rather than the presence of a coinbase transaction payload or the previous block index. The verification of the coinbase transaction merkle root for the masternode list is now executed if the coinbase payload exists, independent of the previous block index. No changes were made to public interfaces or error handling. Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 Cppcheck (2.17.1)src/evo/specialtxman.cpp/bin/bash: line 1: /usr/bin/cppcheck: No such file or directory 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (2)src/**/*.{cpp,h,cc,cxx,hpp}Instructions used from: Sources:
src/{masternode,evo}/**Instructions used from: Sources:
🧠 Learnings (2)📓 Common learningssrc/evo/specialtxman.cpp (7)🪛 GitHub Actions: Clang Diff Format Checksrc/evo/specialtxman.cpp[error] 607-627: Clang format differences found. The file does not adhere to the required code style. Please run clang-format to fix formatting issues. ⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
🔇 Additional comments (2)
✨ 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:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. 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 (
|
knst
left a comment
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.
utACK b0416e2
PastaPastaPasta
left a comment
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.
utACK b0416e2
…ty a bit fc331e3 refactor: drop confusing `CheckCbTxMerkleRoots`, move its logic into `ProcessSpecialTxsInBlock` (UdjinM6) 195a1a9 refactor: group all `CheckCbTx*` calls and their timers under one `if (opt_cbTx.has_value())` (UdjinM6) Pull request description: ## Issue being fixed or feature implemented Builds on top of #6767 ## What was done? ## How Has This Been Tested? ## Breaking Changes n/a ## Checklist: - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have added or updated relevant unit/integration/functional/e2e tests - [ ] I have made corresponding changes to the documentation - [ ] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_ ACKs for top commit: knst: utACK fc331e3 PastaPastaPasta: utACK fc331e3 Tree-SHA512: e710e31479450e6bdb8ee113ac0d5ffa05cda8177c59944d606b61c85288bdfed4ba565893cb2163185b01a50b7373dd3ce407f79c57828ebd1944605b90f9c4
Issue being fixed or feature implemented
1011f6b broke
develop- can't sync from genesis or reindex atm. The reason is thatopt_cbTx == nulloptbelowassumevalidbut we must always build/process mn lists after dip0003 activation.What was done?
Partially revert that commit. I'm keeping it small intentionally, will refactor in a follow-up PR.
How Has This Been Tested?
reindex, sync from scratch
Breaking Changes
n/a
Checklist: