diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2015-03-31 20:35:04 -0700 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2015-04-01 11:47:10 -0700 |
commit | e2edf95cd3f43331843676e49a82830128a95050 (patch) | |
tree | 45a1f675182b1570704d14b1a7d8125fb5b3b8b5 /src/miner.h | |
parent | 6b04508e37c5dd18cec1cd61cc4356bd208aa991 (diff) |
Bugfix: make CreateNewBlock return pindexPrev
Diffstat (limited to 'src/miner.h')
-rw-r--r-- | src/miner.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/miner.h b/src/miner.h index 549658ec17..00ad299512 100644 --- a/src/miner.h +++ b/src/miner.h @@ -27,8 +27,8 @@ void GenerateBitcoins(bool fGenerate, CWallet* pwallet, int nThreads); /** Create a single block */ bool MineBlock(CWallet *pwallet, uint256& hash); /** Generate a new block, without valid proof-of-work */ -CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn); -CBlockTemplate* CreateNewBlockWithKey(CReserveKey& reservekey); +CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn, CBlockIndex*& pindexPrev); +CBlockTemplate* CreateNewBlockWithKey(CReserveKey& reservekey, CBlockIndex*& pindexPrev); /** Modify the extranonce in a block */ void IncrementExtraNonce(CBlock* pblock, CBlockIndex* pindexPrev, unsigned int& nExtraNonce); void UpdateTime(CBlockHeader* block, const CBlockIndex* pindexPrev); |