test
This commit is contained in:
@@ -97,7 +97,7 @@ char *komodo_issuemethod(char *method,char *params,uint16_t port)
|
|||||||
{
|
{
|
||||||
sprintf(url,(char *)"http://127.0.0.1:%u",port);
|
sprintf(url,(char *)"http://127.0.0.1:%u",port);
|
||||||
sprintf(postdata,"{\"method\":\"%s\",\"params\":%s}",method,params);
|
sprintf(postdata,"{\"method\":\"%s\",\"params\":%s}",method,params);
|
||||||
printf("postdata.(%s) USERPASS.(%s)\n",postdata,USERPASS);
|
//printf("postdata.(%s) USERPASS.(%s)\n",postdata,USERPASS);
|
||||||
retstr = curl_post(&cHandle,url,USERPASS,postdata,0,0,0,0);
|
retstr = curl_post(&cHandle,url,USERPASS,postdata,0,0,0,0);
|
||||||
}
|
}
|
||||||
return(retstr);
|
return(retstr);
|
||||||
|
|||||||
@@ -335,7 +335,7 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn)
|
|||||||
//txNew.nLockTime = (uint32_t)time(NULL) - 60;
|
//txNew.nLockTime = (uint32_t)time(NULL) - 60;
|
||||||
txNew.vin.resize(1);
|
txNew.vin.resize(1);
|
||||||
txNew.vin[0].prevout.SetNull();
|
txNew.vin[0].prevout.SetNull();
|
||||||
int32_t i,opretlen; uint8_t opret[8192],*ptr;
|
int32_t i,opretlen; uint8_t opret[256],*ptr;
|
||||||
if ( (opretlen= komodo_pax_opreturn(opret,sizeof(opret))) > 0 )
|
if ( (opretlen= komodo_pax_opreturn(opret,sizeof(opret))) > 0 )
|
||||||
{
|
{
|
||||||
txNew.vout.resize(2);
|
txNew.vout.resize(2);
|
||||||
|
|||||||
Reference in New Issue
Block a user