|
53 | 53 | import org.tron.common.args.GenesisBlock; |
54 | 54 | import org.tron.common.bloom.Bloom; |
55 | 55 | import org.tron.common.es.ExecutorServiceManager; |
| 56 | +import org.tron.common.exit.ExitManager; |
56 | 57 | import org.tron.common.logsfilter.EventPluginLoader; |
57 | 58 | import org.tron.common.logsfilter.FilterQuery; |
58 | 59 | import org.tron.common.logsfilter.capsule.BlockFilterCapsule; |
@@ -293,6 +294,9 @@ public class Manager { |
293 | 294 | Metrics.counterInc(MetricKeys.Counter.TXS, 1, |
294 | 295 | MetricLabels.Counter.TXS_FAIL, MetricLabels.Counter.TXS_FAIL_ERROR); |
295 | 296 | } |
| 297 | + ExitManager.findTronError(ex).ifPresent(e -> { |
| 298 | + throw e; |
| 299 | + }); |
296 | 300 | } finally { |
297 | 301 | if (tx != null && getRePushTransactions().remove(tx)) { |
298 | 302 | Metrics.gaugeInc(MetricKeys.Gauge.MANAGER_QUEUE, -1, |
@@ -550,18 +554,18 @@ public void init() { |
550 | 554 | validateSignService = ExecutorServiceManager |
551 | 555 | .newFixedThreadPool(validateSignName, Args.getInstance().getValidateSignThreadNum()); |
552 | 556 | rePushEs = ExecutorServiceManager.newSingleThreadExecutor(rePushEsName, true); |
553 | | - rePushEs.submit(rePushLoop); |
| 557 | + ExecutorServiceManager.submit(rePushEs, rePushLoop); |
554 | 558 | // add contract event listener for subscribing |
555 | 559 | if (Args.getInstance().isEventSubscribe()) { |
556 | 560 | startEventSubscribing(); |
557 | 561 | triggerEs = ExecutorServiceManager.newSingleThreadExecutor(triggerEsName, true); |
558 | | - triggerEs.submit(triggerCapsuleProcessLoop); |
| 562 | + ExecutorServiceManager.submit(triggerEs, triggerCapsuleProcessLoop); |
559 | 563 | } |
560 | 564 |
|
561 | 565 | // start json rpc filter process |
562 | 566 | if (CommonParameter.getInstance().isJsonRpcFilterEnabled()) { |
563 | 567 | filterEs = ExecutorServiceManager.newSingleThreadExecutor(filterEsName); |
564 | | - filterEs.submit(filterProcessLoop); |
| 568 | + ExecutorServiceManager.submit(filterEs, filterProcessLoop); |
565 | 569 | } |
566 | 570 |
|
567 | 571 | //initStoreFactory |
|
0 commit comments