From d1faf484b10076012c337ef98200064a8fe3a893 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 3 Apr 2016 00:42:14 -0600 Subject: [PATCH] test --- iguana/iguana_bundles.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index 093efaad6..108f9c5b0 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -1114,8 +1114,10 @@ void iguana_bundlestats(struct iguana_info *coin,char *str,int32_t lag) if ( (lag/coin->MAXSTUCKTIME) > coin->stuckiters ) { printf("UNSTICK\n"); + if ( bp->numhashes < bp->n ) + queue_enqueue("hdrsQ",&coin->hdrsQ,queueitem(bits256_str(str,bp->hashes[0])),1); coin->stuckiters = (int32_t)(lag/coin->MAXSTUCKTIME); - //if ( lag > 2*coin->MAXSTUCKTIME ) + if ( coin->stuckiters > 2 ) { while ( (breq= queue_dequeue(&coin->blocksQ,0)) != 0 ) myfree(breq,sizeof(*breq));