Skip to content
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

add rpc validation for evm #50

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

add rpc validation for evm #50

wants to merge 2 commits into from

Conversation

mncdg
Copy link
Collaborator

@mncdg mncdg commented Apr 13, 2023

Rpc validation checks that we have the same submissionId in responses from different rpc. If Debridge Node couldnt detect on configured rpc the same submissionId, the submission will not be signed.
How to setup?
You should add rpcConfirmation to chain_config.json
Example:
[ { "chainId": 137, "providers": [ { "provider": "https://polygon-rpc.com/", }, ], "name": "MATIC", ... "rpcConfirmation": 2 } ]
For marking rpc as required you should add "requireConfirmation": true in provider. It means that if validator detect required count rpc confirmation submission cant be confirmed without required rpc .
Example:
[ { "chainId": 137, "providers": [ { "provider": "https://polygon-rpc.com/", "requireConfirmation": true }, { "provider": "https://rpc.ankr.com/polygon/", } ], "name": "MATIC", ... "rpcConfirmation": 2 } ]

@mncdg mncdg requested a review from artyukh May 1, 2023 20:54
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