Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
87d1a237b6
  1. 3
      iguana/SuperNET.c
  2. 2
      iguana/main.c

3
iguana/SuperNET.c

@ -175,8 +175,9 @@ cJSON *SuperNET_bits2json(struct supernet_info *myinfo,bits256 prevpub,uint8_t *
jaddstr(json,"message",hexmsg);
free(hexmsg);
}
printf("bits2json.(%s)\n",jprint(json,0));
return(json);
}
} else printf("cant decode apinum.%d\n",apinum);
return(0);
}

2
iguana/main.c

@ -57,7 +57,7 @@ uint16_t SuperNET_API2num(char *agent,char *method)
{
item = jitem(API_json,i);
if ( strcmp(agent,jstr(item,"agent")) == 0 && strcmp(method,jstr(item,"method")) == 0 )
return((i << 11) | (SUPERNET_APIVERSION & 0x1f));
return((i << 5) | (SUPERNET_APIVERSION & 0x1f));
}
}
return(-1);

Loading…
Cancel
Save