make collateral inputs from all available inputs but not from mn-like
This commit is contained in:
parent
a07d637a48
commit
287ea11a25
@ -1746,12 +1746,19 @@ bool CDarkSendPool::MakeCollateralAmounts()
|
||||
}
|
||||
|
||||
CCoinControl *coinControl=NULL;
|
||||
// try to use non-denominated and not mn-like funds
|
||||
bool success = pwalletMain->CreateTransaction(vecSend, wtx, reservekey,
|
||||
nFeeRet, strFail, coinControl, ALL_COINS);
|
||||
nFeeRet, strFail, coinControl, ONLY_NONDENOMINATED_NOTMN);
|
||||
if(!success){
|
||||
// if we failed (most likeky not enough funds), try to use denominated instead -
|
||||
// MN-like funds should not be touched in any case and we can't mix denominated without collaterals anyway
|
||||
success = pwalletMain->CreateTransaction(vecSend, wtx, reservekey,
|
||||
nFeeRet, strFail, coinControl, ONLY_DENOMINATED);
|
||||
if(!success){
|
||||
LogPrintf("MakeCollateralAmounts: Error - %s\n", strFail.c_str());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// use the same cachedLastSuccess as for DS mixinx to prevent race
|
||||
if(pwalletMain->CommitTransaction(wtx, reservekey))
|
||||
|
Loading…
Reference in New Issue
Block a user