diff --git a/src/miner.h b/src/miner.h --- a/src/miner.h +++ b/src/miner.h @@ -134,8 +134,6 @@ private: // The constructed block template std::unique_ptr pblocktemplate; - // A convenience pointer that always refers to the CBlock in pblocktemplate - CBlock *pblock; // Configuration parameters for the block size uint64_t nMaxGeneratedBlockSize; diff --git a/src/miner.cpp b/src/miner.cpp --- a/src/miner.cpp +++ b/src/miner.cpp @@ -129,7 +129,7 @@ } // Pointer for convenience. - pblock = &pblocktemplate->block; + CBlock *const pblock = &pblocktemplate->block; // Add dummy coinbase tx as first transaction. It is updated at the end. pblocktemplate->entries.emplace_back(CTransactionRef(), -SATOSHI, -1);