From 97f89346cce649a92e5000db01d99156fc18b823 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 6 Aug 2016 14:22:40 -0300 Subject: [PATCH] test --- iguana/iguana_realtime.c | 2 +- iguana/iguana_volatiles.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/iguana/iguana_realtime.c b/iguana/iguana_realtime.c index 84c9ae34f..857008eff 100755 --- a/iguana/iguana_realtime.c +++ b/iguana/iguana_realtime.c @@ -305,7 +305,7 @@ int32_t iguana_realtime_update(struct supernet_info *myinfo,struct iguana_info * else { printf("cant find bundleblock [%d:%d]\n",bp->hdrsi,bundlei); - coin->RTdatabad = 1; + break; } if ( coin->RTdatabad == 0 && block != 0 && (block->height == 0 || bits256_nonz(block->RO.prev_block) != 0) ) { diff --git a/iguana/iguana_volatiles.c b/iguana/iguana_volatiles.c index e553a77f7..f0df0939c 100755 --- a/iguana/iguana_volatiles.c +++ b/iguana/iguana_volatiles.c @@ -91,7 +91,7 @@ struct iguana_utxo iguana_utxofind(struct iguana_info *coin,int16_t spent_hdrsi, ramchain = (bp == coin->current) ? &coin->RTramchain : &bp->ramchain; if ( (rdata= ramchain->H.data) == 0 ) return(utxo); - portable_mutex_lock(&coin->RTmutex); + //portable_mutex_lock(&coin->RTmutex); val = ((uint64_t)spent_hdrsi << 32) | spent_unspentind; if ( spent_unspentind > 0 && spent_unspentind < rdata->numunspents ) { @@ -107,7 +107,7 @@ struct iguana_utxo iguana_utxofind(struct iguana_info *coin,int16_t spent_hdrsi, { printf("iguana_hhutxofind warning: hhutxo.%p spentflag.%d\n",hhutxo,hhutxo->u.spentflag); memset(&utxo,0,sizeof(utxo)); - portable_mutex_unlock(&coin->RTmutex); + //portable_mutex_unlock(&coin->RTmutex); return(utxo); } hhutxo = calloc(1,sizeof(*hhutxo)); @@ -137,7 +137,7 @@ struct iguana_utxo iguana_utxofind(struct iguana_info *coin,int16_t spent_hdrsi, { printf("illegal unspentind.%u vs %u hdrs.%d\n",spent_unspentind,rdata->numunspents,spent_hdrsi); } - portable_mutex_unlock(&coin->RTmutex); + //portable_mutex_unlock(&coin->RTmutex); return(utxo); }