add test for blockHeader.GetDisplayPrevHash() but needs work
This commit is contained in:
parent
7b78663312
commit
82d4312196
|
@ -131,5 +131,9 @@ func TestBlockHeader(t *testing.T) {
|
||||||
t.Errorf("Hash lacked leading zeros: %x", hash)
|
t.Errorf("Hash lacked leading zeros: %x", hash)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// XXX make this a comparison
|
||||||
|
if len(blockHeader.GetDisplayPrevHash()) != 32 {
|
||||||
|
t.Error("unexpected prevhash length")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue