From 6da5e47e7da81d77243515e9cb8349443f743237 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 6 Nov 2016 19:53:59 -0300 Subject: [PATCH] test --- iguana/dpow/dpow_rpc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/iguana/dpow/dpow_rpc.c b/iguana/dpow/dpow_rpc.c index 2c4319b12..f9bf2fd6b 100755 --- a/iguana/dpow/dpow_rpc.c +++ b/iguana/dpow/dpow_rpc.c @@ -564,9 +564,11 @@ void dpow_issuer_withdraw(struct dpow_info *dp,char *coinaddr,uint64_t fiatoshis } HASH_FIND(hh,dp->PAX,&txid,sizeof(txid),pax); printf("hashfind.%p PAX.(%p %p)\n",pax,dp->PAX->hh.next,dp->PAX->hh.prev); - while ( (pax= dp->PAX->hh.next) != 0 ) + tmp = 0; + while ( (pax= dp->PAX->hh.next) != 0 && pax != tmp ) { - printf("iter pax.%p\n",pax); + printf("iter pax.%p (%p %p)\n",pax,pax->hh.next,pax->hh.prev); + tmp = pax; pax = pax->hh.next; } }