diff --git a/src/wallet/spend.cpp b/src/wallet/spend.cpp index a2ac727d6f9..30edd62a49c 100644 --- a/src/wallet/spend.cpp +++ b/src/wallet/spend.cpp @@ -203,7 +203,7 @@ size_t CoinsResult::Size() const std::vector CoinsResult::All() const { std::vector all; - all.reserve(coins.size()); + all.reserve(Size()); for (const auto& it : coins) { all.insert(all.end(), it.second.begin(), it.second.end()); }