mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-10-17 23:31:32 +02:00
sample_code.cpp compiles
This commit is contained in:
+11
-11
@@ -22,13 +22,13 @@ 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(
|
||||
"MyWalletRestored", // wallet path and name
|
||||
"supersecretpassword123", // wallet password
|
||||
monero_network_type::STAGENET, // network type
|
||||
mnemonic, // mnemonic phrase
|
||||
monero_rpc_connection("http://localhost:38081"), // daemon connection
|
||||
380104, // restore height
|
||||
"" // seed offset
|
||||
"MyWalletRestored", // wallet path and name
|
||||
"supersecretpassword123", // wallet password
|
||||
monero_network_type::STAGENET, // network type
|
||||
mnemonic, // mnemonic phrase
|
||||
monero_rpc_connection(string("http://localhost:38081")), // daemon connection
|
||||
380104, // restore height
|
||||
"" // seed offset
|
||||
);
|
||||
|
||||
// synchronize the wallet and receive progress notifications
|
||||
@@ -70,10 +70,10 @@ int main(int argc, const char* argv[]) {
|
||||
|
||||
// create and sync a new wallet with a random mnemonic phrase
|
||||
monero_wallet* wallet_random = monero_wallet_core::create_wallet_random(
|
||||
"MyWalletRandom", // wallet path and name
|
||||
"supersecretpassword123", // wallet password
|
||||
monero_network_type::STAGENET, // network type
|
||||
monero_rpc_connection("http://localhost:38081"), // daemon connection
|
||||
"MyWalletRandom", // wallet path and name
|
||||
"supersecretpassword123", // wallet password
|
||||
monero_network_type::STAGENET, // network type
|
||||
monero_rpc_connection(string("http://localhost:38081")), // daemon connection
|
||||
"English"
|
||||
);
|
||||
wallet_random->sync();
|
||||
|
||||
Reference in New Issue
Block a user