diff --git a/src/komodo_nSPV.h b/src/komodo_nSPV.h index d625d387a..4fb2742a6 100644 --- a/src/komodo_nSPV.h +++ b/src/komodo_nSPV.h @@ -15,7 +15,6 @@ ******************************************************************************/ // todo: -// make sure no files are updated (this is to allow nSPV=1 and later nSPV=0 without affecting database) // pubkeys extract // headers "sync" @@ -23,6 +22,7 @@ // need to validate incoming data and update only if it is valid and more recent // make sure to sanity check all vector lengths on receipt +// make sure no files are updated (this is to allow nSPV=1 and later nSPV=0 without affecting database) #ifndef KOMODO_NSPV_H #define KOMODO_NSPV_H diff --git a/src/komodo_nSPV_wallet.h b/src/komodo_nSPV_wallet.h index e62fa4430..df54fc627 100644 --- a/src/komodo_nSPV_wallet.h +++ b/src/komodo_nSPV_wallet.h @@ -111,11 +111,11 @@ int64_t NSPV_addinputs(struct NSPV_utxoresp *used,CMutableTransaction &mtx,int64 remains -= up->satoshis; utxos[ind] = utxos[--n]; memset(&utxos[n],0,sizeof(utxos[n])); - //fprintf(stderr,"totalinputs %.8f vs total %.8f i.%d vs max.%d\n",(double)totalinputs/COIN,(double)total/COIN,i,maxinputs); + fprintf(stderr,"totalinputs %.8f vs total %.8f i.%d vs max.%d\n",(double)totalinputs/COIN,(double)total/COIN,i,maxinputs); if ( totalinputs >= total || (i+1) >= maxinputs ) break; } - //fprintf(stderr,"totalinputs %.8f vs total %.8f\n",(double)totalinputs/COIN,(double)total/COIN); + fprintf(stderr,"totalinputs %.8f vs total %.8f\n",(double)totalinputs/COIN,(double)total/COIN); if ( totalinputs >= total ) return(totalinputs); return(0);