util: add LE suffix to Uint256 methods

This commit is contained in:
Evgenii Stratonikov 2019-11-27 12:23:18 +03:00
parent 57efad912c
commit 7179e4ba9f
40 changed files with 143 additions and 138 deletions

View file

@ -55,7 +55,7 @@ func TestAddBlock(t *testing.T) {
require.NoError(t, bc.persist())
for _, block := range blocks {
key := storage.AppendPrefix(storage.DataBlock, block.Hash().BytesReverse())
key := storage.AppendPrefix(storage.DataBlock, block.Hash().BytesLE())
if _, err := bc.store.Get(key); err != nil {
t.Fatalf("block %s not persisted", block.Hash())
}