diff --git a/basilisk/basilisk.c b/basilisk/basilisk.c index c1dcd4287..e024dfd35 100755 --- a/basilisk/basilisk.c +++ b/basilisk/basilisk.c @@ -931,6 +931,8 @@ void basilisks_loop(void *arg) { dp = &myinfo->DPOWS[counter % myinfo->numdpows]; iguana_dPoWupdate(myinfo,dp); + if ( (counter % myinfo->numdpows) != 0 ) + iguana_dPoWupdate(myinfo,&myinfo->DPOWS[0]); endmilli = startmilli + 200; } } diff --git a/iguana/dpow/dpow_rpc.c b/iguana/dpow/dpow_rpc.c index f63ffed55..8ec84abfb 100755 --- a/iguana/dpow/dpow_rpc.c +++ b/iguana/dpow/dpow_rpc.c @@ -58,7 +58,7 @@ bits256 dpow_getbestblockhash(struct supernet_info *myinfo,struct iguana_info *c memset(blockhash.bytes,0,sizeof(blockhash)); if ( coin->FULLNODE < 0 ) { - if ( coin->lastbesthashtime+20 < time(NULL) && bits256_nonz(coin->lastbesthash) != 0 ) + if ( coin->lastbesthashtime+20 > time(NULL) && bits256_nonz(coin->lastbesthash) != 0 ) return(coin->lastbesthash); if ( (retstr= bitcoind_passthru(coin->symbol,coin->chain->serverport,coin->chain->userpass,"getbestblockhash","")) != 0 ) { diff --git a/iguana/iguana_notary.c b/iguana/iguana_notary.c index 61025ff25..1ab12e2a5 100755 --- a/iguana/iguana_notary.c +++ b/iguana/iguana_notary.c @@ -142,7 +142,7 @@ void iguana_dPoWupdate(struct supernet_info *myinfo,struct dpow_info *dp) dpow_nanomsg_update(myinfo); src = iguana_coinfind(dp->symbol); dest = iguana_coinfind(dp->dest); - fprintf(stderr,"dp.%p dPoWupdate (%s -> %s)\n",dp,dp!=0?dp->symbol:"",dp!=0?dp->dest:""); + //fprintf(stderr,"dp.%p dPoWupdate (%s -> %s)\n",dp,dp!=0?dp->symbol:"",dp!=0?dp->dest:""); if ( src != 0 && dest != 0 ) { dp->numdesttx = sizeof(dp->desttx)/sizeof(*dp->desttx);