refactor: Use genesis_block for all nets in initialize_genesis_block#231
refactor: Use genesis_block for all nets in initialize_genesis_block#231xdustinface merged 1 commit intov0.41-devfrom
genesis_block for all nets in initialize_genesis_block#231Conversation
WalkthroughReplaced per-network hardcoded genesis header construction with a single call to Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (2)**/*.rs📄 CodeRabbit inference engine (CLAUDE.md)
Files:
dash-spv/src/**/*.rs📄 CodeRabbit inference engine (dash-spv/CLAUDE.md)
Files:
🧠 Learnings (18)📓 Common learnings📚 Learning: 2025-12-01T08:00:17.379ZApplied to files:
📚 Learning: 2025-12-01T08:00:17.379ZApplied to files:
📚 Learning: 2025-12-01T08:00:17.379ZApplied to files:
📚 Learning: 2025-12-01T08:00:17.379ZApplied to files:
📚 Learning: 2025-12-01T08:00:17.379ZApplied to files:
📚 Learning: 2025-12-01T08:00:17.379ZApplied to files:
📚 Learning: 2025-12-01T08:01:00.652ZApplied to files:
📚 Learning: 2025-12-01T08:00:37.919ZApplied to files:
📚 Learning: 2025-12-01T08:00:17.379ZApplied to files:
📚 Learning: 2025-12-01T08:00:17.379ZApplied to files:
📚 Learning: 2025-12-01T08:00:17.379ZApplied to files:
📚 Learning: 2025-06-26T16:01:37.609ZApplied to files:
📚 Learning: 2025-12-01T08:01:18.174ZApplied to files:
📚 Learning: 2025-12-01T08:00:17.379ZApplied to files:
📚 Learning: 2025-12-01T08:01:00.652ZApplied to files:
📚 Learning: 2025-12-01T08:00:17.379ZApplied to files:
📚 Learning: 2025-12-01T08:00:17.379ZApplied to files:
🧬 Code graph analysis (1)dash-spv/src/client/lifecycle.rs (1)
⏰ 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). (17)
🔇 Additional comments (2)
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. Comment |
27bbe8a to
0c2aad1
Compare
ZocoLini
left a comment
There was a problem hiding this comment.
Looks good. Only comment, I think that having a function to construct the genesis header would be cleaner than building the entire block
Yeah it would be cleaner but unrelated to this PR. We currently use it all over the codebase this way but from what it looks we might be able to get away with only a |
Reuse the existing genesis blocks defined
in dashcore::blockdata::constants::genesis_blockfor all networks when initializing the genesis block.Summary by CodeRabbit
Bug Fixes
Refactor
✏️ Tip: You can customize this high-level summary in your review settings.