diff --git a/parser/block_header_test.go b/parser/block_header_test.go index fadeb6e..ea8a05a 100644 --- a/parser/block_header_test.go +++ b/parser/block_header_test.go @@ -131,5 +131,9 @@ func TestBlockHeader(t *testing.T) { t.Errorf("Hash lacked leading zeros: %x", hash) } } + // XXX make this a comparison + if len(blockHeader.GetDisplayPrevHash()) != 32 { + t.Error("unexpected prevhash length") + } } }