You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add `regtest` option to `monero_wallet_config`
* Allow mismatched daemon hard fork version for regtest `monero_wallet_full`
* Setup block reorg tolerance for regtest `monero_wallet_full`
Copy file name to clipboardExpand all lines: src/wallet/monero_wallet_full.cpp
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1100,6 +1100,7 @@ namespace monero {
1100
1100
if (config_normalized.m_language.get().empty()) config_normalized.m_language = std::string("English");
1101
1101
if (!monero_utils::is_valid_language(config_normalized.m_language.get())) throwstd::runtime_error("Unknown language: " + config_normalized.m_language.get());
1102
1102
if (config.m_network_type == boost::none) throwstd::runtime_error("Must provide wallet network type");
1103
+
if (config.m_regtest != boost::none && *config.m_regtest == true && *config.m_network_type != monero_network_type::MAINNET) throwstd::runtime_error("Network type must be mainnet when using regtest option");
1103
1104
1104
1105
// create wallet
1105
1106
if (!config_normalized.m_seed.get().empty()) {
@@ -1137,6 +1138,10 @@ namespace monero {
1137
1138
if (http_client_factory == nullptr) wallet->m_w2 = std::unique_ptr<tools::wallet2>(newtools::wallet2(static_cast<cryptonote::network_type>(config.m_network_type.get()), 1, true));
0 commit comments