Trivial fix for log format for merkle tree root hash value
Without casting, it calls String() method, then it prints
string with hex decimal characters of encoding
@@ -111,7 +111,7 @@ func (b *BlockV01a) Verify(prev Block) error {
if bytes.Compare(b.MerkleTreeRootHash, mrh) != 0 {
return errors.CriticalFormatError.Errorf(
"InvalidTransactionMerkleRoot(exp=%#x,calc=%#x)",
- b.MerkleTreeRootHash, mrh)
+ []byte(b.MerkleTreeRootHash), mrh)
}
return nil
}
