mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
replace boost iterators in dash-specific code (#2048)
This commit is contained in:
parent
2583e1963c
commit
8e24b087b4
@ -153,7 +153,7 @@ bool CInstantSend::CreateTxLockCandidate(const CTxLockRequest& txLockRequest)
|
||||
|
||||
CTxLockCandidate txLockCandidate(txLockRequest);
|
||||
// all inputs should already be checked by txLockRequest.IsValid() above, just use them now
|
||||
BOOST_REVERSE_FOREACH(const CTxIn& txin, txLockRequest.tx->vin) {
|
||||
for(const auto& txin : txLockRequest.tx->vin) {
|
||||
txLockCandidate.AddOutPointLock(txin.prevout);
|
||||
}
|
||||
mapTxLockCandidates.insert(std::make_pair(txHash, txLockCandidate));
|
||||
@ -167,7 +167,7 @@ bool CInstantSend::CreateTxLockCandidate(const CTxLockRequest& txLockRequest)
|
||||
LogPrintf("CInstantSend::CreateTxLockCandidate -- update empty, txid=%s\n", txHash.ToString());
|
||||
|
||||
// all inputs should already be checked by txLockRequest.IsValid() above, just use them now
|
||||
BOOST_REVERSE_FOREACH(const CTxIn& txin, txLockRequest.tx->vin) {
|
||||
for(const auto& txin : txLockRequest.tx->vin) {
|
||||
itLockCandidate->second.AddOutPointLock(txin.prevout);
|
||||
}
|
||||
} else {
|
||||
|
@ -469,7 +469,7 @@ void MasternodeList::ShowQRCode(std::string strAlias) {
|
||||
CMasternode mn;
|
||||
bool fFound = false;
|
||||
|
||||
BOOST_FOREACH(CMasternodeConfig::CMasternodeEntry mne, masternodeConfig.getEntries()) {
|
||||
for (const auto& mne : masternodeConfig.getEntries()) {
|
||||
if (strAlias != mne.getAlias()) {
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user