From 7e8340ab1a970a14e180b1fcf420b46a5657b062 Mon Sep 17 00:00:00 2001 From: furszy Date: Mon, 8 Aug 2022 15:18:45 -0300 Subject: wallet: make SelectCoins flow return util::Result --- src/wallet/test/coinselector_tests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wallet/test/coinselector_tests.cpp') diff --git a/src/wallet/test/coinselector_tests.cpp b/src/wallet/test/coinselector_tests.cpp index ce875d5442..fe498e09aa 100644 --- a/src/wallet/test/coinselector_tests.cpp +++ b/src/wallet/test/coinselector_tests.cpp @@ -931,7 +931,7 @@ BOOST_AUTO_TEST_CASE(effective_value_test) BOOST_CHECK_EQUAL(output5.GetEffectiveValue(), nValue); // The effective value should be equal to the absolute value if input_bytes is -1 } -static std::optional select_coins(const CAmount& target, const CoinSelectionParams& cs_params, const CCoinControl& cc, std::function coin_setup, interfaces::Chain* chain, const ArgsManager& args) +static util::Result select_coins(const CAmount& target, const CoinSelectionParams& cs_params, const CCoinControl& cc, std::function coin_setup, interfaces::Chain* chain, const ArgsManager& args) { std::unique_ptr wallet = std::make_unique(chain, "", args, CreateMockWalletDatabase()); wallet->LoadWallet(); -- cgit v1.2.3