Add missing nTime parameter for coinbase transaction
miner.cpp
This commit is contained in:
@@ -155,6 +155,7 @@ CBlockTemplate* BlockAssembler::CreateNewBlock(const CScript& scriptPubKeyIn, in
|
||||
|
||||
// Create coinbase transaction.
|
||||
CMutableTransaction coinbaseTx;
|
||||
coinbaseTx.nTime = pblock->nTime;
|
||||
coinbaseTx.vin.resize(1);
|
||||
coinbaseTx.vin[0].prevout.SetNull();
|
||||
coinbaseTx.vout.resize(1);
|
||||
|
||||
Reference in New Issue
Block a user