aboutsummaryrefslogtreecommitdiff
path: root/src/miner.h
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2021-04-05 11:11:22 -0400
committerCarl Dong <contact@carldong.me>2021-04-05 11:13:51 -0400
commitcced0f46c9133e0fc6211e987421ad1d9be1a399 (patch)
treea0538dc9d5ee76146a840570e61fdfc131b51044 /src/miner.h
parent66daf4cb3b47e8218623936d23ad504fd189e70b (diff)
downloadbitcoin-cced0f46c9133e0fc6211e987421ad1d9be1a399.tar.xz
miner: Pass in previous CBlockIndex to RegenerateCommitments
Diffstat (limited to 'src/miner.h')
-rw-r--r--src/miner.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/miner.h b/src/miner.h
index c400c90f6c..becf362b79 100644
--- a/src/miner.h
+++ b/src/miner.h
@@ -202,8 +202,7 @@ private:
void IncrementExtraNonce(CBlock* pblock, const CBlockIndex* pindexPrev, unsigned int& nExtraNonce);
int64_t UpdateTime(CBlockHeader* pblock, const Consensus::Params& consensusParams, const CBlockIndex* pindexPrev);
-// TODO just accept a CBlockIndex*
/** Update an old GenerateCoinbaseCommitment from CreateNewBlock after the block txs have changed */
-void RegenerateCommitments(CBlock& block, BlockManager& blockman);
+void RegenerateCommitments(CBlock& block, CBlockIndex* prev_block);
#endif // BITCOIN_MINER_H