Test
This commit is contained in:
@@ -366,7 +366,7 @@ int32_t notarizedtxid_height(char *dest,char *txidstr,int32_t *kmdnotarized_heig
|
|||||||
{
|
{
|
||||||
if ( (jsonstr= komodo_issuemethod(userpass,(char *)"getinfo",params,port)) != 0 )
|
if ( (jsonstr= komodo_issuemethod(userpass,(char *)"getinfo",params,port)) != 0 )
|
||||||
{
|
{
|
||||||
//printf("(%s)\n",jsonstr);
|
printf("(%s)\n",jsonstr);
|
||||||
if ( (json= cJSON_Parse(jsonstr)) != 0 )
|
if ( (json= cJSON_Parse(jsonstr)) != 0 )
|
||||||
{
|
{
|
||||||
if ( (item= jobj(json,(char *)"result")) != 0 )
|
if ( (item= jobj(json,(char *)"result")) != 0 )
|
||||||
@@ -381,7 +381,7 @@ int32_t notarizedtxid_height(char *dest,char *txidstr,int32_t *kmdnotarized_heig
|
|||||||
sprintf(params,"[\"%s\", 1]",txidstr);
|
sprintf(params,"[\"%s\", 1]",txidstr);
|
||||||
if ( (jsonstr= komodo_issuemethod(userpass,(char *)"getrawtransaction",params,port)) != 0 )
|
if ( (jsonstr= komodo_issuemethod(userpass,(char *)"getrawtransaction",params,port)) != 0 )
|
||||||
{
|
{
|
||||||
//printf("(%s)\n",jsonstr);
|
printf("(%s)\n",jsonstr);
|
||||||
if ( (json= cJSON_Parse(jsonstr)) != 0 )
|
if ( (json= cJSON_Parse(jsonstr)) != 0 )
|
||||||
{
|
{
|
||||||
if ( (item= jobj(json,(char *)"result")) != 0 )
|
if ( (item= jobj(json,(char *)"result")) != 0 )
|
||||||
|
|||||||
Reference in New Issue
Block a user