diff --git a/core/ordering/cosipbft/blockstore/disk.go b/core/ordering/cosipbft/blockstore/disk.go index d07c5032c..2ab4a33bc 100644 --- a/core/ordering/cosipbft/blockstore/disk.go +++ b/core/ordering/cosipbft/blockstore/disk.go @@ -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 }