From a70f9d5356819d49a66809b2c801c5e38fa7ce7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=BA=E9=B9=8F=E9=A3=9E?= Date: Thu, 18 Apr 2019 12:09:43 +0800 Subject: [PATCH] fix(core/state_processor): add err checking for ApplyTransaction --- core/state_processor.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/state_processor.go b/core/state_processor.go index 54b4de9c6c..a4db749752 100644 --- a/core/state_processor.go +++ b/core/state_processor.go @@ -133,7 +133,10 @@ func (p *StateProcessor) Process(block *types.Block, statedb *state.StateDB, cfg if err != nil { return nil, nil, 0, err } - receipt, _, _ := ApplyTransaction(p.config, p.bc, nil, gp, statedb, header, tx, usedGas, cfg) + receipt, _, err := ApplyTransaction(p.config, p.bc, nil, gp, statedb, header, tx, usedGas, cfg) + if err != nil { + return nil, nil, 0, err + } receipts = append(receipts, receipt) allLogs = append(allLogs, receipt.Logs...) }