mirror of
https://github.com/dashpay/dash.git
synced 2024-12-28 13:32:47 +01:00
Move the random_shuffle call back into SelectCoinsMinConf() so we can unit test it.
This commit is contained in:
parent
9b0369c773
commit
e333ab56d5
@ -926,6 +926,8 @@ bool CWallet::SelectCoinsMinConf(int64 nTargetValue, int nConfMine, int nConfThe
|
|||||||
vector<pair<int64, pair<const CWalletTx*,unsigned int> > > vValue;
|
vector<pair<int64, pair<const CWalletTx*,unsigned int> > > vValue;
|
||||||
int64 nTotalLower = 0;
|
int64 nTotalLower = 0;
|
||||||
|
|
||||||
|
random_shuffle(vCoins.begin(), vCoins.end(), GetRandInt);
|
||||||
|
|
||||||
BOOST_FOREACH(COutput output, vCoins)
|
BOOST_FOREACH(COutput output, vCoins)
|
||||||
{
|
{
|
||||||
const CWalletTx *pcoin = output.tx;
|
const CWalletTx *pcoin = output.tx;
|
||||||
|
Loading…
Reference in New Issue
Block a user