File tree Expand file tree Collapse file tree 4 files changed +11
-12
lines changed
framework/src/main/java/org/tron
core/services/http/solidity Expand file tree Collapse file tree 4 files changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ public void setOptions(Args args) {
36
36
37
37
@ Override
38
38
@ Autowired
39
- public void init (CommonParameter args ) {
39
+ public void init (CommonParameter parameter ) {
40
40
blockStoreDb = dbManager .getBlockStore ();
41
41
services = new ServiceContainer ();
42
42
}
@@ -47,8 +47,8 @@ public void addService(Service service) {
47
47
}
48
48
49
49
@ Override
50
- public void initServices (CommonParameter args ) {
51
- services .init (args );
50
+ public void initServices (CommonParameter parameter ) {
51
+ services .init (parameter );
52
52
}
53
53
54
54
/**
Original file line number Diff line number Diff line change @@ -46,9 +46,9 @@ public class DiscoverServer {
46
46
@ Autowired
47
47
private WireTrafficStats stats ;
48
48
49
- private CommonParameter args = Args .getInstance ();
49
+ private CommonParameter parameter = Args .getInstance ();
50
50
51
- private int port = args .getNodeListenPort ();
51
+ private int port = parameter .getNodeListenPort ();
52
52
53
53
private Channel channel ;
54
54
@@ -59,7 +59,7 @@ public class DiscoverServer {
59
59
@ Autowired
60
60
public DiscoverServer (final NodeManager nodeManager ) {
61
61
this .nodeManager = nodeManager ;
62
- if (args .isNodeDiscoveryEnable () && !args .isFastForward ()) {
62
+ if (parameter .isNodeDiscoveryEnable () && !parameter .isFastForward ()) {
63
63
if (port == 0 ) {
64
64
logger .error ("Discovery can't be started while listen port == 0" );
65
65
} else {
@@ -75,7 +75,7 @@ public DiscoverServer(final NodeManager nodeManager) {
75
75
}
76
76
77
77
public void start () throws Exception {
78
- NioEventLoopGroup group = new NioEventLoopGroup (args .getUdpNettyWorkThreadNum ());
78
+ NioEventLoopGroup group = new NioEventLoopGroup (parameter .getUdpNettyWorkThreadNum ());
79
79
try {
80
80
discoveryExecutor = new DiscoveryExecutor (nodeManager );
81
81
discoveryExecutor .start ();
Original file line number Diff line number Diff line change @@ -121,7 +121,6 @@ public void init(CommonParameter args) {
121
121
122
122
@ Override
123
123
public void start () {
124
- CommonParameter args = Args .getInstance ();
125
124
try {
126
125
server = new Server (port );
127
126
ServletContextHandler context = new ServletContextHandler (ServletContextHandler .SESSIONS );
Original file line number Diff line number Diff line change @@ -43,11 +43,11 @@ public static void load(String path) {
43
43
public static void main (String [] args ) {
44
44
logger .info ("Full node running." );
45
45
Args .setParam (args , Constant .TESTNET_CONF );
46
- CommonParameter cfgArgs = Args .getInstance ();
46
+ CommonParameter parameter = Args .getInstance ();
47
47
48
- load (cfgArgs .getLogbackPath ());
48
+ load (parameter .getLogbackPath ());
49
49
50
- if (cfgArgs .isHelp ()) {
50
+ if (parameter .isHelp ()) {
51
51
logger .info ("Here is the help message." );
52
52
return ;
53
53
}
@@ -87,7 +87,7 @@ public static void main(String[] args) {
87
87
appT .addService (httpApiOnSolidityService );
88
88
}
89
89
90
- appT .initServices (cfgArgs );
90
+ appT .initServices (parameter );
91
91
appT .startServices ();
92
92
appT .startup ();
93
93
You can’t perform that action at this time.
0 commit comments