parser: expose little-endian hashes for harmony with wire format

This commit is contained in:
George Tankersley
2018-12-11 01:38:57 -05:00
parent 677b74359b
commit 80b063fe8e
4 changed files with 10 additions and 10 deletions

View File

@@ -176,8 +176,8 @@ func (hdr *blockHeader) GetDisplayHash() []byte {
return hdr.cachedHash
}
// getEncodableHash returns the bytes of a block hash in little-endian wire order.
func (hdr *blockHeader) getEncodableHash() []byte {
// GetEncodableHash returns the bytes of a block hash in little-endian wire order.
func (hdr *blockHeader) GetEncodableHash() []byte {
serializedHeader, err := hdr.MarshalBinary()
if err != nil {