Connect addressutxos to addnormalinputs

This commit is contained in:
jl777
2019-07-10 06:21:04 -11:00
parent b893cd5416
commit 86d6ba3d87
3 changed files with 23 additions and 1 deletions

View File

@@ -525,7 +525,11 @@ int64_t AddNormalinputs(CMutableTransaction &mtx,CPubKey mypk,int64_t total,int3
{
int32_t abovei,belowi,ind,vout,i,n = 0; int64_t sum,threshold,above,below; int64_t remains,nValue,totalinputs = 0; uint256 txid,hashBlock; std::vector<COutput> vecOutputs; CTransaction tx; struct CC_utxo *utxos,*up;
if ( KOMODO_NSPV != 0 )
return(NSPV_AddNormalinputs(mtx,mypk,total,maxinputs,ptr));
{
if ( ptr != 0 )
return(NSPV_AddNormalinputs(mtx,mypk,total,maxinputs,ptr));
else return(0);
}
#ifdef ENABLE_WALLET
assert(pwalletMain != NULL);
const CKeyStore& keystore = *pwalletMain;