Skip to content

Commit

Permalink
consensus/bor/bor.go : stateSyncs init fixed [Fix maticnetwork#686]
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniil committed Jan 18, 2023
1 parent e06376c commit 26bc5a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consensus/bor/bor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 26bc5a9

Please sign in to comment.