Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
5b1b1971e4
  1. 4
      iguana/SuperNET_category.c
  2. 1
      iguana/iguana_bitmap.c

4
iguana/SuperNET_category.c

@ -43,7 +43,7 @@ struct category_info *category_find(bits256 categoryhash,bits256 subhash)
return(sub); return(sub);
} }
return(cat); return(cat);
} else printf("category_find.(%s) not found\n",bits256_str(str,categoryhash));//, getchar(); } //else printf("category_find.(%s) not found\n",bits256_str(str,categoryhash));//, getchar();
return(0); return(0);
} }
@ -96,7 +96,7 @@ void category_posthexmsg(struct supernet_info *myinfo,bits256 categoryhash,bits2
char str[65]; printf("POST HEXMSG.(%s) -> %s.%llx len.%d\n",hexmsg,bits256_str(str,categoryhash),(long long)subhash.txid,m->len); char str[65]; printf("POST HEXMSG.(%s) -> %s.%llx len.%d\n",hexmsg,bits256_str(str,categoryhash),(long long)subhash.txid,m->len);
return; return;
} }
char str[65]; printf("no subscription for category.(%s) %llx\n",bits256_str(str,categoryhash),(long long)subhash.txid); // char str[65]; printf("no subscription for category.(%s) %llx\n",bits256_str(str,categoryhash),(long long)subhash.txid);
} }
void *category_sub(struct supernet_info *myinfo,bits256 categoryhash,bits256 subhash) void *category_sub(struct supernet_info *myinfo,bits256 categoryhash,bits256 subhash)

1
iguana/iguana_bitmap.c

@ -1165,6 +1165,7 @@ void iguana_bitmap(char *space,int32_t max,char *name)
STRING_AND_TWOINTS(mouse,change,name,x,y) STRING_AND_TWOINTS(mouse,change,name,x,y)
{ {
printf("(%s) x.%d y.%d\n",name,x,y);
return(clonestr("{\"result\":\"changed\"}")); return(clonestr("{\"result\":\"changed\"}"));
} }

Loading…
Cancel
Save