From 129e809a03eff0a1b23324f6a35f7a4951d8122c Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 14 Jan 2017 14:22:16 +0200 Subject: [PATCH] test --- iguana/dpow/dpow_network.c | 2 +- iguana/dpow/dpow_rpc.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/iguana/dpow/dpow_network.c b/iguana/dpow/dpow_network.c index c164eadf7..2fcc6ee3a 100755 --- a/iguana/dpow/dpow_network.c +++ b/iguana/dpow/dpow_network.c @@ -442,7 +442,7 @@ char *dex_response(int32_t *broadcastflagp,struct supernet_info *myinfo,struct d else if ( dexreq.func == 'N' ) { uint8_t pubkeys[64][33]; char str[128]; int32_t numnotaries; cJSON *array,*item; - if ( (numnotaries= komodo_notaries("KMD",pubkeys,-1)) > 0 && numnotaries < 64 ) + if ( (numnotaries= komodo_notaries("KMD",pubkeys,-1)) > 0 && numnotaries <= 64 ) { retjson = cJSON_CreateObject(); array = cJSON_CreateArray(); diff --git a/iguana/dpow/dpow_rpc.c b/iguana/dpow/dpow_rpc.c index 5ce751885..2067e8b86 100755 --- a/iguana/dpow/dpow_rpc.c +++ b/iguana/dpow/dpow_rpc.c @@ -61,7 +61,7 @@ int32_t komodo_notaries(char *symbol,uint8_t pubkeys[64][33],int32_t height) { if ( (retjson= cJSON_Parse(retstr)) != 0 ) { -printf("%s\n",retstr); +//printf("%s\n",retstr); if ( (array= jarray(&num,retjson,"notaries")) != 0 ) { if ( num > 64 ) @@ -84,6 +84,7 @@ printf("%s\n",retstr); } } } + printf("komodo_notaries returns.%d\n",num); return(num); }