@neo-one/node-protocol
Version:
NEO•ONE NEO node and consensus protocol.
11 lines (9 loc) • 1.04 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RelayStrippedTransactionMismatch = exports.InvalidRelayStrippedTransactionType = exports.AlreadyConnectedError = exports.NegotiationError = void 0;
const utils_1 = require("@neo-one/utils");
exports.NegotiationError = utils_1.makeErrorWithCode('NEGOTIATION', (message, reason) => `Negotiation failed. Unexpected message received: ${message.value.command}${reason === undefined ? '' : `. ${reason}`}`);
exports.AlreadyConnectedError = utils_1.makeErrorWithCode('ALREADY_CONNECTED', (reason) => `Negotiation failed: ${reason}`);
exports.InvalidRelayStrippedTransactionType = utils_1.makeErrorWithCode('INVALID_TRANSACTION_TYPE_FOR_STRIPPED_RELAY', (type) => `tried to use relayStrippedTransaction on a ${type} transaction`);
exports.RelayStrippedTransactionMismatch = utils_1.makeErrorWithCode('RELAY_STRIPPED_TRANSACTION_MISMATCH', () => "verificationTransaction and relayTransaction weren't identical transactions");
//# sourceMappingURL=errors.js.map