This commit is contained in:
cui 2026-07-17 21:53:21 -07:00 committed by GitHub
commit 782b0be6b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -255,7 +255,7 @@ func ImportChain(chain *core.BlockChain, fn string) error {
}
// Import the batch.
if checkInterrupt() {
return errors.New("interrupted")
return ErrImportInterrupted
}
missing := missingBlocks(chain, blocks[:i])
if len(missing) == 0 {