@@ -184,7 +184,7 @@ std::unique_ptr<CBlockTemplate> BlockAssembler::CreateNewBlock()
184184 int resize = 2 ;
185185 CMutableTransaction coinbaseTx;
186186 std::vector<AnduroPreCommitment> pending_commitments = listPendingCommitment (nHeight);
187- // if(Params().GetChainType() != ChainType::REGTEST) {
187+ if (Params ().GetChainType () != ChainType::REGTEST) {
188188 // get next block presigned data
189189 LogPrintf (" commitment queue count %i\n " , pending_commitments.size ());
190190 // prevent to get block template if not presigned signature available for next block
@@ -214,10 +214,10 @@ std::unique_ptr<CBlockTemplate> BlockAssembler::CreateNewBlock()
214214 pblock->currentKeys = getCurrentKeys (m_chainstate.m_chainman );
215215 pblock->currentIndex = getCurrentIndex (m_chainstate.m_chainman );
216216 }
217- // } else {
218- // pblock->currentKeys = getCurrentKeys(m_chainstate.m_chainman);
219- // pblock->currentIndex = getCurrentIndex(m_chainstate.m_chainman);
220- // }
217+ } else {
218+ pblock->currentKeys = getCurrentKeys (m_chainstate.m_chainman );
219+ pblock->currentIndex = getCurrentIndex (m_chainstate.m_chainman );
220+ }
221221
222222 coinbaseTx.vin .resize (1 );
223223 coinbaseTx.vin [0 ].prevout .SetNull ();
@@ -231,7 +231,7 @@ std::unique_ptr<CBlockTemplate> BlockAssembler::CreateNewBlock()
231231 coinbaseTx.vout [oIncr].scriptPubKey = getMinerScript (m_chainstate.m_chainman , nHeight);
232232 coinbaseTx.vout [oIncr].nValue = minerFee;
233233
234- // if(Params().GetChainType() != ChainType::REGTEST) {
234+ if (Params ().GetChainType () != ChainType::REGTEST) {
235235 // including anduro signature information
236236 std::string preCommitmentWitness = " " ;
237237 if (nHeight > 2 ) {
@@ -241,7 +241,7 @@ std::unique_ptr<CBlockTemplate> BlockAssembler::CreateNewBlock()
241241 std::vector<unsigned char > data = ParseHex (preCommitmentWitness);
242242 CTxOut out (0 , CScript () << OP_RETURN << data);
243243 coinbaseTx.vout [oIncr] = out;
244- // }
244+ }
245245
246246
247247 Assert (nHeight > 0 );
0 commit comments