aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.h
diff options
context:
space:
mode:
authorfurszy <matiasfurszyfer@protonmail.com>2022-06-20 11:27:16 -0300
committerfurszy <matiasfurszyfer@protonmail.com>2022-06-20 14:21:57 -0300
commit32e5edc0f454c59c8e0d8d86a9abfa9a3f25ca28 (patch)
tree3f5db4981f470cb626dd49c45f4042f6f41df90f /src/wallet/wallet.h
parenta09033e22c4f072c86a1885dd476f3059e5416d1 (diff)
downloadbitcoin-32e5edc0f454c59c8e0d8d86a9abfa9a3f25ca28.tar.xz
wallet: avoid extra wtx lookup in AddToSpends
This method is only called from AddToWallet and LoadToWallet, places where we already have the wtx.
Diffstat (limited to 'src/wallet/wallet.h')
-rw-r--r--src/wallet/wallet.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h
index a75b6981e1..bf42b3da9e 100644
--- a/src/wallet/wallet.h
+++ b/src/wallet/wallet.h
@@ -262,7 +262,7 @@ private:
typedef std::multimap<COutPoint, uint256> TxSpends;
TxSpends mapTxSpends GUARDED_BY(cs_wallet);
void AddToSpends(const COutPoint& outpoint, const uint256& wtxid, WalletBatch* batch = nullptr) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
- void AddToSpends(const uint256& wtxid, WalletBatch* batch = nullptr) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
+ void AddToSpends(const CWalletTx& wtx, WalletBatch* batch = nullptr) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
/**
* Add a transaction to the wallet, or update it. confirm.block_* should