Skip to content

Commit c48c9a4

Browse files
committed
Revert "bug fix: fix byte order for block hash"
This reverts commit 0f21d79.
1 parent 0f21d79 commit c48c9a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/spentutxos.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func BuildSpentUTXOIndex(utxos []types.UTXO, block *types.Block) (types.SpentOut
2828
return types.SpentOutpointsIndex{}, err
2929
}
3030

31-
hashedOutpoint := sha256.Sum256(append(outpoint, common.ReverseBytes(blockHashBytes)...))
31+
hashedOutpoint := sha256.Sum256(append(outpoint, blockHashBytes...))
3232
spentOutpointsIndex.Data = append(spentOutpointsIndex.Data, [types.LenOutpointHashShort]byte(hashedOutpoint[:]))
3333
}
3434

0 commit comments

Comments
 (0)