diff options
author | Gav Wood <i@gavwood.com> | 2015-04-11 21:52:36 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2015-04-11 21:52:36 +0800 |
commit | fbb5adc9f9be5b9749c88592060eb07d71e60ab1 (patch) | |
tree | d27c89bb0240020b902968d8df43239265db263e | |
parent | b848fa9af1487c3cfcc35d4ff24a6c48b0c79d06 (diff) | |
download | dexon-solidity-fbb5adc9f9be5b9749c88592060eb07d71e60ab1.tar dexon-solidity-fbb5adc9f9be5b9749c88592060eb07d71e60ab1.tar.gz dexon-solidity-fbb5adc9f9be5b9749c88592060eb07d71e60ab1.tar.bz2 dexon-solidity-fbb5adc9f9be5b9749c88592060eb07d71e60ab1.tar.lz dexon-solidity-fbb5adc9f9be5b9749c88592060eb07d71e60ab1.tar.xz dexon-solidity-fbb5adc9f9be5b9749c88592060eb07d71e60ab1.tar.zst dexon-solidity-fbb5adc9f9be5b9749c88592060eb07d71e60ab1.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 15cda803..6d7bc97e 100644 --- a/blockchain.cpp +++ b/blockchain.cpp @@ -575,7 +575,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); @@ -621,7 +621,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); |