• Konrad Feldmeier's avatar
    consensus: Fix `makedag` epoch · 2fefe4ba
    Konrad Feldmeier authored
    `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`.
    2fefe4ba
Name
Last commit
Last update
..
algorithm.go Loading commit data...
algorithm_go1.7.go Loading commit data...
algorithm_go1.8.go Loading commit data...
algorithm_go1.8_test.go Loading commit data...
algorithm_test.go Loading commit data...
consensus.go Loading commit data...
consensus_test.go Loading commit data...
ethash.go Loading commit data...
ethash_test.go Loading commit data...
sealer.go Loading commit data...