|
|
|
@ -59,6 +59,7 @@ func (p *StateProcessor) Process(block *types.Block, statedb *state.DB, cfg vm.C |
|
|
|
|
receipts types.Receipts |
|
|
|
|
usedGas = new(uint64) |
|
|
|
|
header = block.Header() |
|
|
|
|
coinbase = block.Header().Coinbase |
|
|
|
|
allLogs []*types.Log |
|
|
|
|
gp = new(GasPool).AddGas(block.GasLimit()) |
|
|
|
|
) |
|
|
|
@ -69,7 +70,7 @@ func (p *StateProcessor) Process(block *types.Block, statedb *state.DB, cfg vm.C |
|
|
|
|
// Iterate over and process the individual transactions
|
|
|
|
|
for i, tx := range block.Transactions() { |
|
|
|
|
statedb.Prepare(tx.Hash(), block.Hash(), i) |
|
|
|
|
receipt, _, err := ApplyTransaction(p.config, p.bc, &block.Header().Coinbase, gp, statedb, header, tx, usedGas, cfg) |
|
|
|
|
receipt, _, err := ApplyTransaction(p.config, p.bc, &coinbase, gp, statedb, header, tx, usedGas, cfg) |
|
|
|
|
if err != nil { |
|
|
|
|
return nil, nil, 0, err |
|
|
|
|
} |
|
|
|
|