diff --git a/libethcore/BlockInfo.h b/libethcore/BlockInfo.h index adddf0f3c..93ffac14c 100644 --- a/libethcore/BlockInfo.h +++ b/libethcore/BlockInfo.h @@ -188,8 +188,6 @@ template 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); } diff --git a/libethcore/EthashGPUMiner.cpp b/libethcore/EthashGPUMiner.cpp index 9f2c7b2ba..aa6f4adda 100644 --- a/libethcore/EthashGPUMiner.cpp +++ b/libethcore/EthashGPUMiner.cpp @@ -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);