Skip to content

Commit adab9dd

Browse files
committed
feat(start): adjust consensusService start before tronNetService
Closes #6215
1 parent 5158b2f commit adab9dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

framework/src/main/java/org/tron/common/application/ApplicationImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,21 +42,21 @@ public class ApplicationImpl implements Application {
4242
public void startup() {
4343
this.startServices();
4444
eventService.init();
45+
consensusService.start();
4546
if ((!Args.getInstance().isSolidityNode()) && (!Args.getInstance().isP2pDisable())) {
4647
tronNetService.start();
4748
}
48-
consensusService.start();
4949
MetricsUtil.init();
5050
}
5151

5252
@Override
5353
public void shutdown() {
5454
this.shutdownServices();
5555
eventService.close();
56-
consensusService.stop();
5756
if (!Args.getInstance().isSolidityNode() && (!Args.getInstance().p2pDisable)) {
5857
tronNetService.close();
5958
}
59+
consensusService.stop();
6060
dbManager.close();
6161
shutdown.countDown();
6262
}

0 commit comments

Comments
 (0)