mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Some early refactoring to support async miners better.
This commit is contained in:
parent
b848fa9af1
commit
fbb5adc9f9
@ -575,7 +575,7 @@ void overwriteBlockHeader(BlockInfo& _currentBlockHeader, mObject& _blObj)
|
|||||||
_currentBlockHeader = tmp;
|
_currentBlockHeader = tmp;
|
||||||
|
|
||||||
ProofOfWork pow;
|
ProofOfWork pow;
|
||||||
std::pair<MineInfo, Ethash::Proof> ret;
|
std::pair<MineInfo, Ethash::Solution> ret;
|
||||||
while (!ProofOfWork::verify(_currentBlockHeader))
|
while (!ProofOfWork::verify(_currentBlockHeader))
|
||||||
{
|
{
|
||||||
ret = pow.mine(_currentBlockHeader, 1000, true);
|
ret = pow.mine(_currentBlockHeader, 1000, true);
|
||||||
@ -621,7 +621,7 @@ BlockInfo constructBlock(mObject& _o)
|
|||||||
void updatePoW(BlockInfo& _bi)
|
void updatePoW(BlockInfo& _bi)
|
||||||
{
|
{
|
||||||
ProofOfWork pow;
|
ProofOfWork pow;
|
||||||
std::pair<MineInfo, Ethash::Proof> ret;
|
std::pair<MineInfo, Ethash::Solution> ret;
|
||||||
while (!ProofOfWork::verify(_bi))
|
while (!ProofOfWork::verify(_bi))
|
||||||
{
|
{
|
||||||
ret = pow.mine(_bi, 10000, true);
|
ret = pow.mine(_bi, 10000, true);
|
||||||
|
Loading…
Reference in New Issue
Block a user