From a9997c32bc4638713f15148e418217f1e760e824 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 10 Jul 2019 22:49:04 -1100 Subject: [PATCH] Test --- src/cc/CCtx.cpp | 2 -- src/komodo_nSPV_superlite.h | 22 +++++++++++++++++++--- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/src/cc/CCtx.cpp b/src/cc/CCtx.cpp index d1e1217b0..96b22adad 100644 --- a/src/cc/CCtx.cpp +++ b/src/cc/CCtx.cpp @@ -165,8 +165,6 @@ std::string FinalizeCCTx(uint64_t CCmask,struct CCcontract_info *cp,CMutableTran { { char addr[64]; - Getscriptaddress(addr,vintx.vout[0].scriptPubKey); - fprintf(stderr,"vout[%d] %.8f -> %s\n",0,dstr(vintx.vout[0].nValue),addr); Getscriptaddress(addr,vintx.vout[utxovout].scriptPubKey); fprintf(stderr,"vout[%d] %.8f -> %s\n",utxovout,dstr(vintx.vout[utxovout].nValue),addr); } diff --git a/src/komodo_nSPV_superlite.h b/src/komodo_nSPV_superlite.h index d51d0a0ff..188d64c29 100644 --- a/src/komodo_nSPV_superlite.h +++ b/src/komodo_nSPV_superlite.h @@ -66,16 +66,32 @@ struct NSPV_ntzsresp *NSPV_ntzsresp_add(struct NSPV_ntzsresp *ptr) struct NSPV_txproof *NSPV_txproof_find(uint256 txid) { - int32_t i; + int32_t i; struct NSPV_txproof *backup = 0; for (i=0; itxprooflen != 0 ) + { + NSPV_txproof_purge(&NSPV_txproof_cache[i]); + NSPV_txproof_copy(&NSPV_txproof_cache[i],ptr); + return; + } + else if ( NSPV_txproof_cache[i].txprooflen != 0 || ptr->txprooflen == 0 ) + return; + } for (i=0; i