mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-12 01:41:36 +00:00
core: prealloc
This commit is contained in:
parent
ac406c2fe7
commit
c429fe0b17
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ func (p *StateProcessor) chainConfig() *params.ChainConfig {
|
|||
func (p *StateProcessor) Process(ctx context.Context, block *types.Block, statedb *state.StateDB, cfg vm.Config) (*ProcessResult, error) {
|
||||
var (
|
||||
config = p.chainConfig()
|
||||
receipts types.Receipts
|
||||
receipts = make(types.Receipts, 0, len(block.Transactions()))
|
||||
header = block.Header()
|
||||
blockHash = block.Hash()
|
||||
blockNumber = block.Number()
|
||||
|
|
|
|||
Loading…
Reference in a new issue