diff --git a/src/komodo_nSPV.h b/src/komodo_nSPV.h index a18c0c363..3feeec7d0 100644 --- a/src/komodo_nSPV.h +++ b/src/komodo_nSPV.h @@ -19,7 +19,8 @@ // determine if it makes sense to be scanning mempool for the utxo/spentinfo requests, maybe can add isspent flag to txproof, or just use getspentinfo if broadcast fails -// validate proofs +// pubkeys extract +// headers "sync" // interest calculations are currently just using what is returned, it should calculate it from scratch // need to validate incoming data and update only if it is valid and more recent diff --git a/src/komodo_nSPV_fullnode.h b/src/komodo_nSPV_fullnode.h index d781e4de0..4a506cc3e 100644 --- a/src/komodo_nSPV_fullnode.h +++ b/src/komodo_nSPV_fullnode.h @@ -233,7 +233,7 @@ int32_t NSPV_gettxproof(struct NSPV_txproof *ptr,int32_t vout,uint256 txid,int32 ssMB << mb; std::vector proof(ssMB.begin(), ssMB.end()); ptr->txprooflen = (int32_t)proof.size(); - fprintf(stderr,"%s txproof.(%s)\n",txid.GetHex().c_str(),HexStr(proof).c_str()); + //fprintf(stderr,"%s txproof.(%s)\n",txid.GetHex().c_str(),HexStr(proof).c_str()); if ( ptr->txprooflen > 0 ) { ptr->txproof = (uint8_t *)calloc(1,ptr->txprooflen); diff --git a/src/komodo_nSPV_wallet.h b/src/komodo_nSPV_wallet.h index 99cf14dba..cfecd2a31 100644 --- a/src/komodo_nSPV_wallet.h +++ b/src/komodo_nSPV_wallet.h @@ -94,8 +94,8 @@ int32_t NSPV_gettransaction(int32_t vout,uint256 txid,int32_t height,CTransactio } else retval = -22; } else retval = -1; } - fprintf(stderr,"NSPV_gettransaction retval would have been %d\n",retval); - return(0); + //fprintf(stderr,"NSPV_gettransaction retval would have been %d\n",retval); + return(retval); } int32_t NSPV_vinselect(int32_t *aboveip,int64_t *abovep,int32_t *belowip,int64_t *belowp,struct NSPV_utxoresp utxos[],int32_t numunspents,int64_t value)