@@ -125,7 +125,7 @@ bool AddWallet(const std::shared_ptr<CWallet>& wallet)
125125 }
126126 wallet->ConnectScriptPubKeyManNotifiers ();
127127 wallet->AutoLockMasternodeCollaterals ();
128- wallet->coinjoin_loader ().AddWallet (* wallet);
128+ wallet->coinjoin_loader ().AddWallet (wallet);
129129 wallet->NotifyCanGetAddressesChanged ();
130130 return true ;
131131}
@@ -1432,46 +1432,46 @@ int CWallet::GetRealOutpointCoinJoinRounds(const COutPoint& outpoint, int nRound
14321432 if (wtx == nullptr || wtx->tx == nullptr ) {
14331433 // no such tx in this wallet
14341434 *nRoundsRef = -1 ;
1435- WalletCJLogPrint ((* this ) , " %s FAILED %-70s %3d\n " , __func__, outpoint.ToStringShort (), -1 );
1435+ WalletCJLogPrint (this , " %s FAILED %-70s %3d\n " , __func__, outpoint.ToStringShort (), -1 );
14361436 return *nRoundsRef;
14371437 }
14381438
14391439 // bounds check
14401440 if (outpoint.n >= wtx->tx ->vout .size ()) {
14411441 // should never actually hit this
14421442 *nRoundsRef = -4 ;
1443- WalletCJLogPrint ((* this ) , " %s FAILED %-70s %3d\n " , __func__, outpoint.ToStringShort (), -4 );
1443+ WalletCJLogPrint (this , " %s FAILED %-70s %3d\n " , __func__, outpoint.ToStringShort (), -4 );
14441444 return *nRoundsRef;
14451445 }
14461446
14471447 auto txOutRef = &wtx->tx ->vout [outpoint.n ];
14481448
14491449 if (CoinJoin::IsCollateralAmount (txOutRef->nValue )) {
14501450 *nRoundsRef = -3 ;
1451- WalletCJLogPrint ((* this ) , " %s UPDATED %-70s %3d\n " , __func__, outpoint.ToStringShort (), *nRoundsRef);
1451+ WalletCJLogPrint (this , " %s UPDATED %-70s %3d\n " , __func__, outpoint.ToStringShort (), *nRoundsRef);
14521452 return *nRoundsRef;
14531453 }
14541454
14551455 // make sure the final output is non-denominate
14561456 if (!CoinJoin::IsDenominatedAmount (txOutRef->nValue )) { // NOT DENOM
14571457 *nRoundsRef = -2 ;
1458- WalletCJLogPrint ((* this ) , " %s UPDATED %-70s %3d\n " , __func__, outpoint.ToStringShort (), *nRoundsRef);
1458+ WalletCJLogPrint (this , " %s UPDATED %-70s %3d\n " , __func__, outpoint.ToStringShort (), *nRoundsRef);
14591459 return *nRoundsRef;
14601460 }
14611461
14621462 for (const auto & out : wtx->tx ->vout ) {
14631463 if (!CoinJoin::IsDenominatedAmount (out.nValue )) {
14641464 // this one is denominated but there is another non-denominated output found in the same tx
14651465 *nRoundsRef = 0 ;
1466- WalletCJLogPrint ((* this ) , " %s UPDATED %-70s %3d\n " , __func__, outpoint.ToStringShort (), *nRoundsRef);
1466+ WalletCJLogPrint (this , " %s UPDATED %-70s %3d\n " , __func__, outpoint.ToStringShort (), *nRoundsRef);
14671467 return *nRoundsRef;
14681468 }
14691469 }
14701470
14711471 // make sure we spent all of it with 0 fee, reset to 0 rounds otherwise
14721472 if (wtx->GetDebit (ISMINE_SPENDABLE) != wtx->GetCredit (ISMINE_SPENDABLE)) {
14731473 *nRoundsRef = 0 ;
1474- WalletCJLogPrint ((* this ) , " %s UPDATED %-70s %3d\n " , __func__, outpoint.ToStringShort (), *nRoundsRef);
1474+ WalletCJLogPrint (this , " %s UPDATED %-70s %3d\n " , __func__, outpoint.ToStringShort (), *nRoundsRef);
14751475 return *nRoundsRef;
14761476 }
14771477
@@ -1491,7 +1491,7 @@ int CWallet::GetRealOutpointCoinJoinRounds(const COutPoint& outpoint, int nRound
14911491 *nRoundsRef = fDenomFound
14921492 ? (nShortest >= nRoundsMax - 1 ? nRoundsMax : nShortest + 1 ) // good, we a +1 to the shortest one but only nRoundsMax rounds max allowed
14931493 : 0 ; // too bad, we are the fist one in that chain
1494- WalletCJLogPrint ((* this ) , " %s UPDATED %-70s %3d\n " , __func__, outpoint.ToStringShort (), *nRoundsRef);
1494+ WalletCJLogPrint (this , " %s UPDATED %-70s %3d\n " , __func__, outpoint.ToStringShort (), *nRoundsRef);
14951495 return *nRoundsRef;
14961496}
14971497
@@ -3253,7 +3253,7 @@ bool CWallet::SelectTxDSInsByDenomination(int nDenom, CAmount nValueMax, std::ve
32533253 CCoinControl coin_control;
32543254 coin_control.nCoinType = CoinType::ONLY_READY_TO_MIX;
32553255 AvailableCoins (vCoins, &coin_control);
3256- WalletCJLogPrint ((* this ) , " CWallet::%s -- vCoins.size(): %d\n " , __func__, vCoins.size ());
3256+ WalletCJLogPrint (this , " CWallet::%s -- vCoins.size(): %d\n " , __func__, vCoins.size ());
32573257
32583258 Shuffle (vCoins.rbegin (), vCoins.rend (), FastRandomContext ());
32593259
@@ -3271,11 +3271,11 @@ bool CWallet::SelectTxDSInsByDenomination(int nDenom, CAmount nValueMax, std::ve
32713271 nValueTotal += nValue;
32723272 vecTxDSInRet.emplace_back (CTxDSIn (txin, scriptPubKey, nRounds));
32733273 setRecentTxIds.emplace (txHash);
3274- WalletCJLogPrint ((* this ) , " CWallet::%s -- hash: %s, nValue: %d.%08d\n " ,
3274+ WalletCJLogPrint (this , " CWallet::%s -- hash: %s, nValue: %d.%08d\n " ,
32753275 __func__, txHash.ToString (), nValue / COIN, nValue % COIN);
32763276 }
32773277
3278- WalletCJLogPrint ((* this ) , " CWallet::%s -- setRecentTxIds.size(): %d\n " , __func__, setRecentTxIds.size ());
3278+ WalletCJLogPrint (this , " CWallet::%s -- setRecentTxIds.size(): %d\n " , __func__, setRecentTxIds.size ());
32793279
32803280 return nValueTotal > 0 ;
32813281}
@@ -4980,7 +4980,7 @@ std::shared_ptr<CWallet> CWallet::Create(interfaces::Chain* chain, interfaces::C
49804980 }
49814981
49824982 if (coinjoin_loader) {
4983- coinjoin_loader->AddWallet (* walletInstance);
4983+ coinjoin_loader->AddWallet (walletInstance);
49844984 }
49854985
49864986 {
0 commit comments