-
Notifications
You must be signed in to change notification settings - Fork 202
/
factory.go
34 lines (29 loc) · 1.58 KB
/
factory.go
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
34
package factory
const (
// TransactionTopic is the topic used for sharing transactions
TransactionTopic = "transactions"
// UnsignedTransactionTopic is the topic used for sharing unsigned transactions
UnsignedTransactionTopic = "unsignedTransactions"
// RewardsTransactionTopic is the topic used for sharing fee transactions
RewardsTransactionTopic = "rewardsTransactions"
// ShardBlocksTopic is the topic used for sharing block headers
ShardBlocksTopic = "shardBlocks"
// MiniBlocksTopic is the topic used for sharing mini blocks
MiniBlocksTopic = "txBlockBodies"
// PeerChBodyTopic is the topic used for sharing peer change block bodies
PeerChBodyTopic = "peerChangeBlockBodies"
// MetachainBlocksTopic is the topic used for sharing metachain block headers
MetachainBlocksTopic = "metachainBlocks"
// AccountTrieNodesTopic is used for sharing state trie nodes
AccountTrieNodesTopic = "accountTrieNodes"
// ValidatorTrieNodesTopic is used for sharding validator state trie nodes
ValidatorTrieNodesTopic = "validatorTrieNodes"
)
// SystemVirtualMachine is a byte array identifier for the smart contract address created for system VM
var SystemVirtualMachine = []byte{0, 1}
// IELEVirtualMachine is a byte array identifier for the smart contract address created for IELE VM
var IELEVirtualMachine = []byte{1, 0}
// ArwenVirtualMachine is a byte array identifier for the smart contract address created for Arwen VM
var ArwenVirtualMachine = []byte{5, 0}
// InternalTestingVM is a byte array identified for the smart contract address created for the testing VM
var InternalTestingVM = []byte{255, 255}