This commit is contained in:
cui 2026-06-18 21:54:22 -07:00 committed by GitHub
commit e6a80317f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -221,7 +221,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 {