add test for blockHeader.GetDisplayPrevHash() but needs work

This commit is contained in:
Larry Ruane 2019-11-05 13:25:02 -07:00 committed by Larry Ruane
parent 7b78663312
commit 82d4312196
1 changed files with 4 additions and 0 deletions

View File

@ -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")
}
}
}