Skip to content

Commit

Permalink
fix: use BigEndian order for Bolt to maintain correct ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalinDe committed Sep 7, 2023
1 parent 4bcfa79 commit e2dc915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/ordering/cosipbft/blockstore/disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ func (s *InDisk) doView(fn func(tx kv.ReadableTx) error) error {

func (s *InDisk) makeKey(index uint64) []byte {
key := make([]byte, 8)
binary.LittleEndian.PutUint64(key, index)
binary.BigEndian.PutUint64(key, index)

return key
}

0 comments on commit e2dc915

Please sign in to comment.