diff --git a/iguana/SuperNET.c b/iguana/SuperNET.c index a0e6caea1..59ce5539a 100644 --- a/iguana/SuperNET.c +++ b/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); } diff --git a/iguana/main.c b/iguana/main.c index 10dc80f34..bceca28ec 100644 --- a/iguana/main.c +++ b/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);