-
Notifications
You must be signed in to change notification settings - Fork 458
/
constants.ts
33 lines (28 loc) 路 1.52 KB
/
constants.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
* Copyright 漏 2021 Lisk Foundation
*
* See the LICENSE file at the top-level directory of this distribution
* for licensing information.
*
* Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation,
* no part of this software, including this file, may be copied, modified,
* propagated, or distributed except according to the terms contained in the
* LICENSE file.
*
* Removal or modification of this copyright notice is prohibited.
*/
import { utils } from '@liskhq/lisk-cryptography';
export const CONSENSUS_EVENT_FORK_DETECTED = 'CONSENSUS_EVENT_FORK_DETECTED';
export const CONSENSUS_EVENT_BLOCK_BROADCAST = 'CONSENSUS_EVENT_BLOCK_BROADCAST';
export const CONSENSUS_EVENT_BLOCK_NEW = 'CONSENSUS_EVENT_BLOCK_NEW';
export const CONSENSUS_EVENT_NETWORK_BLOCK_NEW = 'CONSENSUS_EVENT_NETWORK_BLOCK_NEW';
export const CONSENSUS_EVENT_BLOCK_DELETE = 'CONSENSUS_EVENT_BLOCK_DELETE';
export const CONSENSUS_EVENT_FINALIZED_HEIGHT_CHANGED = 'CONSENSUS_EVENT_FINALIZED_HEIGHT_CHANGED';
export const CONSENSUS_EVENT_VALIDATORS_CHANGED = 'CONSENSUS_EVENT_VALIDATORS_CHANGED';
export const NETWORK_EVENT_POST_BLOCK = 'postBlock';
export const NETWORK_EVENT_POST_NODE_INFO = 'postNodeInfo';
export const NETWORK_RPC_GET_LAST_BLOCK = 'getLastBlock';
export const NETWORK_RPC_GET_BLOCKS_FROM_ID = 'getBlocksFromId';
export const NETWORK_RPC_GET_HIGHEST_COMMON_BLOCK = 'getHighestCommonBlock';
export const NETWORK_LEGACY_GET_BLOCKS_FROM_ID = 'getLegacyBlocksFromId';
export const EMPTY_HASH = utils.hash(Buffer.alloc(0));