From c8d5439546557bab9cf866251852590dd17b4a0b Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 27 Dec 2016 18:28:21 +0200 Subject: [PATCH] test --- iguana/iguana_notary.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/iguana/iguana_notary.c b/iguana/iguana_notary.c index b5bbcbe75..e5d117fd0 100755 --- a/iguana/iguana_notary.c +++ b/iguana/iguana_notary.c @@ -142,10 +142,13 @@ void dpow_destupdate(struct supernet_info *myinfo,struct dpow_info *dp,int32_t h void iguana_dPoWupdate(struct supernet_info *myinfo,struct dpow_info *dp) { - int32_t i,height; uint32_t blocktime; bits256 blockhash; struct iguana_info *src,*dest; + int32_t i,height,num; uint32_t blocktime; bits256 blockhash; struct iguana_info *src,*dest; for (i=0; i<100; i++) - if ( dpow_nanomsg_update(myinfo) <= 0 ) + { + if ( (num= dpow_nanomsg_update(myinfo)) <= 0 ) break; + fprintf(stderr,"%d ",num); + } src = iguana_coinfind(dp->symbol); dest = iguana_coinfind(dp->dest); fprintf(stderr,"i.%d dp.%p dPoWupdate (%s -> %s)\n",i,dp,dp!=0?dp->symbol:"",dp!=0?dp->dest:"");