From 688c68527162d4bf242f80e55a880d672816269c Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 3 Jun 2016 15:22:06 -0300 Subject: [PATCH] test --- basilisk/basilisk.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/basilisk/basilisk.c b/basilisk/basilisk.c index fa4e92cae..70b6961d9 100755 --- a/basilisk/basilisk.c +++ b/basilisk/basilisk.c @@ -314,7 +314,6 @@ int32_t basilisk_hashstampsupdate(struct iguana_info *coin,struct basilisk_seque else seq->numstamps++; } seq->longestchain = coin->longestchain; - seq->lastupdate = (uint32_t)time(NULL); return(seq->numstamps); } @@ -1209,13 +1208,17 @@ void basilisks_loop(void *arg) if ( btcd->RELAYNODE != 0 || btcd->VALIDATENODE != 0 ) { if ( (now= (uint32_t)time(NULL)) > btcd->SEQ.BTCD.lastupdate+10 ) + { if ( basilisk_update("BTCD",now) >= 0 ) done &= ~1; + btcd->SEQ.BTCD.lastupdate = (uint32_t)time(NULL); + } } if ( (now= (uint32_t)time(NULL)) > btcd->SEQ.BTC.lastupdate+30 ) { if ( basilisk_update("BTC",now) >= 0 ) done &= ~2; + btcd->SEQ.BTC.lastupdate = (uint32_t)time(NULL); } if ( done != 3 ) {