diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -491,11 +491,6 @@ m_is_cache_empty = true; } - void BindWallet(CWallet *pwalletIn) { - pwallet = pwalletIn; - MarkDirty(); - } - //! filter decides which addresses will count towards the debit Amount GetDebit(const isminefilter &filter) const; Amount GetCredit(const isminefilter &filter) const; diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -882,7 +882,6 @@ mapWallet.emplace(std::piecewise_construct, std::forward_as_tuple(txid), std::forward_as_tuple(this, tx)); CWalletTx &wtx = (*ret.first).second; - wtx.BindWallet(this); bool fInsertedNew = ret.second; bool fUpdated = update_wtx && update_wtx(wtx, fInsertedNew); if (fInsertedNew) { @@ -3429,7 +3428,7 @@ // Notify that old coins are spent. for (const CTxIn &txin : tx->vin) { CWalletTx &coin = mapWallet.at(txin.prevout.GetTxId()); - coin.BindWallet(this); + coin.MarkDirty(); NotifyTransactionChanged(this, coin.GetId(), CT_UPDATED); }