From 77de2a13fd8811daca301c3e14b9b649682fbf3b Mon Sep 17 00:00:00 2001 From: welkin22 Date: Wed, 23 Oct 2024 14:07:58 +0800 Subject: [PATCH] use GOMAXPROCS instead of NumCPU --- core/pevm_processor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/pevm_processor.go b/core/pevm_processor.go index 0cf6f0f2c..83edcb56e 100644 --- a/core/pevm_processor.go +++ b/core/pevm_processor.go @@ -36,7 +36,7 @@ func newPEVMProcessor(config *params.ChainConfig, bc *BlockChain, engine consens } initParallelRunner(bc.vmConfig.ParallelTxNum) log.Info("Parallel execution mode is enabled", "Parallel Num", ParallelNum(), - "CPUNum", runtime.NumCPU(), "unorderedMerge", processor.unorderedMerge) + "CPUNum", runtime.GOMAXPROCS(0), "unorderedMerge", processor.unorderedMerge) return processor }