go-ethereum/cmd
cuiweixie c008de5439 cmd/utils: return ErrImportInterrupted sentinel from batch-import interrupt
ImportChain has two interrupt checkpoints. The one before loading a batch
correctly returns the exported ErrImportInterrupted sentinel, but the one
before inserting a batch returned a freshly constructed
errors.New("interrupted") instead.

The caller in cmd/geth/chaincmd.go detects interruption with
`err == utils.ErrImportInterrupted` to stop processing the remaining
files in a multi-file import. A fresh error value never compares equal to
the sentinel, so an interrupt caught at this checkpoint was treated as an
ordinary per-file failure and the loop kept importing subsequent files.

Return the ErrImportInterrupted sentinel here too so both checkpoints are
recognized by the caller.
2026-06-11 20:00:00 +08:00
..
abidump all: update license headers and AUTHORS from git history (#24947) 2022-05-24 20:39:40 +02:00
abigen cmd/abigen: respect --v2=false (#34943) 2026-05-12 09:02:40 -04:00
blsync beacon/blsync: add checkpoint import/export file feature (#31469) 2025-04-03 16:04:11 +02:00
devp2p all: fix all typos, as reported by crates-ci/typos (#35008) 2026-06-10 18:50:51 +02:00
era internal/era: update to latest ere spec (#34896) 2026-06-03 11:52:10 +02:00
ethkey cmd: fix some typos in readmes (#29405) 2024-04-11 14:06:49 +03:00
evm trie/bintrie: record inserted leaves for t8n (#34843) 2026-05-28 17:06:47 +02:00
fetchpayload cmd/fetchpayload: add payload-building utility (#33919) 2026-03-11 16:18:42 +01:00
geth internal/era: update to latest ere spec (#34896) 2026-06-03 11:52:10 +02:00
keeper core/state/snapshot: snapshot generation shutdown race condition (#33540) 2026-06-04 21:22:58 -05:00
rlpdump build: update to golangci-lint 1.61.0 (#30587) 2024-10-14 19:25:22 +02:00
utils cmd/utils: return ErrImportInterrupted sentinel from batch-import interrupt 2026-06-11 20:00:00 +08:00
workload core/history: refactor pruning configuration (#34036) 2026-03-18 13:54:29 +01:00