import { LodestarError } from "@lodestar/utils";
export { BackfillSyncErrorCode };
var BackfillSyncErrorCode;
(function (BackfillSyncErrorCode) {
    /** fetched block doesn't connect to anchor block */
    BackfillSyncErrorCode["NOT_ANCHORED"] = "not_anchored";
    /** fetched blocks are not linear */
    BackfillSyncErrorCode["NOT_LINEAR"] = "not_linear";
    /** peer doesn't have required block by root */
    BackfillSyncErrorCode["MISSING_BLOCK"] = "missing_blocks";
    BackfillSyncErrorCode["INVALID_SIGNATURE"] = "invalid_proposer_signature";
    BackfillSyncErrorCode["INTERNAL_ERROR"] = "backfill_internal_error";
})(BackfillSyncErrorCode || (BackfillSyncErrorCode = {}));
export class BackfillSyncError extends LodestarError {
}
//# sourceMappingURL=errors.js.map