Add missing nTime parameter for coinbase transaction

miner.cpp
This commit is contained in:
lateminer
2018-10-26 01:17:10 +03:00
parent 7f3a40f51d
commit 55842c9d7a

View File

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