|
|
|
@ -4349,7 +4349,7 @@ public:
@@ -4349,7 +4349,7 @@ public:
|
|
|
|
|
CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn) |
|
|
|
|
{ |
|
|
|
|
// Create new block
|
|
|
|
|
auto_ptr<CBlockTemplate> pblocktemplate(new CBlockTemplate()); |
|
|
|
|
unique_ptr<CBlockTemplate> pblocktemplate(new CBlockTemplate()); |
|
|
|
|
if(!pblocktemplate.get()) |
|
|
|
|
return NULL; |
|
|
|
|
CBlock *pblock = &pblocktemplate->block; // pointer for convenience
|
|
|
|
@ -4718,7 +4718,7 @@ void static GostcoinMiner(CWallet *pwallet)
@@ -4718,7 +4718,7 @@ void static GostcoinMiner(CWallet *pwallet)
|
|
|
|
|
unsigned int nTransactionsUpdatedLast = nTransactionsUpdated; |
|
|
|
|
CBlockIndex* pindexPrev = pindexBest; |
|
|
|
|
|
|
|
|
|
auto_ptr<CBlockTemplate> pblocktemplate(CreateNewBlockWithKey(reservekey)); |
|
|
|
|
unique_ptr<CBlockTemplate> pblocktemplate(CreateNewBlockWithKey(reservekey)); |
|
|
|
|
if (!pblocktemplate.get()) |
|
|
|
|
return; |
|
|
|
|
CBlock *pblock = &pblocktemplate->block; |
|
|
|
|