diff --git a/src/main.cpp b/src/main.cpp index f81b04bbc..8f0225f27 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2222,8 +2222,10 @@ bool myGetTransaction(const uint256 &hash, CTransaction &txOut, uint256 &hashBlo memset(&hashBlock,0,sizeof(hashBlock)); if ( KOMODO_NSPV != 0 ) { - int64_t rewardsum = 0; - return(NSPV_gettransaction(1,0,hash,0,txOut,0,0,rewardsum) == 0); + int64_t rewardsum = 0; int32_t retval,vout = 0; + retval = NSPV_gettransaction(1,vout,hash,0,txOut,0,0,rewardsum); + fprintf(stderr,"myGetTransaction retval.%d\n",retval); + return(retval == 0); } // need a GetTransaction without lock so the validation code for assets can run without deadlock {