erigon
erigon copied to clipboard
Polygon: RPC method eth_getTransactionReceipt crashed: runtime error: index out of range [X] with length X
There appears to be some kind of fence post error with eth_getTransactionReceipt in polygon. If I am interpreting the error message correctly, it tries to access array[array.length], which is one index too high. Perhaps it means to access array[array.length - 1]? Most queries are fine, but a significant number of them have this error.
System information
Erigon version: erigon version 2022.99.99-dev-6e18bef6 (This has been happening since at least commit 816ecc56, possibly earlier)
Commit hash : 6e18bef6
OS: Linux version 5.15.0-43-generic (buildd@lcy02-amd64-026) (gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #46~20.04.1-Ubuntu SMP Thu Jul 14 15:20:17 UTC 2022
Expected behaviour
eth_getTransactionReceipt should return the receipt
Actual behaviour
│[WARN] [08-17|14:56:13.948] Served method=eth_getTransactionReceipt reqid=211750 t=1.622488ms err="method handler crashed" │
Tr│[EROR] [08-17|14:56:14.567] RPC method eth_getTransactionReceipt crashed: runtime error: index out of range [174] with length 174 │
Tr│[service.go:217 panic.go:838 panic.go:89 accessors_chain.go:942 kv_mdbx.go:541 accessors_chain.go:936 accessors_chain.go:964 eth_receipts.go:35 eth_receipts.go:328 value.go:556 value.go:339 service.go:222 handler.go:494 handler.go:444 handler.go:392 handler.go:223 handler.go:│
Tr│316 asm_amd64.s:1571] │
Fa│[WARN] [08-17|14:56:14.567] Served method=eth_getTransactionReceipt reqid=216048 t=1.391262ms err="method handler crashed" │
│[EROR] [08-17|14:56:14.761] RPC method eth_getTransactionReceipt crashed: runtime error: index out of range [191] with length 191 │
Fa│[service.go:217 panic.go:838 panic.go:89 accessors_chain.go:942 kv_mdbx.go:541 accessors_chain.go:936 accessors_chain.go:964 eth_receipts.go:35 eth_receipts.go:328 value.go:556 value.go:339 service.go:222 handler.go:494 handler.go:444 handler.go:392 handler.go:223 handler.go:│
│316 asm_amd64.s:1571] │
Tr│[WARN] [08-17|14:56:14.761] Served method=eth_getTransactionReceipt reqid=217513 t=1.472749ms err="method handler crashed" │
03│[EROR] [08-17|14:56:15.268] RPC method eth_getTransactionReceipt crashed: runtime error: index out of range [154] with length 154 │51
IN│[service.go:217 panic.go:838 panic.go:89 accessors_chain.go:942 kv_mdbx.go:541 accessors_chain.go:936 accessors_chain.go:964 eth_receipts.go:35 eth_receipts.go:328 value.go:556 value.go:339 service.go:222 handler.go:494 handler.go:444 handler.go:392 handler.go:223 handler.go:│
IN│316 asm_amd64.s:1571] │
IN│[WARN] [08-17|14:56:15.268] Served method=eth_getTransactionReceipt reqid=221176 t=1.206006ms err="method handler crashed" │
IN│[EROR] [08-17|14:56:15.555] RPC method eth_getTransactionReceipt crashed: runtime error: index out of range [167] with length 167 │
IN│[service.go:217 panic.go:838 panic.go:89 accessors_chain.go:942 kv_mdbx.go:541 accessors_chain.go:936 accessors_chain.go:964 eth_receipts.go:35 eth_receipts.go:328 value.go:556 value.go:339 service.go:222 handler.go:494 handler.go:444 handler.go:392 handler.go:223 handler.go:│
IN│316 asm_amd64.s:1571] │
IN│[WARN] [08-17|14:56:15.555] Served method=eth_getTransactionReceipt reqid=223677 t=1.419076ms err="method handler crashed" │
IN│[EROR] [08-17|14:56:16.080] RPC method eth_getTransactionReceipt crashed: runtime error: index out of range [150] with length 150 │
IN│[service.go:217 panic.go:838 panic.go:89 accessors_chain.go:942 kv_mdbx.go:541 accessors_chain.go:936 accessors_chain.go:964 eth_receipts.go:35 eth_receipts.go:328 value.go:556 value.go:339 service.go:222 handler.go:494 handler.go:444 handler.go:392 handler.go:223 handler.go:│
IN│316 asm_amd64.s:1571]
Steps to reproduce the behaviour
Commandline arguments for my fully synchronized node:
/mnt/raid_array/erigon/erigon-release/build/bin/erigon --db.pagesize="64kb" --chain="bor-mainnet" --datadir="/mnt/md4/erigon/polygon/erigon/datadir" --ethash.dagdir="/mnt/md4/erigon/polygon/erigon/datadir/ethash" --snapshots="true" --bor.heimdall="http://localhost:1317" --port 38070 --http --http.addr=localhost --http.port=38071 --http.compression --http.vhosts="*" --http.corsdomain="*" --http.api="eth,debug,net,trace,web3,erigon,bor" --ws --rpc.gascap=0 --torrent.port 38072 --torrent.download.rate 100mb --private.api.addr=127.0.0.1:38073 --pprof --pprof.port 38074 --authrpc.port 38075
RPC command:
curl --data '{"jsonrpc":"2.0","method":"eth_getTransactionReceipt","params":["0xb5d68aef91ddd932ff132fc7a9bf7af90f40ba1db5bb0192b85015ceb4085707"],"id":54}' -H "Content-Type: application/json" -X POST $YOUR_ETHEREUM_RPC_URL_HERE
Here's a list of additional transaction hashes with the same error:
0xf34f345bc3ec955544977720ac41658f5599672ccd1b49ccb743865bbd09bce4
0x5fa41d6ddf26c2acb9342b1a8e9035f9cd4259ceed283d0890127f7a34374dcd
0x08b40b6be688941bf925a28cfa47bd63fa1703f011e561be70d0754b24430dc1
0x80ef2eafdd21134adcc7483a29856d9d27d8327f4389d4d64b40eb310f45c625
0x2f8b7564bb4bbc705adda8ccf0b486849ed54431e0485bafd7795719db2c62b4
0xff4eba43910130835eccc3d0ca4bbcad36567f5704bb9fd8270c8b02ecd99b73
0x8b3f96a35c6aa7d1f6a2261b503610c78fc28c3fcc1e1b052cd220bd987a9dcb
0x967cf5bc8fd1854c7c79f13f42eddf8543ea103ee37ab93a6f04b974a9d3b20d
0x7e549bfd4d64371739b937059ce68394f595e07b8b027e420a464a82f03488e1
0x9a552d370d986b1699d5a0bba06f4ec727ce3ede5149d74b32cc855721d839cd
0x38cc1fb2251fab5bf6008a7c36728ef61619c79d009deb3f212591af92b61a65
0x74a8df7894c1dafe6e7e35aa53132be432aad0c0c6a3a2ed3bb52849835e7506
0xb0094cd04ee5bd7689cf793640072d3a9c10c0eab0211b9daf55f3f5b26b2eca
I think I found the culprit. This seems to happen in state sync blocks. For instance, the failing example I gave for https://polygonscan.com/tx/0xb5d68aef91ddd932ff132fc7a9bf7af90f40ba1db5bb0192b85015ceb4085707 is in block https://polygonscan.com/block/32003520, which has the following state sync: https://polygonscan.com/tx/0x30d6c86def8e077edcef2eae26a12b5022df681ad82d5a07a386247d224cf3dc eth_getTransactionReceipt on the state sync transaction returns null. All other transactions in that block result in the same index out of range error. These are the test cases I used:
curl --data '{"jsonrpc":"2.0","method":"eth_getTransactionReceipt","params":["0x30d6c86def8e077edcef2eae26a12b5022df681ad82d5a07a386247d224cf3dc"],"id":54}' -H "Content-Type: application/json" -X POST localhost:38071
curl --data '{"jsonrpc":"2.0","method":"eth_getTransactionReceipt","params":["0x933da1b2a8061fb8b35b85d87fa4316f072d58d904dd3e134f1ecab496486324"],"id":54}' -H "Content-Type: application/json" -X POST localhost:38071
curl --data '{"jsonrpc":"2.0","method":"eth_getTransactionReceipt","params":["0x1e3a5a1bbb0eceb6eae6716a50c5efbb823a752afb50bd7dbc5f6960f249a142"],"id":54}' -H "Content-Type: application/json" -X POST localhost:38071
curl --data '{"jsonrpc":"2.0","method":"eth_getTransactionReceipt","params":["0x9083930e15f11b22877ba34c2bb9b8e8c9a37b4389a3ab58307de57b1ea08d23"],"id":54}' -H "Content-Type: application/json" -X POST localhost:38071
curl --data '{"jsonrpc":"2.0","method":"eth_getTransactionReceipt","params":["0xb5d68aef91ddd932ff132fc7a9bf7af90f40ba1db5bb0192b85015ceb4085707"],"id":54}' -H "Content-Type: application/json" -X POST localhost:38071
curl --data '{"jsonrpc":"2.0","method":"eth_getTransactionReceipt","params":["0x1ef309cb90882f2a7427d11f22a91b77fc77b0abbe36e5fb3ec2bba9eb486b06"],"id":54}' -H "Content-Type: application/json" -X POST localhost:38071
curl --data '{"jsonrpc":"2.0","method":"eth_getTransactionReceipt","params":["0x7092b7fb43262ce99c4f0531e36da8585ccbeb1bfe637b577982df62df4ddaaf"],"id":54}' -H "Content-Type: application/json" -X POST localhost:38071
Could you try getting the logs with a topic in polygon please, and did you resync after this commit? 30df8a976560dd22e17c025e3b6de9bfbfe044b8
I've synchronized some blocks since the commit 30df8a9, but I did not resynchronize the entire blockchain. Retrieving logs with just the block number crashes with the same error:
user@UbuntuAmd:/mnt/raid_array/erigon/erigon-release$ curl --data '{"jsonrpc":"2.0","method":"eth_getLogs","params":[{"fromBlock": "32003520", "toBlock": "32003520"}],"id":1}]' -H "Content-Type: application/json" -X POST localhost:38071
{"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"method handler crashed"}}
Adding a topic filter on top of the block filter works:
user@UbuntuAmd:/mnt/raid_array/erigon/erigon-release$ curl --data '{"jsonrpc":"2.0","method":"eth_getLogs","params":[{"fromBlock": "32003520", "toBlock": "32003520", "topics": ["0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4"]}],"id":1}]' -H "Content-Type: application/json" -X POST localhost:38071
{"jsonrpc":"2.0","id":1,"result":[{"address":"0x0000000000000000000000000000000000001010","topics":["0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4","0x0000000000000000000000000000000000000000000000000000000000001010","0x0000000000000000000000001640e916e10610ba39aac5cd8a08acf3ccae1a4c","0x00000000000000000000000051aba405de2b25e5506dea32a6697f450ceb1a17"],"data":"0x00000000000000000000000000000000000000000000006695d23ab069a00000000000000000000000000000000000000000000000000ad383db1c22f1cb54620000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a6cee08e172882b546200000000000000000000000000000000000000000000006695d23ab069a00000","blockNumber":"0x1e855c0","timestamp":"0x0","transactionHash":"0xab8dd9989b654b52e7ea68303289c396426c8ac6e7074c49da76b4bd53a05292","transactionIndex":"0x2","blockHash":"0x8dcd2160a43579444309264d9524a8d0eddc7a9f6f82bbb59793b7fd6f190b9d","logIndex":"0x6","removed":false},{"address":"0x0000000000000000000000000000000000001010","topics":["0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4","0x0000000000000000000000000000000000000000000000000000000000001010","0x00000000000000000000000051aba405de2b25e5506dea32a6697f450ceb1a17","0x0000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf1270"],"data":"0x00000000000000000000000000000000000000000000006695d23ab069a0000000000000000000000000000000000000000000000000006695d23ab069a00000000000000000000000000000000000000000000000e4fbbf16faa013cb8e2f400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e4fc25acccdac4352e2f40","blockNumber":"0x1e855c0","timestamp":"0x0","transactionHash":"0xab8dd9989b654b52e7ea68303289c396426c8ac6e7074c49da76b4bd53a05292","transactionIndex":"0x2","blockHash":"0x8dcd2160a43579444309264d9524a8d0eddc7a9f6f82bbb59793b7fd6f190b9d","logIndex":"0x7","removed":false},{"address":"0x0000000000000000000000000000000000001010","topics":["0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4","0x0000000000000000000000000000000000000000000000000000000000001010","0x0000000000000000000000004208cab09557443f7ebbd9a22860e284c089da2c","0x000000000000000000000000eb441af644404dbfd075273400f18f954251cd36"],"data":"0x000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000191ab4b32d6d8922c00000000000000000000000000000000000000000000000000000000006ff08b00000000000000000000000000000000000000000000000191ab4b32d6d8921c00000000000000000000000000000000000000000000000000000000006ff09b","blockNumber":"0x1e855c0","timestamp":"0x0","transactionHash":"0xe999a6942b22e5c4884b9fcdeb35ecb475bf1c79283ad7805bc1a27e9660376a","transactionIndex":"0x93","blockHash":"0x8dcd2160a43579444309264d9524a8d0eddc7a9f6f82bbb59793b7fd6f190b9d","logIndex":"0x2a5","removed":false},{"address":"0x0000000000000000000000000000000000001010","topics":["0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4","0x0000000000000000000000000000000000000000000000000000000000001010","0x000000000000000000000000f8ac399487efa412b1c0ec1a7c7fdb61a0ffd59f","0x000000000000000000000000eb441af644404dbfd075273400f18f954251cd36"],"data":"0x0000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000001162926a53ebc9fa300000000000000000000000000000000000000000000000000000000006ff09b000000000000000000000000000000000000000000000001162926a53ebc93a300000000000000000000000000000000000000000000000000000000006ffc9b","blockNumber":"0x1e855c0","timestamp":"0x0","transactionHash":"0xbe2dcc46efab74bfda3862d03d6cdb393bc6f16dcbb38bf7bc242552296910c4","transactionIndex":"0x9a","blockHash":"0x8dcd2160a43579444309264d9524a8d0eddc7a9f6f82bbb59793b7fd6f190b9d","logIndex":"0x2d7","removed":false},{"address":"0x0000000000000000000000000000000000001010","topics":["0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4","0x0000000000000000000000000000000000000000000000000000000000001010","0x000000000000000000000000be32c85e41486622d7d89a33f412e3c6c5777cb2","0x0000000000000000000000007ab2cc564627457dd50078ea2345610997c8a04b"],"data":"0x000000000000000000000000000000000000000000000003950b51e4a5d000000000000000000000000000000000000000000000000000039594544d3a46600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000089026894766000000000000000000000000000000000000000000000000003950b51e4a5d00000","blockNumber":"0x1e855c0","timestamp":"0x0","transactionHash":"0x25a559deef96650147f64d646c99116666aab5700a391b059e887846aae2c173","transactionIndex":"0x9b","blockHash":"0x8dcd2160a43579444309264d9524a8d0eddc7a9f6f82bbb59793b7fd6f190b9d","logIndex":"0x2e5","removed":false},{"address":"0x0000000000000000000000000000000000001010","topics":["0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4","0x0000000000000000000000000000000000000000000000000000000000001010","0x0000000000000000000000007ab2cc564627457dd50078ea2345610997c8a04b","0x000000000000000000000000be32c85e41486622d7d89a33f412e3c6c5777cb2"],"data":"0x000000000000000000000000000000000000000000000003950b51e4a5d00000000000000000000000000000000000000000000000000003950b51e4a5d00000000000000000000000000000000000000000000000000000008902689476600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000039594544d3a466000","blockNumber":"0x1e855c0","timestamp":"0x0","transactionHash":"0x25a559deef96650147f64d646c99116666aab5700a391b059e887846aae2c173","transactionIndex":"0x9b","blockHash":"0x8dcd2160a43579444309264d9524a8d0eddc7a9f6f82bbb59793b7fd6f190b9d","logIndex":"0x2e6","removed":false},{"address":"0x0000000000000000000000000000000000001010","topics":["0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4","0x0000000000000000000000000000000000000000000000000000000000001010","0x000000000000000000000000b56e213a6883c5b96a7509a9a2200c186d1a1050","0x000000000000000000000000d85c39e03d190bdb6b8e63232d1bacfbddd80dde"],"data":"0x000000000000000000000000000000000000000000000000000b38892d66bd0000000000000000000000000000000000000000000000000f9b75c929bc420340000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f9b6a90a08edb4640000000000000000000000000000000000000000000000000000b38892d66bd00","blockNumber":"0x1e855c0","timestamp":"0x0","transactionHash":"0xc2f8c12130e3f17e1ebf8652c62fcc6026153a30e6edbc7d5c86a125543bc1a2","transactionIndex":"0xab","blockHash":"0x8dcd2160a43579444309264d9524a8d0eddc7a9f6f82bbb59793b7fd6f190b9d","logIndex":"0x362","removed":false},{"address":"0x0000000000000000000000000000000000001010","topics":["0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4","0x0000000000000000000000000000000000000000000000000000000000001010","0x0000000000000000000000000be9ee57f82c8f4166ad16cd3a3ba618dae0ad39","0x000000000000000000000000958867c867af7cba6e94be83308b8f575e1c9eaf"],"data":"0x00000000000000000000000000000000000000000000000000141d229d750a8000000000000000000000000000000000000000000000000227aeb627be820e280000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002279a9905210d03a800000000000000000000000000000000000000000000000000141d229d750a80","blockNumber":"0x1e855c0","timestamp":"0x0","transactionHash":"0x46992d2abda48fe17e3b3895855da5fa4e29b977f1ed667311e10cccc4e2a737","transactionIndex":"0xac","blockHash":"0x8dcd2160a43579444309264d9524a8d0eddc7a9f6f82bbb59793b7fd6f190b9d","logIndex":"0x364","removed":false},{"address":"0x0000000000000000000000000000000000001010","topics":["0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4","0x0000000000000000000000000000000000000000000000000000000000001010","0x0000000000000000000000004ba1b4e9296f4d3e525569f5b4302afc22fedfff","0x000000000000000000000000c0bfe826e4df0f0ee2ba3536ea67774b567c10d0"],"data":"0x0000000000000000000000000000000000000000000000000010a80e81829e00000000000000000000000000000000000000000000000000a43d667b5398e4980000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a42cbe6cd21646980000000000000000000000000000000000000000000000000010a80e81829e00","blockNumber":"0x1e855c0","timestamp":"0x0","transactionHash":"0x933da1b2a8061fb8b35b85d87fa4316f072d58d904dd3e134f1ecab496486324","transactionIndex":"0xad","blockHash":"0x8dcd2160a43579444309264d9524a8d0eddc7a9f6f82bbb59793b7fd6f190b9d","logIndex":"0x366","removed":false}]}
I've synchronized some blocks since the commit 30df8a9, but I did not resynchronize the entire blockchain. Retrieving logs with just the block number crashes with the same error:
user@UbuntuAmd:/mnt/raid_array/erigon/erigon-release$ curl --data '{"jsonrpc":"2.0","method":"eth_getLogs","params":[{"fromBlock": "32003520", "toBlock": "32003520"}],"id":1}]' -H "Content-Type: application/json" -X POST localhost:38071 {"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"method handler crashed"}}Adding a topic filter on top of the block filter works:
user@UbuntuAmd:/mnt/raid_array/erigon/erigon-release$ curl --data '{"jsonrpc":"2.0","method":"eth_getLogs","params":[{"fromBlock": "32003520", "toBlock": "32003520", "topics": ["0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4"]}],"id":1}]' -H "Content-Type: application/json" -X POST localhost:38071 {"jsonrpc":"2.0","id":1,"result":[{"address":"0x0000000000000000000000000000000000001010","topics":["0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4","0x0000000000000000000000000000000000000000000000000000000000001010","0x0000000000000000000000001640e916e10610ba39aac5cd8a08acf3ccae1a4c","0x00000000000000000000000051aba405de2b25e5506dea32a6697f450ceb1a17"],"data":"0x00000000000000000000000000000000000000000000006695d23ab069a00000000000000000000000000000000000000000000000000ad383db1c22f1cb54620000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a6cee08e172882b546200000000000000000000000000000000000000000000006695d23ab069a00000","blockNumber":"0x1e855c0","timestamp":"0x0","transactionHash":"0xab8dd9989b654b52e7ea68303289c396426c8ac6e7074c49da76b4bd53a05292","transactionIndex":"0x2","blockHash":"0x8dcd2160a43579444309264d9524a8d0eddc7a9f6f82bbb59793b7fd6f190b9d","logIndex":"0x6","removed":false},{"address":"0x0000000000000000000000000000000000001010","topics":["0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4","0x0000000000000000000000000000000000000000000000000000000000001010","0x00000000000000000000000051aba405de2b25e5506dea32a6697f450ceb1a17","0x0000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf1270"],"data":"0x00000000000000000000000000000000000000000000006695d23ab069a0000000000000000000000000000000000000000000000000006695d23ab069a00000000000000000000000000000000000000000000000e4fbbf16faa013cb8e2f400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e4fc25acccdac4352e2f40","blockNumber":"0x1e855c0","timestamp":"0x0","transactionHash":"0xab8dd9989b654b52e7ea68303289c396426c8ac6e7074c49da76b4bd53a05292","transactionIndex":"0x2","blockHash":"0x8dcd2160a43579444309264d9524a8d0eddc7a9f6f82bbb59793b7fd6f190b9d","logIndex":"0x7","removed":false},{"address":"0x0000000000000000000000000000000000001010","topics":["0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4","0x0000000000000000000000000000000000000000000000000000000000001010","0x0000000000000000000000004208cab09557443f7ebbd9a22860e284c089da2c","0x000000000000000000000000eb441af644404dbfd075273400f18f954251cd36"],"data":"0x000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000191ab4b32d6d8922c00000000000000000000000000000000000000000000000000000000006ff08b00000000000000000000000000000000000000000000000191ab4b32d6d8921c00000000000000000000000000000000000000000000000000000000006ff09b","blockNumber":"0x1e855c0","timestamp":"0x0","transactionHash":"0xe999a6942b22e5c4884b9fcdeb35ecb475bf1c79283ad7805bc1a27e9660376a","transactionIndex":"0x93","blockHash":"0x8dcd2160a43579444309264d9524a8d0eddc7a9f6f82bbb59793b7fd6f190b9d","logIndex":"0x2a5","removed":false},{"address":"0x0000000000000000000000000000000000001010","topics":["0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4","0x0000000000000000000000000000000000000000000000000000000000001010","0x000000000000000000000000f8ac399487efa412b1c0ec1a7c7fdb61a0ffd59f","0x000000000000000000000000eb441af644404dbfd075273400f18f954251cd36"],"data":"0x0000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000001162926a53ebc9fa300000000000000000000000000000000000000000000000000000000006ff09b000000000000000000000000000000000000000000000001162926a53ebc93a300000000000000000000000000000000000000000000000000000000006ffc9b","blockNumber":"0x1e855c0","timestamp":"0x0","transactionHash":"0xbe2dcc46efab74bfda3862d03d6cdb393bc6f16dcbb38bf7bc242552296910c4","transactionIndex":"0x9a","blockHash":"0x8dcd2160a43579444309264d9524a8d0eddc7a9f6f82bbb59793b7fd6f190b9d","logIndex":"0x2d7","removed":false},{"address":"0x0000000000000000000000000000000000001010","topics":["0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4","0x0000000000000000000000000000000000000000000000000000000000001010","0x000000000000000000000000be32c85e41486622d7d89a33f412e3c6c5777cb2","0x0000000000000000000000007ab2cc564627457dd50078ea2345610997c8a04b"],"data":"0x000000000000000000000000000000000000000000000003950b51e4a5d000000000000000000000000000000000000000000000000000039594544d3a46600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000089026894766000000000000000000000000000000000000000000000000003950b51e4a5d00000","blockNumber":"0x1e855c0","timestamp":"0x0","transactionHash":"0x25a559deef96650147f64d646c99116666aab5700a391b059e887846aae2c173","transactionIndex":"0x9b","blockHash":"0x8dcd2160a43579444309264d9524a8d0eddc7a9f6f82bbb59793b7fd6f190b9d","logIndex":"0x2e5","removed":false},{"address":"0x0000000000000000000000000000000000001010","topics":["0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4","0x0000000000000000000000000000000000000000000000000000000000001010","0x0000000000000000000000007ab2cc564627457dd50078ea2345610997c8a04b","0x000000000000000000000000be32c85e41486622d7d89a33f412e3c6c5777cb2"],"data":"0x000000000000000000000000000000000000000000000003950b51e4a5d00000000000000000000000000000000000000000000000000003950b51e4a5d00000000000000000000000000000000000000000000000000000008902689476600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000039594544d3a466000","blockNumber":"0x1e855c0","timestamp":"0x0","transactionHash":"0x25a559deef96650147f64d646c99116666aab5700a391b059e887846aae2c173","transactionIndex":"0x9b","blockHash":"0x8dcd2160a43579444309264d9524a8d0eddc7a9f6f82bbb59793b7fd6f190b9d","logIndex":"0x2e6","removed":false},{"address":"0x0000000000000000000000000000000000001010","topics":["0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4","0x0000000000000000000000000000000000000000000000000000000000001010","0x000000000000000000000000b56e213a6883c5b96a7509a9a2200c186d1a1050","0x000000000000000000000000d85c39e03d190bdb6b8e63232d1bacfbddd80dde"],"data":"0x000000000000000000000000000000000000000000000000000b38892d66bd0000000000000000000000000000000000000000000000000f9b75c929bc420340000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f9b6a90a08edb4640000000000000000000000000000000000000000000000000000b38892d66bd00","blockNumber":"0x1e855c0","timestamp":"0x0","transactionHash":"0xc2f8c12130e3f17e1ebf8652c62fcc6026153a30e6edbc7d5c86a125543bc1a2","transactionIndex":"0xab","blockHash":"0x8dcd2160a43579444309264d9524a8d0eddc7a9f6f82bbb59793b7fd6f190b9d","logIndex":"0x362","removed":false},{"address":"0x0000000000000000000000000000000000001010","topics":["0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4","0x0000000000000000000000000000000000000000000000000000000000001010","0x0000000000000000000000000be9ee57f82c8f4166ad16cd3a3ba618dae0ad39","0x000000000000000000000000958867c867af7cba6e94be83308b8f575e1c9eaf"],"data":"0x00000000000000000000000000000000000000000000000000141d229d750a8000000000000000000000000000000000000000000000000227aeb627be820e280000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002279a9905210d03a800000000000000000000000000000000000000000000000000141d229d750a80","blockNumber":"0x1e855c0","timestamp":"0x0","transactionHash":"0x46992d2abda48fe17e3b3895855da5fa4e29b977f1ed667311e10cccc4e2a737","transactionIndex":"0xac","blockHash":"0x8dcd2160a43579444309264d9524a8d0eddc7a9f6f82bbb59793b7fd6f190b9d","logIndex":"0x364","removed":false},{"address":"0x0000000000000000000000000000000000001010","topics":["0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4","0x0000000000000000000000000000000000000000000000000000000000001010","0x0000000000000000000000004ba1b4e9296f4d3e525569f5b4302afc22fedfff","0x000000000000000000000000c0bfe826e4df0f0ee2ba3536ea67774b567c10d0"],"data":"0x0000000000000000000000000000000000000000000000000010a80e81829e00000000000000000000000000000000000000000000000000a43d667b5398e4980000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a42cbe6cd21646980000000000000000000000000000000000000000000000000010a80e81829e00","blockNumber":"0x1e855c0","timestamp":"0x0","transactionHash":"0x933da1b2a8061fb8b35b85d87fa4316f072d58d904dd3e134f1ecab496486324","transactionIndex":"0xad","blockHash":"0x8dcd2160a43579444309264d9524a8d0eddc7a9f6f82bbb59793b7fd6f190b9d","logIndex":"0x366","removed":false}]}
what is happening is that some blocks got written with the index out of bound error from my initial PR and then after a while you get the correct one from my fix (if you updated first into a commit after the error and before the fix) otherwise it's something different. If it is something different I can look into it tomorrow.
Please forgive the delay, I haven't been able to test it on any new blocks because of the following error:
[INFO] [08-20|00:52:06.818] [6/16 Execution] Blocks execution from=32009919 to=32103600
[WARN] [08-20|00:52:06.822] [6/16 Execution] Execution failed block=32009920 hash=0xed6169f7dbf39fcb45b7e62b47dafc46bdd3793afa10909f74b797841f68ca2e err="could not apply tx 0 from block 32009920 [0x7aa5d2b98d05e84ddd75842a98124538334b1f7264386a72c363049fbf19d9d5]: nonce too low: address 0x2db560c2C2bf877eC2e5beAd9d7213619A8eF739, tx: 288537 state: 288538"
[INFO] [08-20|00:52:06.822] UnwindTo block=32009919 bad_block_hash=0xed6169f7dbf39fcb45b7e62b47dafc46bdd3793afa10909f74b797841f68ca2e
[INFO] [08-20|00:52:06.823] [6/16 Execution] Completed on block=32009919
I will try unwinding and a few other things. I don't mean to put two issues in the same post, just checking in as I haven't abandoned this post.
@michaelscheung no worries we had a state root hash error, and this might be related to that.
@michaelscheung no worries we had a state root hash error, and this might be related to that.
@enriavil1 Ah I see, I think it is indeed related as I got the same error during synchronization as the following issue: https://github.com/ledgerwatch/erigon/issues/5112
Is that the issue you are referencing? I've added a comment to the post.
That issue was related to mining ours is related to consensus I believe.
This issue is stale because it has been open for 40 days with no activity. Remove stale label or comment, or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity.