577@@ -578,9 +578,9 @@ void WalletModel::getOutputs(const std::vector<COutPoint>& vOutpoints, std::vect
578 for (const COutPoint& outpoint : vOutpoints)
579 {
580 if (!wallet->mapWallet.count(outpoint.hash)) continue;
581- int nDepth = wallet->mapWallet[outpoint.hash].GetDepthInMainChain();
582+ int nDepth = wallet->mapWallet.at(outpoint.hash).GetDepthInMainChain();
583 if (nDepth < 0) continue;
584- COutput out(&wallet->mapWallet[outpoint.hash], outpoint.n, nDepth, true /* spendable */, true /* solvable */, true /* safe */);
585+ COutput out(&wallet->mapWallet.at(outpoint.hash), outpoint.n, nDepth, true /* spendable */, true /* solvable */, true /* safe */);
Another lookup? With the above suggestion it can be avoided.
Another lookup? With the above suggestion it can be avoided.
It looks like this is done in your PR #11039. I’ll review that PR, so this PR can be limited to replacing [] lookups with at() lookups.