more debug

This commit is contained in:
Martin Holst Swende 2020-01-21 08:37:54 +01:00
parent 1613e1d884
commit df2114616d
No known key found for this signature in database
GPG key ID: 683B438C05A5DDF0

View file

@ -549,6 +549,8 @@ func (ethash *Ethash) verifySeal(chain consensus.ChainReader, header *types.Head
digest, result = hashimotoLight(size, cache.cache, sealHash, nonce) digest, result = hashimotoLight(size, cache.cache, sealHash, nonce)
ctx = append(ctx, "result", fmt.Sprintf("%x", result)) ctx = append(ctx, "result", fmt.Sprintf("%x", result))
ctx = append(ctx, "epoch", cache.epoch) ctx = append(ctx, "epoch", cache.epoch)
ctx = append(ctx, "cachedir", ethash.config.CacheDir)
ctx = append(ctx, "datasetdir", ethash.config.DatasetDir)
// For debuggging only // For debuggging only
sum := uint32(0) sum := uint32(0)
for _, val := range cache.cache { for _, val := range cache.cache {