diff options
author | furszy <matiasfurszyfer@protonmail.com> | 2022-04-27 11:04:31 -0300 |
---|---|---|
committer | furszy <matiasfurszyfer@protonmail.com> | 2022-06-08 11:22:40 -0300 |
commit | 4b83bf8dbcf6b8b1c1293575391e90ac7e21b0e0 (patch) | |
tree | 4ac5a5f92709ae76159429c885834570527eecb0 /src/wallet/spend.cpp | |
parent | 3d8a2822570e3cf4d1bc4f9d59b5dcb0145920ad (diff) | |
download | bitcoin-4b83bf8dbcf6b8b1c1293575391e90ac7e21b0e0.tar.xz |
wallet: avoid extra IsSpentKey -> GetWalletTx lookups
Diffstat (limited to 'src/wallet/spend.cpp')
-rw-r--r-- | src/wallet/spend.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/spend.cpp b/src/wallet/spend.cpp index d178358048..c598f2c925 100644 --- a/src/wallet/spend.cpp +++ b/src/wallet/spend.cpp @@ -191,7 +191,7 @@ CoinsResult AvailableCoins(const CWallet& wallet, continue; } - if (!allow_used_addresses && wallet.IsSpentKey(wtxid, i)) { + if (!allow_used_addresses && wallet.IsSpentKey(output.scriptPubKey)) { continue; } |