test
This commit is contained in:
@@ -373,7 +373,7 @@ int32_t komodo_verifynotarization(char *symbol,char *dest,int32_t height,int32_t
|
|||||||
if ( strcmp(ASSETCHAINS_SYMBOL,symbol) != 0 )
|
if ( strcmp(ASSETCHAINS_SYMBOL,symbol) != 0 )
|
||||||
return(0);
|
return(0);
|
||||||
sprintf(params,"[\"%s\", 1]",NOTARIZED_DESTTXID.ToString().c_str());
|
sprintf(params,"[\"%s\", 1]",NOTARIZED_DESTTXID.ToString().c_str());
|
||||||
printf("[%s] src.%s dest.%s params.[%s] ht.%d notarized.%d\n",ASSETCHAINS_SYMBOL,symbol,dest,params,height,NOTARIZED_HEIGHT);
|
//printf("[%s] src.%s dest.%s params.[%s] ht.%d notarized.%d\n",ASSETCHAINS_SYMBOL,symbol,dest,params,height,NOTARIZED_HEIGHT);
|
||||||
if ( strcmp(dest,"KMD") == 0 )
|
if ( strcmp(dest,"KMD") == 0 )
|
||||||
{
|
{
|
||||||
if ( KMDUSERPASS[0] != 0 )
|
if ( KMDUSERPASS[0] != 0 )
|
||||||
@@ -403,7 +403,7 @@ int32_t komodo_verifynotarization(char *symbol,char *dest,int32_t height,int32_t
|
|||||||
if ( (txjson= jobj(json,(char *)"result")) != 0 && (vouts= jarray(&n,txjson,(char *)"vout")) > 0 )
|
if ( (txjson= jobj(json,(char *)"result")) != 0 && (vouts= jarray(&n,txjson,(char *)"vout")) > 0 )
|
||||||
{
|
{
|
||||||
vout = jitem(vouts,n-1);
|
vout = jitem(vouts,n-1);
|
||||||
printf("vout.(%s)\n",jprint(vout,0));
|
//printf("vout.(%s)\n",jprint(vout,0));
|
||||||
if ( (skey= jobj(vout,(char *)"scriptPubKey")) != 0 )
|
if ( (skey= jobj(vout,(char *)"scriptPubKey")) != 0 )
|
||||||
{
|
{
|
||||||
if ( (hexstr= jstr(skey,(char *)"hex")) != 0 )
|
if ( (hexstr= jstr(skey,(char *)"hex")) != 0 )
|
||||||
|
|||||||
Reference in New Issue
Block a user