sample code cleanup

This commit is contained in:
woodser
2021-01-04 17:24:28 -05:00
parent dd610d0879
commit 7e59970ade
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -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<monero_tx_wallet> 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;