Paweł Bylica
8 years ago
No known key found for this signature in database
GPG Key ID: 7A0C037434FE77EF
2 changed files with
1 additions and
3 deletions
-
libethcore/BlockInfo.h
-
libethcore/EthashGPUMiner.cpp
|
|
@ -188,8 +188,6 @@ template <class BlockInfoSub> |
|
|
|
class BlockHeaderPolished: public BlockInfoSub |
|
|
|
{ |
|
|
|
public: |
|
|
|
static const unsigned Fields = BlockInfoSub::BasicFields + BlockInfoSub::SealFields; |
|
|
|
|
|
|
|
BlockHeaderPolished() {} |
|
|
|
BlockHeaderPolished(BlockInfo const& _bi): BlockInfoSub(_bi) {} |
|
|
|
explicit BlockHeaderPolished(bytes const& _data, Strictness _s = IgnoreSeal, h256 const& _h = h256(), BlockDataType _bdt = BlockData) { populate(&_data, _s, _h, _bdt); } |
|
|
|
|
|
@ -183,7 +183,7 @@ void EthashGPUMiner::workLoop() |
|
|
|
} |
|
|
|
|
|
|
|
uint64_t upper64OfBoundary = (uint64_t)(u64)((u256)w.boundary >> 192); |
|
|
|
uint64_t startN; |
|
|
|
uint64_t startN = 0; |
|
|
|
if (w.exSizeBits >= 0) |
|
|
|
startN = w.startNonce | ((uint64_t)index() << (64 - 4 - w.exSizeBits)); // this can support up to 16 devices
|
|
|
|
m_miner->search(w.headerHash.data(), upper64OfBoundary, *m_hook, (w.exSizeBits >= 0), startN); |
|
|
|