@liskhq/lisk-chain
Advanced tools
Comparing version 0.4.0-beta.5 to 0.4.0-beta.6
@@ -16,3 +16,3 @@ /// <reference types="node" /> | ||
export declare const TAG_TRANSACTION: string; | ||
export declare const MAX_ASSET_DATA_SIZE_BYTES = 64; | ||
export declare const MAX_ASSET_DATA_SIZE_BYTES = 18; | ||
export declare const SIGNATURE_LENGTH_BYTES = 64; | ||
@@ -30,3 +30,3 @@ export declare const MIN_MODULE_NAME_LENGTH = 1; | ||
export declare const EVENT_MAX_EVENT_SIZE_BYTES: number; | ||
export declare const TRANSACTION_MAX_PARAMS_SIZE: number; | ||
export declare const MAX_PARAMS_SIZE: number; | ||
export declare const EVENT_TOTAL_INDEX_LENGTH_BYTES: number; | ||
@@ -33,0 +33,0 @@ export declare const EVENT_MAX_TOPICS_PER_EVENT: number; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.NAME_REGEX = exports.EVENT_ID_LENGTH_BYTES = exports.MAX_EVENTS_PER_BLOCK = exports.EVENT_KEY_LENGTH = exports.EVENT_MAX_TOPICS_PER_EVENT = exports.EVENT_TOTAL_INDEX_LENGTH_BYTES = exports.TRANSACTION_MAX_PARAMS_SIZE = exports.EVENT_MAX_EVENT_SIZE_BYTES = exports.EVENT_TOPIC_INDEX_LENGTH_BITS = exports.EVENT_INDEX_LENGTH_BITS = exports.EVENT_TOPIC_HASH_LENGTH_BYTES = exports.SMT_PREFIX_SIZE = exports.MAX_CROSS_CHAIN_COMMAND_NAME_LENGTH = exports.MIN_CROSS_CHAIN_COMMAND_NAME_LENGTH = exports.MAX_EVENT_NAME_LENGTH = exports.MIN_EVENT_NAME_LENGTH = exports.MAX_MODULE_NAME_LENGTH = exports.MIN_MODULE_NAME_LENGTH = exports.SIGNATURE_LENGTH_BYTES = exports.MAX_ASSET_DATA_SIZE_BYTES = exports.TAG_TRANSACTION = exports.TAG_BLOCK_HEADER = exports.GENESIS_BLOCK_TRANSACTION_ROOT = exports.GENESIS_BLOCK_SIGNATURE = exports.GENESIS_BLOCK_REWARD = exports.GENESIS_BLOCK_GENERATOR_ADDRESS = exports.GENESIS_BLOCK_VERSION = exports.MAX_UINT32 = exports.LENGTH_ADDRESS = exports.EMPTY_HASH = exports.EMPTY_BUFFER = exports.DEFAULT_MAX_BLOCK_HEADER_CACHE = exports.DEFAULT_MIN_BLOCK_HEADER_CACHE = exports.DEFAULT_KEEP_EVENTS_FOR_HEIGHTS = void 0; | ||
exports.NAME_REGEX = exports.EVENT_ID_LENGTH_BYTES = exports.MAX_EVENTS_PER_BLOCK = exports.EVENT_KEY_LENGTH = exports.EVENT_MAX_TOPICS_PER_EVENT = exports.EVENT_TOTAL_INDEX_LENGTH_BYTES = exports.MAX_PARAMS_SIZE = exports.EVENT_MAX_EVENT_SIZE_BYTES = exports.EVENT_TOPIC_INDEX_LENGTH_BITS = exports.EVENT_INDEX_LENGTH_BITS = exports.EVENT_TOPIC_HASH_LENGTH_BYTES = exports.SMT_PREFIX_SIZE = exports.MAX_CROSS_CHAIN_COMMAND_NAME_LENGTH = exports.MIN_CROSS_CHAIN_COMMAND_NAME_LENGTH = exports.MAX_EVENT_NAME_LENGTH = exports.MIN_EVENT_NAME_LENGTH = exports.MAX_MODULE_NAME_LENGTH = exports.MIN_MODULE_NAME_LENGTH = exports.SIGNATURE_LENGTH_BYTES = exports.MAX_ASSET_DATA_SIZE_BYTES = exports.TAG_TRANSACTION = exports.TAG_BLOCK_HEADER = exports.GENESIS_BLOCK_TRANSACTION_ROOT = exports.GENESIS_BLOCK_SIGNATURE = exports.GENESIS_BLOCK_REWARD = exports.GENESIS_BLOCK_GENERATOR_ADDRESS = exports.GENESIS_BLOCK_VERSION = exports.MAX_UINT32 = exports.LENGTH_ADDRESS = exports.EMPTY_HASH = exports.EMPTY_BUFFER = exports.DEFAULT_MAX_BLOCK_HEADER_CACHE = exports.DEFAULT_MIN_BLOCK_HEADER_CACHE = exports.DEFAULT_KEEP_EVENTS_FOR_HEIGHTS = void 0; | ||
const lisk_cryptography_1 = require("@liskhq/lisk-cryptography"); | ||
@@ -19,3 +19,3 @@ exports.DEFAULT_KEEP_EVENTS_FOR_HEIGHTS = 300; | ||
exports.TAG_TRANSACTION = lisk_cryptography_1.utils.createMessageTag('TX'); | ||
exports.MAX_ASSET_DATA_SIZE_BYTES = 64; | ||
exports.MAX_ASSET_DATA_SIZE_BYTES = 18; | ||
exports.SIGNATURE_LENGTH_BYTES = 64; | ||
@@ -33,3 +33,3 @@ exports.MIN_MODULE_NAME_LENGTH = 1; | ||
exports.EVENT_MAX_EVENT_SIZE_BYTES = 10 * 1024; | ||
exports.TRANSACTION_MAX_PARAMS_SIZE = 14 * 1024; | ||
exports.MAX_PARAMS_SIZE = 14 * 1024; | ||
exports.EVENT_TOTAL_INDEX_LENGTH_BYTES = (exports.EVENT_INDEX_LENGTH_BITS + exports.EVENT_TOPIC_INDEX_LENGTH_BITS) / 8; | ||
@@ -36,0 +36,0 @@ exports.EVENT_MAX_TOPICS_PER_EVENT = 2 ** exports.EVENT_TOPIC_INDEX_LENGTH_BITS; |
@@ -104,4 +104,4 @@ "use strict"; | ||
} | ||
if (this.params.length > constants_1.TRANSACTION_MAX_PARAMS_SIZE) { | ||
throw new Error(`Params exceeds max size allowed ${constants_1.TRANSACTION_MAX_PARAMS_SIZE}.`); | ||
if (this.params.length > constants_1.MAX_PARAMS_SIZE) { | ||
throw new Error(`Params exceeds max size allowed ${constants_1.MAX_PARAMS_SIZE}.`); | ||
} | ||
@@ -108,0 +108,0 @@ if (this.signatures.length === 0) { |
{ | ||
"name": "@liskhq/lisk-chain", | ||
"version": "0.4.0-beta.5", | ||
"version": "0.4.0-beta.6", | ||
"description": "Blocks and state management implementation that are used for block processing according to the Lisk protocol", | ||
@@ -38,8 +38,8 @@ "author": "Lisk Foundation <admin@lisk.com>, lightcurve GmbH <admin@lightcurve.io>", | ||
"dependencies": { | ||
"@liskhq/lisk-codec": "^0.3.0-beta.4", | ||
"@liskhq/lisk-cryptography": "^4.0.0-beta.3", | ||
"@liskhq/lisk-codec": "^0.3.0-beta.5", | ||
"@liskhq/lisk-cryptography": "^4.0.0-beta.4", | ||
"@liskhq/lisk-db": "0.3.7", | ||
"@liskhq/lisk-tree": "^0.3.0-beta.4", | ||
"@liskhq/lisk-tree": "^0.3.0-beta.5", | ||
"@liskhq/lisk-utils": "^0.3.0-beta.3", | ||
"@liskhq/lisk-validator": "^0.7.0-beta.4", | ||
"@liskhq/lisk-validator": "^0.7.0-beta.5", | ||
"debug": "4.3.4" | ||
@@ -46,0 +46,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
200215