fix(core/state_processor): add err checking for ApplyTransaction

This commit is contained in:
贺鹏飞 2019-04-18 12:09:43 +08:00
parent 5a411eded6
commit a70f9d5356

View file

@ -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...)
}