onflow / flow-evm-gateway

FlowEVM Gateway implements an Ethereum-equivalent JSON-RPC API for EVM clients to use
https://developers.flow.com/evm/about
Apache License 2.0
11 stars 10 forks source link

Update `eth_syncing` call to match JSON-RPC API specification #376

Closed m-Peter closed 3 months ago

m-Peter commented 3 months ago

When the Gateway has finished ingesting all blocks, we get:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "startingBlock": "0x0",
    "currentBlock": "0x2",
    "highestBlock": "0x2"
  }
}

where currentBlock == highestBlock. In this case, we should return false, instead of the above object.