From aa5d010ffa0c6bf52609594408f77166defabaae Mon Sep 17 00:00:00 2001 From: Daniil Date: Wed, 18 Jan 2023 12:26:26 +0100 Subject: [PATCH] consensus/bor/bor.go : stateSyncs init fixed [Fix #686] --- consensus/bor/bor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consensus/bor/bor.go b/consensus/bor/bor.go index 1b4ddec45d..5b32263762 100644 --- a/consensus/bor/bor.go +++ b/consensus/bor/bor.go @@ -1161,7 +1161,7 @@ func (c *Bor) CommitStates( processStart := time.Now() totalGas := 0 /// limit on gas for state sync per block chainID := c.chainConfig.ChainID.String() - stateSyncs := make([]*types.StateSyncData, len(eventRecords)) + stateSyncs := make([]*types.StateSyncData, 0, len(eventRecords)) var gasUsed uint64