1
0
mirror of https://github.com/GOSTSec/gostcoin synced 2025-01-30 00:14:20 +00:00
This commit is contained in:
orignal 2017-04-13 13:11:23 -04:00
commit 664dada4a3
2 changed files with 2 additions and 2 deletions

0
.gitmodules vendored
View File

View File

@ -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)
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;