Skip to content

add rpc validation for evm - #50

Open
mncdg wants to merge 2 commits into
masterfrom
rpc_validation
Open

add rpc validation for evm#50
mncdg wants to merge 2 commits into
masterfrom
rpc_validation

Conversation

@mncdg

@mncdg mncdg commented Apr 13, 2023

Copy link
Copy Markdown
Collaborator

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