This PR adds a forHash bool parameter to the SerializeHeader method and thus generate the serialized block header buffer according to our need (for "reading" or for "hash")
it lets to return the block's ID using the Header.GetHash method.
tested in hash_hash.go (with Liquid & Nigiri block)
This PR adds a
forHash
bool parameter to the SerializeHeader method and thus generate the serialized block header buffer according to our need (for "reading" or for "hash")Header.GetHash
method.@tiero @sekulicd please review