Skip to content

Commit

Permalink
modify slice length
Browse files Browse the repository at this point in the history
  • Loading branch information
lbtsm committed Nov 2, 2022
1 parent f88c9ed commit 770956a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chains/ethereum/header_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func decodeHeader(data []byte, hash common.Hash) *Header {

func NewHeaderStore() *HeaderStore {
return &HeaderStore{
CanonicalNumberToHash: make([]common.Hash, MaxHeaderLimit),
CanonicalNumberToHash: make([]common.Hash, 0),
}
}

Expand Down

0 comments on commit 770956a

Please sign in to comment.