mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +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);
|
CTxLockCandidate txLockCandidate(txLockRequest);
|
||||||
// all inputs should already be checked by txLockRequest.IsValid() above, just use them now
|
// 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);
|
txLockCandidate.AddOutPointLock(txin.prevout);
|
||||||
}
|
}
|
||||||
mapTxLockCandidates.insert(std::make_pair(txHash, txLockCandidate));
|
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());
|
LogPrintf("CInstantSend::CreateTxLockCandidate -- update empty, txid=%s\n", txHash.ToString());
|
||||||
|
|
||||||
// all inputs should already be checked by txLockRequest.IsValid() above, just use them now
|
// 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);
|
itLockCandidate->second.AddOutPointLock(txin.prevout);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -469,7 +469,7 @@ void MasternodeList::ShowQRCode(std::string strAlias) {
|
|||||||
CMasternode mn;
|
CMasternode mn;
|
||||||
bool fFound = false;
|
bool fFound = false;
|
||||||
|
|
||||||
BOOST_FOREACH(CMasternodeConfig::CMasternodeEntry mne, masternodeConfig.getEntries()) {
|
for (const auto& mne : masternodeConfig.getEntries()) {
|
||||||
if (strAlias != mne.getAlias()) {
|
if (strAlias != mne.getAlias()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user