| 192 | bool Config::use_multicast() const { return multicast_period != 0 && p2p_bind_ip != "127.0.0.1"; } |
| 193 | |
| 194 | std::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 | |
| 206 | std::string Config::get_data_folder(const std::string &subdir) const { |
| 207 | std::string folder = data_folder; |
nothing calls this directly
no test coverage detected