From e9b6f6ecd1962fbf173ed59647ab6965b024a0d7 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 11 Jul 2016 16:24:43 -0300 Subject: [PATCH] test --- basilisk/basilisk_bitcoin.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/basilisk/basilisk_bitcoin.c b/basilisk/basilisk_bitcoin.c index d695ce860..aec681b9e 100755 --- a/basilisk/basilisk_bitcoin.c +++ b/basilisk/basilisk_bitcoin.c @@ -990,7 +990,7 @@ int32_t basilisk_unspentfind(struct supernet_info *myinfo,struct iguana_info *co for (i=0; inumunspents; i++) { bu = &waddr->unspents[i]; - if ( bu->hdrsi == hdrsi && bu->unspentind == unspentind && bu->value == value ) + if ( bu->status == 0 && bu->hdrsi == hdrsi && bu->unspentind == unspentind && bu->value == value ) { *txidp = bu->txid; *voutp = bu->vout; @@ -1044,7 +1044,9 @@ void basilisk_unspent_update(struct supernet_info *myinfo,struct iguana_info *co already_spent = waddr->unspents[i].spentheight; bu.relaymask = waddr->unspents[i].relaymask; if ( (bu.status= waddr->unspents[i].status) != 0 ) - printf("mempool spend for %s/%d\n",bits256_str(str,bu.txid),bu.vout); + { + //printf("mempool spend for %s/%d\n",bits256_str(str,bu.txid),bu.vout); + } break; } }