From 36384b00582e426d5aba4cf11d81f77d295b97d0 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 21 Apr 2016 15:06:01 -0500 Subject: [PATCH] test --- iguana/iguana_unspents.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/iguana/iguana_unspents.c b/iguana/iguana_unspents.c index 6d9950665..337394e94 100755 --- a/iguana/iguana_unspents.c +++ b/iguana/iguana_unspents.c @@ -709,8 +709,12 @@ struct iguana_bundle *iguana_externalspent(struct iguana_info *coin,bits256 *pre else { printf("cant find prev_hash.(%s) for bp.[%d]\n",bits256_str(str,prev_hash),spent_hdrsi); - iguana_bundleremove(coin,spent_hdrsi,1); - exit(-1); + if ( spent_hdrsi < coin->current->hdrsi ) + { + iguana_bundleremove(coin,spent_hdrsi,1); + exit(-1); + } + coin->RTdatabad = 1; return(0); } } else printf("external spent unexpected nonz unspentind [%d]\n",spent_hdrsi);