|
@ -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) |
|
|
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++) |
|
|
for (i=0; i<100; i++) |
|
|
if ( dpow_nanomsg_update(myinfo) <= 0 ) |
|
|
{ |
|
|
|
|
|
if ( (num= dpow_nanomsg_update(myinfo)) <= 0 ) |
|
|
break; |
|
|
break; |
|
|
|
|
|
fprintf(stderr,"%d ",num); |
|
|
|
|
|
} |
|
|
src = iguana_coinfind(dp->symbol); |
|
|
src = iguana_coinfind(dp->symbol); |
|
|
dest = iguana_coinfind(dp->dest); |
|
|
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:""); |
|
|
fprintf(stderr,"i.%d dp.%p dPoWupdate (%s -> %s)\n",i,dp,dp!=0?dp->symbol:"",dp!=0?dp->dest:""); |
|
|