diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index f72d281c7..c5254f388 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -33,6 +33,7 @@ #include #include #include +#include #include "include_base_utils.h" using namespace epee; @@ -419,6 +420,20 @@ static void throw_on_rpc_response_error(const boost::optional &stat THROW_WALLET_EXCEPTION_IF(*status != CORE_RPC_STATUS_OK, tools::error::wallet_generic_rpc_error, method, *status); } +std::string strjoin(const std::vector &V, const char *sep) +{ + std::stringstream ss; + bool first = true; + for (const auto &v: V) + { + if (!first) + ss << sep; + ss << std::to_string(v); + first = false; + } + return ss.str(); +} + } //namespace namespace tools @@ -4437,12 +4452,8 @@ std::vector wallet2::create_transactions_2(std::vector