From 0c680e0dbcac3c94d6e6dfde4015e0324f27cd37 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 11 Aug 2019 23:29:46 -1100 Subject: [PATCH] -insync test for getNSPV --- src/komodo_nSPV_fullnode.h | 2 +- src/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/komodo_nSPV_fullnode.h b/src/komodo_nSPV_fullnode.h index 008495188..64e87ea21 100644 --- a/src/komodo_nSPV_fullnode.h +++ b/src/komodo_nSPV_fullnode.h @@ -423,7 +423,7 @@ int32_t NSPV_gettxproof(struct NSPV_txproof *ptr,int32_t vout,uint256 txid,int32 else { ptr->height = height; - if ((pindex= komodo_chainactive(height)) != 0 && komodo_blockload(block,pindex) == 0 ) + if ( (pindex= komodo_chainactive(height)) != 0 && komodo_blockload(block,pindex) == 0 ) { BOOST_FOREACH(const CTransaction&tx, block.vtx) { diff --git a/src/main.cpp b/src/main.cpp index 8c8581b16..700eb6c75 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -7503,7 +7503,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv, } else if (strCommand == "getnSPV") { - if ( KOMODO_NSPV == 0 && KOMODO_INSYNC != 0 ) + if ( KOMODO_NSPV == 0 )//&& KOMODO_INSYNC != 0 ) { std::vector payload; vRecv >> payload;