This commit is contained in:
blackjok3r
2018-10-29 12:56:07 +08:00
parent 8b0a16daff
commit da7291922e

View File

@@ -682,10 +682,8 @@ int64_t DicePlanFunds(uint64_t &entropyval,uint256 &entropytxid,uint64_t refsbit
SetCCunspents(unspentOutputs,coinaddr); SetCCunspents(unspentOutputs,coinaddr);
entropyval = 0; entropyval = 0;
int loops = 0; int loops = 0;
if (random) { int startfrom = rand()%((unspentOutputs.size()%2)-1 + 1) + 1;
int startfrom = rand()%((unspentOutputs.size()%2)-1 + 1) + 1; fprintf(stderr, "start from loop: %d\n",startfrom);
fprintf(stderr, "start from loop: %d\n",startfrom);
}
for (std::vector<std::pair<CAddressUnspentKey, CAddressUnspentValue> >::const_iterator it=unspentOutputs.begin(); it!=unspentOutputs.end(); it++) for (std::vector<std::pair<CAddressUnspentKey, CAddressUnspentValue> >::const_iterator it=unspentOutputs.begin(); it!=unspentOutputs.end(); it++)
{ {
loops++; loops++;