Test
This commit is contained in:
@@ -181,9 +181,9 @@ CScript Marmara_scriptPubKey(int32_t height,CPubKey pk)
|
||||
if ( height > 0 && (height & 1) == 0 && pk.size() == 33 )
|
||||
{
|
||||
ccvout = MakeCC1of2vout(EVAL_MARMARA,0,Marmarapk,pk);
|
||||
char coinaddr[64];
|
||||
Getscriptaddress(coinaddr,ccvout.scriptPubKey);
|
||||
fprintf(stderr,"Marmara_scriptPubKey %s ht.%d -> %s\n",HexStr(pk).c_str(),height,coinaddr);
|
||||
//char coinaddr[64];
|
||||
//Getscriptaddress(coinaddr,ccvout.scriptPubKey);
|
||||
//fprintf(stderr,"Marmara_scriptPubKey %s ht.%d -> %s\n",HexStr(pk).c_str(),height,coinaddr);
|
||||
}
|
||||
return(ccvout.scriptPubKey);
|
||||
}
|
||||
|
||||
@@ -548,7 +548,7 @@ CBlockTemplate* CreateNewBlock(CPubKey _pk,const CScript& _scriptPubKeyIn, int32
|
||||
{
|
||||
char checkaddr[64];
|
||||
Getscriptaddress(checkaddr,txNew.vout[0].scriptPubKey);
|
||||
fprintf(stderr,"set mining coinbase -> %s\n",checkaddr);
|
||||
//`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);
|
||||
|
||||
Reference in New Issue
Block a user