go-ethereum/consensus/ethash
Konrad Feldmeier 2fefe4baa0 consensus: Fix makedag epoch
`geth makedag <blocknumber> <path>` was creating DAGs for
`<blocknumber>/<epoch_length> + 1`, hence
it was impossible to create an epoch 0 DAG.

This fixes the calculations in `consensus/ethash/ethash.go` for
`MakeDataset` and `MakeCache`, and applies `gofmt`.
2017-06-12 11:15:16 +02:00
..
algorithm_go1.7.go core, consensus: pluggable consensus engines (#3817) 2017-04-05 00:16:29 +02:00
algorithm_go1.8_test.go core, consensus: pluggable consensus engines (#3817) 2017-04-05 00:16:29 +02:00
algorithm_go1.8.go core, consensus: pluggable consensus engines (#3817) 2017-04-05 00:16:29 +02:00
algorithm_test.go core, consensus: pluggable consensus engines (#3817) 2017-04-05 00:16:29 +02:00
algorithm.go common/bitutil, consensus/ethash: reusable bitutil package 2017-05-05 16:00:11 +03:00
consensus_test.go consensus/ethash: fix TestCalcDifficulty 2017-05-24 15:40:54 +02:00
consensus.go consensus, core, core/vm, parems: review fixes 2017-05-18 09:05:58 +02:00
ethash_test.go core, consensus: pluggable consensus engines (#3817) 2017-04-05 00:16:29 +02:00
ethash.go consensus: Fix makedag epoch 2017-06-12 11:15:16 +02:00
sealer.go consensus, eth: don't CPU mine by default during remote mining 2017-04-07 17:22:06 +03:00