From d581f2297cb5bfb6036e815185adb0c3588180aa Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 29 Oct 2016 17:56:23 -0300 Subject: [PATCH] test --- src/miner.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/miner.cpp b/src/miner.cpp index b1fa15ebc..6eb4c552d 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -352,6 +352,7 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn) //txNew.nLockTime = (uint32_t)time(NULL) - 60; txNew.vin.resize(1); txNew.vin[0].prevout.SetNull(); + txNew.vout.resize(1); txNew.vout[0].scriptPubKey = scriptPubKeyIn; txNew.vout[0].nValue = GetBlockSubsidy(nHeight,chainparams.GetConsensus()); // Add fees @@ -369,7 +370,7 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn) ptr[i] = opret[i]; txNew.vout[1].nValue = 0; //fprintf(stderr,"opretlen.%d\n",opretlen); - } else txNew.vout.resize(1); + } } else {