@@ -2299,7 +2299,7 @@ bool CWalletTx::IsTrusted(interfaces::Chain::Lock& locked_chain) const
2299
2299
return IsTrusted (locked_chain, s);
2300
2300
}
2301
2301
2302
- bool CWalletTx::IsTrusted (interfaces::Chain::Lock& locked_chain, std::set<uint256>& trustedParents ) const
2302
+ bool CWalletTx::IsTrusted (interfaces::Chain::Lock& locked_chain, std::set<uint256>& trusted_parents ) const
2303
2303
{
2304
2304
// Quick answer in most cases
2305
2305
if (!locked_chain.checkFinalTx (*tx)) {
@@ -2329,12 +2329,12 @@ bool CWalletTx::IsTrusted(interfaces::Chain::Lock& locked_chain, std::set<uint25
2329
2329
if (pwallet->IsMine (parentOut) != ISMINE_SPENDABLE)
2330
2330
return false ;
2331
2331
// If we've already trusted this parent, continue
2332
- if (trustedParents .count (parent->GetHash ()))
2332
+ if (trusted_parents .count (parent->GetHash ()))
2333
2333
continue ;
2334
2334
// Recurse to check that the parent is also trusted
2335
- if (!parent->IsTrusted (locked_chain, trustedParents ))
2335
+ if (!parent->IsTrusted (locked_chain, trusted_parents ))
2336
2336
return false ;
2337
- trustedParents .insert (parent->GetHash ());
2337
+ trusted_parents .insert (parent->GetHash ());
2338
2338
}
2339
2339
return true ;
2340
2340
}
@@ -2420,11 +2420,11 @@ CWallet::Balance CWallet::GetBalance(const int min_depth, bool avoid_reuse) cons
2420
2420
{
2421
2421
auto locked_chain = chain ().lock ();
2422
2422
LOCK (cs_wallet);
2423
- std::set<uint256> trustedParents ;
2423
+ std::set<uint256> trusted_parents ;
2424
2424
for (const auto & entry : mapWallet)
2425
2425
{
2426
2426
const CWalletTx& wtx = entry.second ;
2427
- const bool is_trusted{wtx.IsTrusted (*locked_chain, trustedParents )};
2427
+ const bool is_trusted{wtx.IsTrusted (*locked_chain, trusted_parents )};
2428
2428
const int tx_depth{wtx.GetDepthInMainChain (*locked_chain)};
2429
2429
const CAmount tx_credit_mine{wtx.GetAvailableCredit (*locked_chain, /* fUseCache */ true , ISMINE_SPENDABLE | reuse_filter)};
2430
2430
const CAmount tx_credit_watchonly{wtx.GetAvailableCredit (*locked_chain, /* fUseCache */ true , ISMINE_WATCH_ONLY | reuse_filter)};
@@ -2471,7 +2471,7 @@ void CWallet::AvailableCoins(interfaces::Chain::Lock& locked_chain, std::vector<
2471
2471
const int min_depth = {coinControl ? coinControl->m_min_depth : DEFAULT_MIN_DEPTH};
2472
2472
const int max_depth = {coinControl ? coinControl->m_max_depth : DEFAULT_MAX_DEPTH};
2473
2473
2474
- std::set<uint256> trustedParents ;
2474
+ std::set<uint256> trusted_parents ;
2475
2475
for (const auto & entry : mapWallet)
2476
2476
{
2477
2477
const uint256& wtxid = entry.first ;
@@ -2493,7 +2493,7 @@ void CWallet::AvailableCoins(interfaces::Chain::Lock& locked_chain, std::vector<
2493
2493
if (nDepth == 0 && !wtx.InMempool ())
2494
2494
continue ;
2495
2495
2496
- bool safeTx = wtx.IsTrusted (locked_chain, trustedParents );
2496
+ bool safeTx = wtx.IsTrusted (locked_chain, trusted_parents );
2497
2497
2498
2498
// We should not consider coins from transactions that are replacing
2499
2499
// other transactions.
@@ -3778,12 +3778,12 @@ std::map<CTxDestination, CAmount> CWallet::GetAddressBalances(interfaces::Chain:
3778
3778
3779
3779
{
3780
3780
LOCK (cs_wallet);
3781
- std::set<uint256> trustedParents ;
3781
+ std::set<uint256> trusted_parents ;
3782
3782
for (const auto & walletEntry : mapWallet)
3783
3783
{
3784
3784
const CWalletTx& wtx = walletEntry.second ;
3785
3785
3786
- if (!wtx.IsTrusted (locked_chain, trustedParents ))
3786
+ if (!wtx.IsTrusted (locked_chain, trusted_parents ))
3787
3787
continue ;
3788
3788
3789
3789
if (wtx.IsImmatureCoinBase (locked_chain))
0 commit comments