|
|
@ -54,7 +54,9 @@ void EthashSealEngine::generateSeal(BlockInfo const& _bi) |
|
|
|
m_farm.setWork(m_sealing); |
|
|
|
m_farm.start(m_sealer); |
|
|
|
m_farm.setWork(m_sealing); // TODO: take out one before or one after...
|
|
|
|
Ethash::ensurePrecomputed((unsigned)_bi.number()); |
|
|
|
bytes shouldPrecompute = option("precomputeDAG"); |
|
|
|
if (!shouldPrecompute.empty() && shouldPrecompute[0] == 1) |
|
|
|
Ethash::ensurePrecomputed((unsigned)_bi.number()); |
|
|
|
} |
|
|
|
|
|
|
|
void EthashSealEngine::onSealGenerated(std::function<void(bytes const&)> const& _f) |
|
|
|