mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-16 08:53:46 +00:00
Remove recover from settle
This commit is contained in:
parent
a093c4e7df
commit
82390264bc
1 changed files with 0 additions and 11 deletions
|
|
@ -175,17 +175,6 @@ func (task *ExecutionTask) Dependencies() []int {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (task *ExecutionTask) Settle() {
|
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)
|
task.finalStateDB.Prepare(task.tx.Hash(), task.index)
|
||||||
|
|
||||||
coinbaseBalance := task.finalStateDB.GetBalance(task.coinbase)
|
coinbaseBalance := task.finalStateDB.GetBalance(task.coinbase)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue