-
Notifications
You must be signed in to change notification settings - Fork 3
Fix/genesis testnet #73
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
WalkthroughThis update includes several focused changes. The workspace package version in Changes
Poem
Tip ⚡💬 Agentic Chat (Pro Plan, General Availability)
✨ 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 (
|
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
dash/src/network/message_qrinfo.rs (1)
160-160: Update the type in the comment to match the code.The type was correctly changed from
Vec<u32>toVec<i32>, but the comment still says "Array of uint32_t". Please update the comment to accurately reflect the new type.- pub skip_list: Vec<i32>, // Array of uint32_t + pub skip_list: Vec<i32>, // Array of int32_t
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (4)
Cargo.toml(1 hunks)dash/src/consensus/encode.rs(1 hunks)dash/src/network/constants.rs(1 hunks)dash/src/network/message_qrinfo.rs(1 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (1)
dash/src/network/constants.rs (3)
hashes/src/sha256.rs (1)
from_byte_array(162-164)hashes/src/lib.rs (1)
from_byte_array(226-226)dash/src/blockdata/block.rs (2)
block_hash(60-64)block_hash(214-216)
⏰ Context from checks skipped due to timeout of 90000ms (10)
- GitHub Check: fuzz (dash_deser_net_msg)
- GitHub Check: fuzz (dash_deserialize_amount)
- GitHub Check: fuzz (hashes_sha512)
- GitHub Check: fuzz (hashes_ripemd160)
- GitHub Check: fuzz (hashes_sha256)
- GitHub Check: fuzz (hashes_cbor)
- GitHub Check: fuzz (dash_deserialize_address)
- GitHub Check: fuzz (hashes_sha512_256)
- GitHub Check: fuzz (dash_deserialize_witness)
- GitHub Check: fuzz (dash_outpoint_string)
🔇 Additional comments (3)
Cargo.toml (1)
6-6: Version increment looks good.The version bump from 0.39.4 to 0.39.6 corresponds with the functionality changes in this PR.
dash/src/consensus/encode.rs (1)
741-741: Good addition ofimpl_vec!(i32)for type consistency.This change adds support for encoding and decoding
Vec<i32>types, which is necessary to support the change inQuorumSnapshot::skip_listfromVec<u32>toVec<i32>.dash/src/network/constants.rs (1)
166-166: Clean implementation of the testnet genesis block hash.This change simplifies the construction of the testnet genesis block hash by removing redundant steps, making the code more consistent with the mainnet implementation above.
This pull request includes several changes to the
dashmodule, focusing on improving type consistency and simplifying code.Type Consistency Improvements:
dash/src/consensus/encode.rs: Addedimpl_vec!(i32);to support encoding ofi32type.dash/src/network/message_qrinfo.rs: Changedskip_listtype fromVec<u32>toVec<i32>in theQuorumSnapshotstruct to align with the intended data type.Fix:
dash/src/network/constants.rs: Testnet genesis block hash should be reversed here.Summary by CodeRabbit
New Features
Bug Fixes
Refactor
Chores