• 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
ethash.go 19.7 KB