MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / InputAmountsToString

Function InputAmountsToString

src/wallet/test/coinselection_tests.cpp:110–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110static std::string InputAmountsToString(const SelectionResult& selection)
111{
112 return "[" + util::Join(selection.GetInputSet(), " ", [](const auto& input){ return util::ToString(input->txout.nValue);}) + "]";
113}
114
115static void TestBnBSuccess(std::string test_title, std::vector<OutputGroup>& utxo_pool, const CAmount& selection_target, const std::vector<CAmount>& expected_input_amounts, size_t expected_attempts, const CoinSelectionParams& cs_params = default_cs_params, const int custom_spending_vsize = P2WPKH_INPUT_VSIZE, const int max_selection_weight = MAX_STANDARD_TX_WEIGHT)
116{

Callers 1

TestBnBSuccessFunction · 0.85

Calls 2

JoinFunction · 0.85
ToStringFunction · 0.50

Tested by

no test coverage detected