From 82390264bc6119c1d51abef02e81f2786d63ac14 Mon Sep 17 00:00:00 2001 From: Jerry Date: Mon, 1 May 2023 15:32:20 -0700 Subject: [PATCH] Remove recover from settle --- core/parallel_state_processor.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/core/parallel_state_processor.go b/core/parallel_state_processor.go index d5b3beb80e..a5a71753c5 100644 --- a/core/parallel_state_processor.go +++ b/core/parallel_state_processor.go @@ -175,17 +175,6 @@ func (task *ExecutionTask) Dependencies() []int { } func (task *ExecutionTask) Settle() { - defer func() { - if r := recover(); r != nil { - // In some rare cases, ApplyMVWriteSet will panic due to an index out of range error when calculating the - // address hash in sha3 module. Recover from panic and continue the execution. - // After recovery, block receipts or merckle root will be incorrect, but this is fine, because the block - // will be rejected and re-synced. - log.Info("Recovered from error", "Error:", r) - return - } - }() - task.finalStateDB.Prepare(task.tx.Hash(), task.index) coinbaseBalance := task.finalStateDB.GetBalance(task.coinbase)