Skip to content

Commit

Permalink
Merge pull request #6216 from halibobo1205/feat/start_opt
Browse files Browse the repository at this point in the history
feat(start): adjust consensusService start before  tronNetService
  • Loading branch information
CodeNinjaEvan authored Feb 26, 2025
2 parents 5158b2f + adab9dd commit 7a15f50
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,21 @@ public class ApplicationImpl implements Application {
public void startup() {
this.startServices();
eventService.init();
consensusService.start();
if ((!Args.getInstance().isSolidityNode()) && (!Args.getInstance().isP2pDisable())) {
tronNetService.start();
}
consensusService.start();
MetricsUtil.init();
}

@Override
public void shutdown() {
this.shutdownServices();
eventService.close();
consensusService.stop();
if (!Args.getInstance().isSolidityNode() && (!Args.getInstance().p2pDisable)) {
tronNetService.close();
}
consensusService.stop();
dbManager.close();
shutdown.countDown();
}
Expand Down

0 comments on commit 7a15f50

Please sign in to comment.