From a8e262b7abcefa917ed75d97ebecced3ce2e01bd Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 6 Nov 2016 18:23:00 -0300 Subject: [PATCH] test --- iguana/dpow/dpow_rpc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/iguana/dpow/dpow_rpc.c b/iguana/dpow/dpow_rpc.c index 922335166..4450de718 100755 --- a/iguana/dpow/dpow_rpc.c +++ b/iguana/dpow/dpow_rpc.c @@ -531,7 +531,7 @@ cJSON *dpow_withdraws_pending(struct dpow_info *dp) HASH_ITER(hh,PAX,pax,tmp); { printf("iter pax.%p\n",pax); - if ( pax->marked == 0 ) + if ( pax != 0 && pax->marked == 0 ) jaddi(retjson,dpow_paxjson(pax)); } pthread_mutex_unlock(&dp->mutex); @@ -570,7 +570,10 @@ void dpow_issuer_withdraw(struct dpow_info *dp,char *coinaddr,uint64_t fiatoshis pax->txid = txid; pax->vout = vout; if ( addflag != 0 ) + { + printf("addflag\n"); HASH_ADD_KEYPTR(hh,PAX,&pax->txid,sizeof(pax->txid),pax); + } pthread_mutex_unlock(&dp->mutex); }