From 64d5d9b6f8d8bfc9b6b7781860bd2f7d042e247a Mon Sep 17 00:00:00 2001 From: Czarek Nakamoto Date: Sun, 5 Jan 2025 13:56:28 +0100 Subject: enable logging fix build --- impls/monero.rs/example/src/main.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'impls/monero.rs/example/src') diff --git a/impls/monero.rs/example/src/main.rs b/impls/monero.rs/example/src/main.rs index 245013a..dbc309c 100644 --- a/impls/monero.rs/example/src/main.rs +++ b/impls/monero.rs/example/src/main.rs @@ -13,7 +13,7 @@ fn main() -> Result<(), WalletError> { "password".to_string(), "capital chief route liar question fix clutch water outside pave hamster occur always learn license knife".to_string(), NetworkType::Mainnet, - 0, // Restore from the beginning of the blockchain. + 3, // Restore from the beginning of the blockchain. 1, // Default KDF rounds. "".to_string(), // No seed offset. true, // Create a new wallet. @@ -26,11 +26,11 @@ fn main() -> Result<(), WalletError> { // Initialize the wallet. let config = WalletConfig { - daemon_address: "https://monero.stackwallet.com:18081".to_string(), + daemon_address: "xmr-node.cakewallet.com:18081".to_string(), upper_transaction_size_limit: 10000, // TODO: use sane value. daemon_username: "".to_string(), daemon_password: "".to_string(), - use_ssl: true, + use_ssl: false, light_wallet: false, proxy_address: "".to_string(), }; @@ -41,6 +41,7 @@ fn main() -> Result<(), WalletError> { // Refresh the wallet. wallet.refresh()?; + // wallet.refresh_async()?; wallet.throw_if_error()?; // Wait for the refresh to complete. -- cgit v1.2.3