Skip to content
This repository was archived by the owner on Oct 21, 2019. It is now read-only.

Commit 558c357

Browse files
author
nicehashdev
committed
Report DAG creation success
1 parent acae2c9 commit 558c357

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

ethminer/MinerAux.h

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -672,11 +672,19 @@ class MinerCLI
672672
{
673673
h256 seedHash = EthashAux::seedHash(_n);
674674
cout << "Initializing DAG for epoch beginning #" << (_n / 30000 * 30000) << " (seedhash " << seedHash.abridged() << "). This will take a while." << endl;
675-
EthashAux::full(seedHash, true, [&](unsigned _pc) {
675+
if (!EthashAux::full(seedHash, true, [&](unsigned _pc) {
676676
cout << "\rCreating DAG. " << _pc << "% done..." << flush;
677677
reportDAGprogress(_pc);
678678
return 0;
679-
});
679+
}))
680+
{
681+
reportDAGprogress(0);
682+
}
683+
else
684+
{
685+
reportDAGprogress(100);
686+
}
687+
680688
exit(0);
681689
}
682690

0 commit comments

Comments
 (0)