diff --git a/README.md b/README.md index 59e1651..08b6cc0 100644 --- a/README.md +++ b/README.md @@ -90,8 +90,8 @@ monero_wallet* wallet_random = monero_wallet_core::create_wallet_random( "English"); wallet_random->sync(); -// continuously synchronize the wallet in the background -wallet_random->start_syncing(); +// synchronize in the background every 5 seconds +wallet_random->start_syncing(5000); // get wallet info string random_mnemonic = wallet_random->get_mnemonic(); @@ -148,7 +148,7 @@ config.m_destinations = destinations; // create the transaction, confirm with the user, and relay to the network shared_ptr created_tx = wallet_restored->create_tx(config); uint64_t fee = created_tx->m_fee.get(); // "Are you sure you want to send ...?" -wallet_restored->relay_tx(*created_tx); // recipient receives notification within 10 seconds +wallet_restored->relay_tx(*created_tx); // recipient receives notification within 5 seconds // save and close the wallets wallet_restored->close(true); diff --git a/test/sample_code.cpp b/test/sample_code.cpp index cce2b3b..03fa8c0 100644 --- a/test/sample_code.cpp +++ b/test/sample_code.cpp @@ -84,8 +84,8 @@ int main(int argc, const char* argv[]) { "English"); wallet_random->sync(); - // continuously synchronize the wallet in the background - wallet_random->start_syncing(); + // synchronize in the background every 5 seconds + wallet_random->start_syncing(5000); // get wallet info string random_mnemonic = wallet_random->get_mnemonic(); @@ -142,7 +142,7 @@ int main(int argc, const char* argv[]) { // create the transaction, confirm with the user, and relay to the network shared_ptr created_tx = wallet_restored->create_tx(config); uint64_t fee = created_tx->m_fee.get(); // "Are you sure you want to send ...?" - wallet_restored->relay_tx(*created_tx); // recipient receives notification within 10 seconds + wallet_restored->relay_tx(*created_tx); // recipient receives notification within 5 seconds // the recipient wallet will be notified if (OUTPUT_RECEIVED) cout << "Sample code completed successfully" << endl;