erigontech / erigontech/erigon

[RPC] requireCanonical=false raises block-not-canonical error

Open
#12,081 5 comments 0 reactions 0 assignees View on GitHub
RPC
Dominant language
Go
Stars
3.6k
Forks
1.5k
Avg merge
1d 16h
Merged PRs (30d)
455

Description

#### System information

Erigon version: 2.60.8-dec9d206

OS & Version: Linux

Chain/Network: Polygon POS Amoy

#### Expected behaviour
{"jsonrpc":"2.0","id":24,"result":"0x0000000000000000000000000000000000000000000000000000000000000000"}

#### Actual behaviour
{"jsonrpc":"2.0","id":24,"error":{"code":-32603,"message":"hash 0d30235c89b4c59bffbf3d8997921d6b666835f4e7ea8eb262dcd140a000f20e is not currently canonical"}}

#### Steps to reproduce the behaviour
curl http://localhost:8545 -X POST -H 'Content-Type: application/json' -d '
{
"jsonrpc": "2.0",
"method": "eth_getStorageAt",
"id": 24,
"params": ["0xccf28a443e35f8bd982b8e8651be9f6cafed4672","0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc",{"blockHash":"0x0d30235c89b4c59bffbf3d8997921d6b666835f4e7ea8eb262dcd140a000f20e", "requireCanonical": false}]
}'

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.