-
Notifications
You must be signed in to change notification settings - Fork 4
fix: reversed quorum hash #61
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
WalkthroughThe changes focus on reorganizing import statements and reformatting function implementations to enhance readability and consistency. New hash types have been introduced in the hash types module, and existing types in the MasternodeListEngine have been updated from Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant MLE as MasternodeListEngine
participant Store as BlockHeights Map
Client->>MLE: feed_block_height(height, block_hash)
MLE->>MLE: Convert block_hash using to_raw_hash()
MLE->>Store: Update block_heights[converted_hash] = height
Client->>MLE: request_quorum_entry_height(quorum_entry)
MLE->>MLE: Convert quorum_entry.quorum_hash using as_raw_hash()
MLE->>Store: Retrieve block height for converted_hash
MLE-->>Client: Return block height or error
sequenceDiagram
participant ChainLock
participant MLE as MasternodeListEngine
participant Request as VerificationRequest
ChainLock->>MLE: verify_chain_lock(chain_lock, before, request_id)
MLE->>MLE: Convert cycle_hash using as_raw_hash()
MLE->>MLE: Process verification and streamline error handling
MLE-->>ChainLock: Return verification result
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (7)
🔇 Additional comments (52)
✨ 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 (
|
Summary by CodeRabbit
New Features
Refactor
These updates strengthen the system’s maintainability and reliability without altering visible user functionality.