"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.shouldFailImmediate = shouldFailImmediate;
var svm_1 = require("../../arch/svm");
function shouldFailImmediate(method, error) {
    if (!(0, svm_1.isSolanaError)(error)) {
        return false;
    }
    var code = error.context.__code;
    switch (method) {
        case "getBlock":
        case "getBlockTime":
            return [svm_1.SVM_SLOT_SKIPPED, svm_1.SVM_LONG_TERM_STORAGE_SLOT_SKIPPED].includes(code);
        default:
            return false;
    }
}
//# sourceMappingURL=utils.js.map