Skip to content

Commit

Permalink
consensus/bor/bor.go : stateSyncs init fixed [Fix #686]
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniil authored and manav2401 committed Jan 20, 2023
1 parent 168ec6e commit aa5d010
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 aa5d010

Please sign in to comment.