Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/coinselection.cpp
// Copyright (c) 2017 The Bitcoin Core developers | // Copyright (c) 2017 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include <wallet/coinselection.h> | #include <wallet/coinselection.h> | ||||
#include <util/moneystr.h> | #include <util/moneystr.h> | ||||
#include <util/system.h> | #include <util/system.h> | ||||
#include <optional> | |||||
// Descending order comparator | // Descending order comparator | ||||
struct { | struct { | ||||
bool operator()(const OutputGroup &a, const OutputGroup &b) const { | bool operator()(const OutputGroup &a, const OutputGroup &b) const { | ||||
return a.effective_value > b.effective_value; | return a.effective_value > b.effective_value; | ||||
} | } | ||||
} descending; | } descending; | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 367 Lines • Show Last 20 Lines |