Skip to content

FEAT: Trusted Node response verification#101

Open
mgordel wants to merge 6 commits intomainfrom
mgordel/mirroring-trusted-node-verification
Open

FEAT: Trusted Node response verification#101
mgordel wants to merge 6 commits intomainfrom
mgordel/mirroring-trusted-node-verification

Conversation

@mgordel
Copy link
Contributor

@mgordel mgordel commented Jan 29, 2025

This PR contains a comprehensive solution for implementing response verification through a trusted node. The solution focuses on validating RPC method responses by comparing them with responses from a predefined trusted node. The comparison approach varies depending on the type of RPC method. Currently, two comparison strategies are implemented: content_length and body.

Introduced TrustedNodeVerifier to handle comparison of responses between main and trusted nodes. This includes mechanisms for enabling/disabling verification, detailed error tracking, and discrepancy logging. Updated relevant components to integrate trusted node handling and stats collection.
Refactored the trusted node verification logic to enhance comparison mechanisms like content length and body validation.
@mgordel mgordel marked this pull request as ready for review January 30, 2025 14:04
@mgordel mgordel self-assigned this Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant