mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-10-17 15:21:30 +02:00
sample code cleanup
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user