Connector RPC Introspection Checks #197
Labels
connector
Connector parent epic
enhancement
New feature or request
question
Further information is requested
Milestone
Feature description
The chain's connectors must validate if it is connected to the right chain, this can be done by verifying the genesis block and forked blocks, example:
Genesis Block Validation
In the
BlockchainConfig
include a new optional parametergenesis_block
which is the hash of genesis block:Checkpoint Block validation
For forked chains, such as Ethereum Classic or Bitcoin Cash verifying the genesis block is not sufficient, so for all connectors we need to store in the latest finalized block number and hash, and verify that.
BlockchainConfig
.Steps to reproduce
1 - Starts the ethereum connector using
goerli
network2 - Connects to ethereum mainnet.
3 - The connectors works fine.
Expected output
The connector should return an meaniful error when the config and the RPC network doesn't match.
The text was updated successfully, but these errors were encountered: