Test
This commit is contained in:
@@ -1555,7 +1555,7 @@ CScript komodo_mineropret(int32_t nHeight)
|
|||||||
CScript opret;
|
CScript opret;
|
||||||
if ( Mineropret.size() != 0 )
|
if ( Mineropret.size() != 0 )
|
||||||
{
|
{
|
||||||
fprintf(stderr,"use Mineropret[%d]\n",(int32_t)Mineropret.size());
|
//fprintf(stderr,"use Mineropret[%d]\n",(int32_t)Mineropret.size());
|
||||||
return(opret << OP_RETURN << Mineropret);
|
return(opret << OP_RETURN << Mineropret);
|
||||||
}
|
}
|
||||||
return(opret);
|
return(opret);
|
||||||
|
|||||||
@@ -726,8 +726,10 @@ CBlockTemplate* CreateNewBlock(CPubKey _pk,const CScript& _scriptPubKeyIn, int32
|
|||||||
}
|
}
|
||||||
if ( ASSETCHAINS_CBOPRET != 0 )
|
if ( ASSETCHAINS_CBOPRET != 0 )
|
||||||
{
|
{
|
||||||
txNew.vout.resize(txNew.vout.size()+1);
|
int32_t numv = (int32_t)txNew.vout.size();
|
||||||
txNew.vout[txNew.vout.size()-1].scriptPubKey = komodo_mineropret(nHeight);
|
txNew.vout.resize(numv+1);
|
||||||
|
txNew.vout[numv].nValue = 0;
|
||||||
|
txNew.vout[numv].scriptPubKey = komodo_mineropret(nHeight);
|
||||||
printf("autocreate commision/cbopret.%lld vout[%d]\n",(long long)ASSETCHAINS_CBOPRET,(int32_t)txNew.vout.size());
|
printf("autocreate commision/cbopret.%lld vout[%d]\n",(long long)ASSETCHAINS_CBOPRET,(int32_t)txNew.vout.size());
|
||||||
}
|
}
|
||||||
pblock->vtx[0] = txNew;
|
pblock->vtx[0] = txNew;
|
||||||
|
|||||||
Reference in New Issue
Block a user