mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-12-02 13:14:06 +01:00
wallet config uses monero_rpc_connection for server model (breaking)
construct monero_rpc_connection with strings instead of boost::optional
This commit is contained in:
@@ -267,9 +267,6 @@ void test_multisig_stress(monero_wallet* funding_wallet, string wallet_name = ""
|
||||
vector<monero_wallet*> participants;
|
||||
try {
|
||||
for (int i = 0; i < N; i++) {
|
||||
monero_wallet_config wallet_config;
|
||||
wallet_config.m_path = wallet_path + string("_") + std::to_string(i);
|
||||
wallet_config.m_server_uri = DAEMON_URI;
|
||||
participants.push_back(monero_wallet_full::open_wallet(wallet_path + string("_") + std::to_string(i), "", NETWORK_TYPE));
|
||||
}
|
||||
for (int i = 0; i < participants.size(); i++) {
|
||||
@@ -282,7 +279,7 @@ void test_multisig_stress(monero_wallet* funding_wallet, string wallet_name = ""
|
||||
monero_wallet_config wallet_config;
|
||||
wallet_config.m_path = wallet_path + string("_") + std::to_string(i);
|
||||
wallet_config.m_network_type = monero_network_type::TESTNET;
|
||||
wallet_config.m_server_uri = DAEMON_URI;
|
||||
wallet_config.m_server = monero_rpc_connection(DAEMON_URI);
|
||||
participants.push_back(monero_wallet_full::create_wallet(wallet_config));
|
||||
}
|
||||
for (int i = 0; i < participants.size(); i++) {
|
||||
|
||||
@@ -26,9 +26,7 @@ int main(int argc, const char* argv[]) {
|
||||
wallet_config.m_path = "MyWalletRestored";
|
||||
wallet_config.m_password = "supersecretpassword123";
|
||||
wallet_config.m_network_type = monero_network_type::STAGENET;
|
||||
wallet_config.m_server_uri = "http://localhost:38081";
|
||||
wallet_config.m_server_username = "superuser";
|
||||
wallet_config.m_server_password = "abctesting123";
|
||||
wallet_config.m_server = monero_rpc_connection("http://localhost:38081", "superuser", "abctesting123");
|
||||
wallet_config.m_restore_height = 380104;
|
||||
wallet_config.m_seed_offset = "";
|
||||
monero_wallet* wallet_restored = monero_wallet_full::create_wallet(wallet_config);
|
||||
@@ -80,9 +78,7 @@ int main(int argc, const char* argv[]) {
|
||||
wallet_config.m_path = "MyWalletRandom";
|
||||
wallet_config.m_password = "supersecretpassword123";
|
||||
wallet_config.m_network_type = monero_network_type::STAGENET;
|
||||
wallet_config.m_server_uri = "http://localhost:38081";
|
||||
wallet_config.m_server_username = "superuser";
|
||||
wallet_config.m_server_password = "abctesting123";
|
||||
wallet_config.m_server = monero_rpc_connection("http://localhost:38081", "superuser", "abctesting123");
|
||||
wallet_config.m_language = "English";
|
||||
monero_wallet* wallet_random = monero_wallet_full::create_wallet(wallet_config);
|
||||
wallet_random->sync();
|
||||
|
||||
Reference in New Issue
Block a user