node-real / bsc-erigon

Ethereum implementation on the efficiency frontier
GNU Lesser General Public License v3.0
125 stars 40 forks source link

RPC methods not supported #496

Closed mateipopp closed 1 week ago

mateipopp commented 2 weeks ago

System information

Erigon version: ./erigon --version erigon version 1.2.14-dev OS & Version: Linux

Chain/Network: BSC Mannet

Expected behaviour

On BSC Geth, the methods eth_getFinalizedBlock and eth_getFinalizedHeader are supported, but they don't seem to work on Erigon. These methods are needed for syncing an opBNB nodes.

Actual behaviour

curl -X POST -H "Content-Type: application/json" \ --data '{"jsonrpc":"2.0","method":"eth_getFinalizedBlock","params":[],"id":1}' \ http://localhost:8545 {"jsonrpc":"2.0","id":1,"error":{"code":-32601,"message":"the method eth_getFinalizedBlock does not exist/is not available"}} curl -X POST -H "Content-Type: application/json" \ --data '{"jsonrpc":"2.0","method":"eth_getFinalizedHeader","params":[],"id":1}' \ http://localhost:8545 {"jsonrpc":"2.0","id":1,"error":{"code":-32601,"message":"the method eth_getFinalizedHeader does not exist/is not available"}}

MatusKysel commented 2 weeks ago

Hey currently those methods are only supported by bsc client https://github.com/bnb-chain/bsc as erigon client is not block producer, just archival node