mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
more debug
This commit is contained in:
parent
1613e1d884
commit
df2114616d
1 changed files with 2 additions and 0 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue