mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Modularise nonce, mix hash and seed hash.
This commit is contained in:
parent
45385741a6
commit
8b1c261f31
@ -81,7 +81,7 @@ void mine(BlockInfo& _bi)
|
|||||||
bool completed = false;
|
bool completed = false;
|
||||||
f.onSolutionFound([&](ProofOfWork::Solution sol)
|
f.onSolutionFound([&](ProofOfWork::Solution sol)
|
||||||
{
|
{
|
||||||
ProofOfWork::assignResult(sol, _bi);
|
_bi.proof = sol;
|
||||||
return completed = true;
|
return completed = true;
|
||||||
});
|
});
|
||||||
f.setWork(_bi);
|
f.setWork(_bi);
|
||||||
|
Loading…
Reference in New Issue
Block a user