aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/spend.h
diff options
context:
space:
mode:
authorfurszy <matiasfurszyfer@protonmail.com>2022-11-22 11:39:35 -0300
committerfurszy <matiasfurszyfer@protonmail.com>2022-11-29 12:30:31 -0300
commitf930aefff9690a1e830d897d0a8c53f4219ae4a8 (patch)
tree623fb71dacc4fb175ba8cd32e8f03e8ca1354696 /src/wallet/spend.h
parent38d06e1561013f4ca845fd5ba6ffcc64de67f9c0 (diff)
downloadbitcoin-f930aefff9690a1e830d897d0a8c53f4219ae4a8.tar.xz
wallet: bugfix, 'CoinsResult::Erase' is erasing only one output of the set
The loop break shouldn't have being there.
Diffstat (limited to 'src/wallet/spend.h')
-rw-r--r--src/wallet/spend.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/spend.h b/src/wallet/spend.h
index ba2c6638c8..df57fc1362 100644
--- a/src/wallet/spend.h
+++ b/src/wallet/spend.h
@@ -47,7 +47,7 @@ struct CoinsResult {
* i.e., methods can work with individual OutputType vectors or on the entire object */
size_t Size() const;
void Clear();
- void Erase(std::set<COutPoint>& preset_coins);
+ void Erase(const std::unordered_set<COutPoint, SaltedOutpointHasher>& coins_to_remove);
void Shuffle(FastRandomContext& rng_fast);
void Add(OutputType type, const COutput& out);