MCPcopy Create free account
hub / github.com/bcndev/bytecoin / prepare_usage

Method prepare_usage

src/Core/Config.cpp:194–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192bool Config::use_multicast() const { return multicast_period != 0 && p2p_bind_ip != "127.0.0.1"; }
193
194std::string Config::prepare_usage(const std::string &usage) {
195 std::string result = usage;
196 boost::replace_all(result, "%appdata%/", platform_DEFAULT_DATA_FOLDER_PATH_PREFIX);
197 boost::replace_all(result, "bytecoin", CRYPTONOTE_NAME);
198 boost::replace_all(result, "blocks.bin", BLOCKS_FILENAME);
199 boost::replace_all(result, "blockindexes.bin", BLOCKINDEXES_FILENAME);
200 boost::replace_all(result, "8080", common::to_string(P2P_DEFAULT_PORT));
201 boost::replace_all(result, "8081", common::to_string(RPC_DEFAULT_PORT));
202 boost::replace_all(result, "8070", common::to_string(WALLET_RPC_DEFAULT_PORT));
203 return result;
204}
205
206std::string Config::get_data_folder(const std::string &subdir) const {
207 std::string folder = data_folder;

Callers

nothing calls this directly

Calls 1

to_stringFunction · 0.50

Tested by

no test coverage detected