From 8351786a19ff86dbae9bcdc7715b841d54d8c598 Mon Sep 17 00:00:00 2001 From: ucwong Date: Wed, 22 Apr 2026 08:23:03 +0000 Subject: [PATCH] pre alloc receipts --- core/state_processor.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/state_processor.go b/core/state_processor.go index d1c3405a30..bac2b4ba8c 100644 --- a/core/state_processor.go +++ b/core/state_processor.go @@ -57,10 +57,10 @@ func (p *StateProcessor) chainConfig() *params.ChainConfig { // transactions failed to execute due to insufficient gas it will return an error. func (p *StateProcessor) Process(block *types.Block, statedb *state.StateDB, cfg vm.Config) (*ProcessResult, error) { var ( - config = p.chainConfig() - receipts types.Receipts - usedGas = new(uint64) + config = p.chainConfig() + usedGas = new(uint64) //quotaLimit = big.NewInt(0)//parent.quota+64k - parent.quotaUsed + receipts = make(types.Receipts, 0, len(block.Transactions())) header = block.Header() blockHash = block.Hash() blockNumber = block.Number()