forked from tronprotocol/java-tron
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConstant.java
More file actions
44 lines (36 loc) · 1.58 KB
/
Constant.java
File metadata and controls
44 lines (36 loc) · 1.58 KB
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
35
36
37
38
39
40
41
42
43
44
/*
* java-tron is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* java-tron is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.tron.core;
import java.io.File;
import org.tron.common.utils.ByteArray;
public class Constant {
// whole
public static final byte[] LAST_HASH = ByteArray.fromString("lastHash");
public static final String DIFFICULTY = "2001";
// DB
public static final String BLOCK_DB_NAME = "block_data";
public static final String TRANSACTION_DB_NAME = "transaction_data";
// kafka
public static final String TOPIC_BLOCK = "block";
public static final String TOPIC_TRANSACTION = "transaction";
public static final Integer PARTITION = 0;
//config
public static final String NORMAL = "normal";
public static final String TEST = "test";
public static final String NORMAL_CONF = "tron.conf";
public static final String TEST_CONF = "tron-test.conf";
public static final String DATABASE_DIR = "database.directory";
public static final String OUTPUT_DIR = "output-directory" + File.separator;
}