This repository has been archived by the owner on Jan 8, 2025. It is now read-only.
dev: query chain_id from Kakarot instead of computing it in the RPC to reduce probability of divergence #1543
Labels
enhancement
Enhancement of the code, not introducing new features.
Describe the enhancement request
in the RPC, we currently use the following formula to compute the kakarot chain id:
while this is currently valid, a new PR from kakarot sets the chain id of future kakarot deployments as <LEDGER_MAX_CHAIN_ID
Describe Preferred Solution
to limit chances of divergence between rpc code and kakarot code, RPC should query kakarot for its chain id with the eth_chain_id view entrypoint from kakarot at startup
The text was updated successfully, but these errors were encountered: