mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
add cache check
This commit is contained in:
parent
996c4d1319
commit
b1756c4312
1 changed files with 14 additions and 9 deletions
|
|
@ -208,4 +208,9 @@ func TestEthashVerification(t *testing.T) {
|
||||||
if bytes.Equal(expDigest, digest) {
|
if bytes.Equal(expDigest, digest) {
|
||||||
t.Errorf("Mix digest wrong!, got %x exp %x", digest, expDigest)
|
t.Errorf("Mix digest wrong!, got %x exp %x", digest, expDigest)
|
||||||
}
|
}
|
||||||
|
sum := uint32(0)
|
||||||
|
for _, val := range cache.cache {
|
||||||
|
sum = sum ^ val
|
||||||
|
}
|
||||||
|
fmt.Printf("xor sum of cache contents: %x\n", sum)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue