diff options
author | Gav Wood <i@gavwood.com> | 2015-04-11 21:52:36 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2015-04-14 18:55:16 +0800 |
commit | d0efe9333fc88bae5ab82ef0435d99d9be4e21d4 (patch) | |
tree | eda2ab44b46e31b2e4dd3ca894e219c0ce62d27f | |
parent | 4615f8cd1a7a61283de149a7f6f75f4910ee4b3b (diff) | |
download | dexon-solidity-d0efe9333fc88bae5ab82ef0435d99d9be4e21d4.tar.gz dexon-solidity-d0efe9333fc88bae5ab82ef0435d99d9be4e21d4.tar.zst dexon-solidity-d0efe9333fc88bae5ab82ef0435d99d9be4e21d4.zip |
Some early refactoring to support async miners better.
-rw-r--r-- | blockchain.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/blockchain.cpp b/blockchain.cpp index 97171e3f..8f560589 100644 --- a/blockchain.cpp +++ b/blockchain.cpp @@ -587,7 +587,7 @@ void overwriteBlockHeader(BlockInfo& _currentBlockHeader, mObject& _blObj) _currentBlockHeader = tmp; ProofOfWork pow; - std::pair<MineInfo, Ethash::Proof> ret; + std::pair<MineInfo, Ethash::Solution> ret; while (!ProofOfWork::verify(_currentBlockHeader)) { ret = pow.mine(_currentBlockHeader, 1000, true); @@ -632,7 +632,7 @@ BlockInfo constructBlock(mObject& _o) void updatePoW(BlockInfo& _bi) { ProofOfWork pow; - std::pair<MineInfo, Ethash::Proof> ret; + std::pair<MineInfo, Ethash::Solution> ret; while (!ProofOfWork::verify(_bi)) { ret = pow.mine(_bi, 10000, true); |