mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-10-17 15:21:30 +02:00
rename "monero_wallet_core" to "monero_wallet_full"
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#include <stdio.h>
|
||||
#include <iostream>
|
||||
#include "wallet2.h"
|
||||
#include "wallet/monero_wallet_core.h"
|
||||
#include "wallet/monero_wallet_full.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
@@ -21,7 +21,7 @@ int main(int argc, const char* argv[]) {
|
||||
|
||||
// create a wallet from a mnemonic phrase
|
||||
string mnemonic = "hefty value later extra artistic firm radar yodel talent future fungal nutshell because sanity awesome nail unjustly rage unafraid cedar delayed thumbs comb custom sanity";
|
||||
monero_wallet* wallet_restored = monero_wallet_core::create_wallet_from_mnemonic(
|
||||
monero_wallet* wallet_restored = monero_wallet_full::create_wallet_from_mnemonic(
|
||||
"MyWalletRestored", // wallet path and name
|
||||
"supersecretpassword123", // wallet password
|
||||
monero_network_type::STAGENET, // network type
|
||||
@@ -73,7 +73,7 @@ int main(int argc, const char* argv[]) {
|
||||
vector<shared_ptr<monero_output_wallet>> outputs = wallet_restored->get_outputs(output_query);
|
||||
|
||||
// create and sync a new wallet with a random mnemonic phrase
|
||||
monero_wallet* wallet_random = monero_wallet_core::create_wallet_random(
|
||||
monero_wallet* wallet_random = monero_wallet_full::create_wallet_random(
|
||||
"MyWalletRandom", // wallet path and name
|
||||
"supersecretpassword123", // wallet password
|
||||
monero_network_type::STAGENET, // network type
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
#include <stdio.h>
|
||||
#include <iostream>
|
||||
#include "wallet2.h"
|
||||
#include "wallet/monero_wallet_core.h"
|
||||
#include "wallet/monero_wallet_full.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
@@ -29,7 +29,7 @@ int main(int argc, const char* argv[]) {
|
||||
int network_type = 2;
|
||||
|
||||
// load wallet
|
||||
monero_wallet* wallet = monero_wallet_core::open_wallet("../../test_wallets/test_wallet_1", "supersecretpassword123", monero_network_type::STAGENET);
|
||||
monero_wallet* wallet = monero_wallet_full::open_wallet("../../test_wallets/test_wallet_1", "supersecretpassword123", monero_network_type::STAGENET);
|
||||
wallet->set_daemon_connection("http://localhost:38081", "", "");
|
||||
|
||||
// fetch txs
|
||||
|
||||
Reference in New Issue
Block a user