erigon
erigon copied to clipboard
`runtime error: invalid memory address` after clearning chaindata folder
When following the instructions for https://github.com/0xPolygon/erigon/releases/tag/v3.3.6-beta, after clearing the chaindata folder and starting erigon, the following errors are seen in the log:
[EROR] [12-28|16:09:30.402] RPC method eth_getBlockByNumber crashed: runtime error: invalid memory address or nil pointer dereference
[service.go:222 panic.go:783 panic.go:262 signal_unix.go:925 database.go:106 mdbx_store.go:179 snapshot_store.go:202 reader.go:152 service.go:508 eth_block.go:236 value.go:581 value.go:365 service.go:227 handler.go:529 handler.go:479 handler.go:420 handler.go:240 handler.go:333 asm_amd64.s:1693]
Presumably erigon should not be listening for requests until after the chaindata is rebuilt?
"Presumably erigon should not be listening for requests until after the chaindata is rebuilt?"
I agree, although I did not make any changes in RPC behaviour. When I tested it on my node I let it work in peace untill it logged the work was done..