@@ -25,57 +25,65 @@ public class CommonParameter {
2525 public static CommonParameter PARAMETER = new CommonParameter ();
2626 @ Setter
2727 public static boolean ENERGY_LIMIT_HARD_FORK = false ;
28- @ Parameter (names = {"-c" , "--config" }, description = "Config File " )
28+ @ Parameter (names = {"-c" , "--config" }, description = "Config file (default:config.conf) " )
2929 public String shellConfFileName = "" ;
3030 @ Getter
31- @ Parameter (names = {"-d" , "--output-directory" }, description = "Directory" )
31+ @ Parameter (names = {"-d" , "--output-directory" },
32+ description = "Data directory for the databases (default:output-directory)" )
3233 public String outputDirectory = "output-directory" ;
3334 @ Getter
34- @ Parameter (names = {"--log-config" })
35+ @ Parameter (names = {"--log-config" }, description = "Logback config file" )
3536 public String logbackPath = "" ;
3637 @ Getter
37- @ Parameter (names = {"-h" , "--help" }, help = true , description = "HELP message" )
38+ @ Parameter (names = {"-h" , "--help" }, help = true , description = "Show help message" )
3839 public boolean help = false ;
3940 @ Getter
4041 @ Setter
41- @ Parameter (names = {"-w" , "--witness" })
42+ @ Parameter (names = {"-w" , "--witness" }, description = "Is witness node" )
4243 public boolean witness = false ;
4344 @ Getter
4445 @ Setter
45- @ Parameter (names = {"--support-constant" })
46+ @ Parameter (names = {"--support-constant" }, description = "Support constant calling for TVM. " +
47+ "(defalut: false)" )
4648 public boolean supportConstant = false ;
4749 @ Getter
4850 @ Setter
49- @ Parameter (names = {"--max-energy-limit-for-constant" })
51+ @ Parameter (names = {"--max-energy-limit-for-constant" }, description = "Max energy limit for " +
52+ "constant calling. (default: 100,000,000)" )
5053 public long maxEnergyLimitForConstant = 100_000_000L ;
5154 @ Getter
5255 @ Setter
53- @ Parameter (names = {"--lru-cache-size" })
56+ @ Parameter (names = {"--lru-cache-size" }, description = "Max LRU size for caching bytecode and " +
57+ "result of JUMPDEST analysis. (default: 500)" )
5458 public int lruCacheSize = 500 ;
5559 @ Getter
5660 @ Setter
57- @ Parameter (names = {"--debug" })
61+ @ Parameter (names = {"--debug" }, description = "Switch for TVM debug mode. In debug model, TVM " +
62+ "will not check for timeout. (default: false)" )
5863 public boolean debug = false ;
5964 @ Getter
6065 @ Setter
61- @ Parameter (names = {"--min-time-ratio" })
66+ @ Parameter (names = {"--min-time-ratio" }, description = "Maximum CPU tolerance when executing " +
67+ "non-timeout transactions while synchronizing blocks. (default: 5.0)" )
6268 public double minTimeRatio = 0.0 ;
6369 @ Getter
6470 @ Setter
65- @ Parameter (names = {"--max-time-ratio" })
71+ @ Parameter (names = {"--max-time-ratio" }, description = "Maximum CPU tolerance when executing " +
72+ "timeout transactions while synchronizing blocks. (default: 0.0)" )
6673 public double maxTimeRatio = calcMaxTimeRatio ();
6774 @ Getter
6875 @ Setter
6976 @ Parameter (names = {"--long-running-time" })
7077 public int longRunningTime = 10 ;
7178 @ Getter
7279 @ Setter
73- @ Parameter (names = {"--max-connect-number" })
80+ @ Parameter (names = {"--max-connect-number" }, description = "Http server max connect number " +
81+ "(default:50)" )
7482 public int maxHttpConnectNumber = 50 ;
7583 @ Getter
7684 @ Parameter (description = "--seed-nodes" )
7785 public List <String > seedNodes = new ArrayList <>();
78- @ Parameter (names = {"-p" , "--private-key" }, description = "private- key" )
86+ @ Parameter (names = {"-p" , "--private-key" }, description = "Witness private key" )
7987 public String privateKey = "" ;
8088 @ Parameter (names = {"--witness-address" }, description = "witness-address" )
8189 public String witnessAddress = "" ;
@@ -92,8 +100,8 @@ public class CommonParameter {
92100 "--storage-db-synchronous" },
93101 description = "Storage db is synchronous or not.(true or false)" )
94102 public String storageDbSynchronous = "" ;
95- @ Parameter (names = {"--contract-parse-enable" },
96- description = "enable contract parses in java-tron or not.(true or false )" )
103+ @ Parameter (names = {"--contract-parse-enable" }, description = "Switch for contract parses in " +
104+ " java-tron. (default: true )" )
97105 public String contractParseEnable = "" ;
98106 @ Parameter (names = {"--storage-index-directory" },
99107 description = "Storage index directory" )
@@ -162,7 +170,8 @@ public class CommonParameter {
162170 public long nodeP2pPingInterval ;
163171 @ Getter
164172 @ Setter
165- @ Parameter (names = {"--save-internaltx" })
173+ @ Parameter (names = {"--save-internaltx" }, description = "Save internal transactions generated " +
174+ "during TVM execution, such as create, call, suicide and so on. (default: false)" )
166175 public boolean saveInternalTx ;
167176 @ Getter
168177 @ Setter
@@ -342,12 +351,12 @@ public class CommonParameter {
342351 public long blockNumForEnergyLimit ;
343352 @ Getter
344353 @ Setter
345- @ Parameter (names = {"--es" })
354+ @ Parameter (names = {"--es" }, description = "Start event subscribe server" )
346355 public boolean eventSubscribe = false ;
347356 @ Getter
348357 @ Setter
349358 public long trxExpirationTimeInMilliseconds ; // (ms)
350- @ Parameter (names = {"-v" , "--version" }, description = "output code version" , help = true )
359+ @ Parameter (names = {"-v" , "--version" }, description = "Output code version" , help = true )
351360 public boolean version ;
352361 @ Getter
353362 @ Setter
0 commit comments