From 1c4447716b49ef48c54b335f83e4ad01a87e4b88 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 5 Jul 2019 05:37:47 -1100 Subject: [PATCH] utxovout = mtx.vin[i].prevout.n; --- src/komodo_nSPV_wallet.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/komodo_nSPV_wallet.h b/src/komodo_nSPV_wallet.h index 80b02d619..07e5580fb 100644 --- a/src/komodo_nSPV_wallet.h +++ b/src/komodo_nSPV_wallet.h @@ -188,6 +188,7 @@ std::string NSPV_signtx(CMutableTransaction &mtx,uint64_t txfee,CScript opret,st { if ( NSPV_gettransaction(mtx.vin[i].prevout.hash,used[i].height,vintx) == 0 ) { + utxovout = mtx.vin[i].prevout.n; if ( vintx.vout[utxovout].nValue != used[i].satoshis ) { fprintf(stderr,"vintx mismatch %.8f != %.8f\n",(double)vintx.vout[utxovout].nValue/COIN,(double)used[i].satoshis/COIN);