mirror of
https://github.com/luxfi/evm.git
synced 2026-09-24 00:27:44 +00:00
- admin_api.go: add afterCommit callback to importBlocksFromFile so acceptedBlockDB is updated atomically with each state commit, eliminating the crash window between state persist and DB update - admin_api.go: resume import from current head (skip already-imported blocks) for restart-safety after partial imports - vm.go: simplify readLastAccepted to return genesis on ErrNotFound without recovery hacks - consensus.go: simplify Cancun/beacon validation — Lux networks do not use Ethereum beacon chain; only reject non-zero BlobGasUsed - blockchain.go: chunked batch deletes in reorg to avoid BadgerDB ErrTxnTooBig on large chains - blockchain.go: tolerate "not supported" from snapshot flatten (pathdb backend) instead of log.Crit crash - genesis.go: fix duplicate comment