diff --git a/iguana/SuperNET.c b/iguana/SuperNET.c index eb8a44690..dfd70dfd8 100644 --- a/iguana/SuperNET.c +++ b/iguana/SuperNET.c @@ -239,6 +239,7 @@ int32_t nn_createsocket(struct supernet_info *myinfo,char *endpoint,int32_t bind bits256 SuperNET_OPRETURN(struct supernet_info *myinfo,char *symbol,double fee,uint8_t *buf,int32_t len) { bits256 txid; + memset(&txid,0,sizeof(txid)); printf("send OPRETURN\n"); return(txid); } diff --git a/iguana/iguana_html.c b/iguana/iguana_html.c index 14563319c..31cbeee0f 100755 --- a/iguana/iguana_html.c +++ b/iguana/iguana_html.c @@ -385,6 +385,7 @@ int32_t Supernet_lineparse(char *key,int32_t keymax,char *value,int32_t valuemax while ( (c= src[n]) == '\r' || c == '\n' ) n++; } + printf("key.(%s) value.(%s)\n",key,value); return(n); } @@ -427,19 +428,19 @@ cJSON *SuperNET_urlconv(char *value,int32_t bufsize,char *urlstr) char *SuperNET_rpcparse(struct supernet_info *myinfo,char *retbuf,int32_t bufsize,int32_t *jsonflagp,int32_t *postflagp,char *urlstr,char *remoteaddr) { cJSON *tokens,*argjson,*json = 0; char symbol[16],urlmethod[16],*data,url[1024],*retstr,*token = 0; int32_t i,j,n; - //printf("rpcparse.(%s)\n",urlstr); + printf("rpcparse.(%s)\n",urlstr); for (i=0; i