aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/coinselection.h
diff options
context:
space:
mode:
authorRussell Yanofsky <russ@yanofsky.org>2021-11-12 11:13:29 -0500
committerRussell Yanofsky <russ@yanofsky.org>2022-01-06 22:14:16 -0500
commitf7086fd8ff084ab0dd656d75b7485e59263bdfd8 (patch)
tree8d61564498f3015224618b9543ae8e608282f9cb /src/wallet/coinselection.h
parent90fc8b089d591cabff60ee829a33f96c37fd27ba (diff)
downloadbitcoin-f7086fd8ff084ab0dd656d75b7485e59263bdfd8.tar.xz
Add src/wallet/* code to wallet:: namespace
Diffstat (limited to 'src/wallet/coinselection.h')
-rw-r--r--src/wallet/coinselection.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/coinselection.h b/src/wallet/coinselection.h
index a0001351f7..496a026999 100644
--- a/src/wallet/coinselection.h
+++ b/src/wallet/coinselection.h
@@ -12,6 +12,7 @@
#include <optional>
+namespace wallet {
//! target minimum change amount
static constexpr CAmount MIN_CHANGE{COIN / 100};
//! final minimum change amount after paying for fees
@@ -249,5 +250,6 @@ std::optional<SelectionResult> SelectCoinsSRD(const std::vector<OutputGroup>& ut
// Original coin selection algorithm as a fallback
std::optional<SelectionResult> KnapsackSolver(std::vector<OutputGroup>& groups, const CAmount& nTargetValue);
+} // namespace wallet
#endif // BITCOIN_WALLET_COINSELECTION_H