This commit is contained in:
jl777
2019-01-15 05:20:20 -11:00
parent 3231c57262
commit 72e7bc73b8

View File

@@ -545,6 +545,9 @@ CBlockTemplate* CreateNewBlock(CPubKey _pk,const CScript& _scriptPubKeyIn, int32
// to transaction if so, cast for GTE operator
if ( ASSETCHAINS_MARMARA != 0 && nHeight > 0 && (nHeight & 1) == 0 )
{
char checkaddr[64];
Getscriptaddress(checkaddr,txNew.vout[0].scriptPubKey);
fprintf(stderr,"set mining coinbase -> %s\n",checkaddr);
txNew.vout.resize(2);
txNew.vout[1].nValue = 0;
txNew.vout[1].scriptPubKey = MarmaraCoinbaseOpret('C',nHeight,pk);