@neo-one/node-protocol
Version:
NEO•ONE NEO node and consensus protocol.
8 lines (6 loc) • 802 B
JavaScript
import { makeErrorWithCode } from '@neo-one/utils';
export const NegotiationError = makeErrorWithCode('NEGOTIATION', (message, reason) => `Negotiation failed. Unexpected message received: ${message.value.command}${reason === undefined ? '' : `. ${reason}`}`);
export const AlreadyConnectedError = makeErrorWithCode('ALREADY_CONNECTED', (reason) => `Negotiation failed: ${reason}`);
export const InvalidRelayStrippedTransactionType = makeErrorWithCode('INVALID_TRANSACTION_TYPE_FOR_STRIPPED_RELAY', (type) => `tried to use relayStrippedTransaction on a ${type} transaction`);
export const RelayStrippedTransactionMismatch = makeErrorWithCode('RELAY_STRIPPED_TRANSACTION_MISMATCH', () => "verificationTransaction and relayTransaction weren't identical transactions");
//# sourceMappingURL=errors.js.map