node-real / bsc-erigon

Ethereum implementation on the efficiency frontier

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[5/15 Bodies] Error, Cant unwind

lilcryptopump opened this issue · comments

Got MDBX_EKEYMISMATCH: The given key value is mismatched to the current cursor position error:

[INFO] [01-14|11:58:14.623] [5/15 Bodies] Processing bodies...       from=30499999 to=35222298
[EROR] [01-14|11:58:16.127] Staged Sync                              err="[5/15 Bodies] WriteRawBodyIfNotExists: WriteRawTransactions: txId=4631601200, baseTxId=4631601200, bucket: BlockTransaction, mdbx_cursor_put: MDBX_EKEYMISMATCH: The given key value is mismatched to the current cursor position"
[INFO] [01-14|11:58:16.933] [5/15 Bodies] Processing bodies...       from=30499999 to=35222298
[EROR] [01-14|11:58:22.877] Staged Sync                              err="[5/15 Bodies] WriteRawBodyIfNotExists: WriteRawTransactions: txId=4631601200, baseTxId=4631601200, bucket: BlockTransaction, mdbx_cursor_put: MDBX_EKEYMISMATCH: The given key value is mismatched to the current cursor position"
[INFO] [01-14|11:58:23.681] [5/15 Bodies] Processing bodies...       from=30499999 to=35222298

Wanted to unwind, but gotwrong trie root error:

/w/bsc-erigon/build/bin/integration state_stages --unwind 10 --datadir /w/datadir --chain bsc --integrity.fast=false
INFO[01-14|12:02:46.410] logging to file system                   log dir=/w/datadir/logs file prefix=erigon log level=info json=false
INFO[01-14|12:02:48.405] [snapshots] Blocks Stat                  blocks=30500k indices=30500k alloc=2.4GB sys=2.5GB
WARN[01-14|12:02:48.746] [8/15 HashState] promotion backwards from 29988979 to 29987889
INFO[01-14|12:02:48.746] UnwindTo                                 block=29987879 bad_block_hash=0x0000000000000000000000000000000000000000000000000000000000000000
INFO[01-14|12:02:49.213] [8/15 HashState] Unwinding started       from=29988979 to=29987879 storage=false codes=true
INFO[01-14|12:02:49.222] [8/15 HashState] Unwinding started       from=29988979 to=29987879 storage=false codes=false
INFO[01-14|12:02:49.253] [8/15 HashState] Unwinding started       from=29988979 to=29987879 storage=true codes=false
INFO[01-14|12:02:49.352] [9/15 IntermediateHashes] Unwinding      from=29988999 to=29987879 csbucket=AccountChangeSet
INFO[01-14|12:02:49.368] [9/15 IntermediateHashes] Unwinding      from=29988999 to=29987879 csbucket=StorageChangeSet
EROR[01-14|12:02:49.796] [9/15 IntermediateHashes] wrong trie root: a65dabdd29e25fad7d93f1567f2c61830a5c204622b36721f3c6e4b0a22c6123, expected (from header): 91a92c2b3658fe0e8acecc15bfcad41b4d8c2ce09437474972c27a7641df5b18

Current stages:

 				 stage_at 	 prune_at
Snapshots 			 30499999 	 0
Headers 			 35222298 	 0
BlockHashes 			 35222298 	 0
Bodies 				 30499999 	 0
Senders 			 30499999 	 0
Execution 			 29987889 	 29999999
Translation 			 0 		 0
HashState 			 29988979 	 0
IntermediateHashes 		 29988999 	 29999999
AccountHistoryIndex 		 29988999 	 0
StorageHistoryIndex 		 29988999 	 0
LogIndex 			 29988999 	 0
CallTraces 			 29987889 	 29999999
TxLookup 			 29988999 	 30499999
Finish 				 29988999 	 0
--

blocks.v2: blocks=30499999, segments=30499999, indices=30499999

history.v3: false, idx steps: 0.00, lastMaxTxNum=0->1, lastBlockInSnap=0

sequence: EthTx=4631601199, NonCanonicalTx=0

in db: first header 30500000, last header 35222298, first body 0, last body 0
--

Startup coommand:

nohup /w/bsc-erigon/build/bin/erigon --p2p.protocol=66 --txpool.disable --metrics --metrics.addr=0.0.0.0 --db.pagesize=16k --datadir=/w/datadir --private.api.addr=localhost:9090 --chain=bsc --log.console.verbosity=dbug --log.dir.path=/w/logs --maxpeers=200 --torrent.download.rate=1024mb --torrent.upload.rate=512mb --sentry.drop-useless-peers --http=false --snap.stop >/dev/null 2>&1 &

Try: integration stage_headers —reset