mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-13 02:11:34 +00:00
core: pre-allocate the receipt slice (#34786)
This commit is contained in:
parent
d422ab39d5
commit
dca3cf02a2
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,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