From 471902406b9dd65ff26f9cbd92f9dd07083f9783 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 27 May 2016 15:04:38 -0500 Subject: [PATCH] test --- basilisk/basilisk.c | 1 + iguana/SuperNET.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/basilisk/basilisk.c b/basilisk/basilisk.c index abe526fdc..6ac2fae98 100755 --- a/basilisk/basilisk.c +++ b/basilisk/basilisk.c @@ -71,6 +71,7 @@ int32_t basilisk_submit(struct supernet_info *myinfo,cJSON *reqjson,int32_t time int32_t i,j,k,l,r2,r,n; struct iguana_peer *addr; struct iguana_info *coin; char *reqstr; cJSON *tmpjson; tmpjson = basilisk_json(myinfo,reqjson,ptr->basilisktag,timeout); reqstr = jprint(tmpjson,1); + printf("basilisk_submit.(%s)\n",reqstr); if ( fanout <= 0 ) fanout = BASILISK_MINFANOUT; else if ( fanout > BASILISK_MAXFANOUT ) diff --git a/iguana/SuperNET.c b/iguana/SuperNET.c index f24c8cff1..059dfd634 100755 --- a/iguana/SuperNET.c +++ b/iguana/SuperNET.c @@ -480,7 +480,7 @@ int32_t iguana_send_supernet(struct iguana_peer *addr,char *jsonstr,int32_t dela iguana_setkeys(myinfo,addr,&privkey,&pubkey,&destpub,&nextprivkey,&nextpubkey,&nextdestpub); if ( juint(json,"plaintext") == 0 && juint(json,"broadcast") == 0 && memcmp(destpub.bytes,GENESIS_PUBKEY.bytes,sizeof(pubkey)) == 0 ) { - printf("reject broadcasting non-plaintext! (%s)\n",jsonstr); //getchar(); + printf("reject broadcasting non-plaintext! (%s) (%d %d %d)\n",jsonstr,juint(json,"plaintext"),juint(json,"broadcast"),memcmp(destpub.bytes,GENESIS_PUBKEY.bytes,sizeof(pubkey))); //getchar(); free_json(json); return(-1); }