From 860d66d215d8814e4596a409fecd5429bf206095 Mon Sep 17 00:00:00 2001 From: creating2morrow Date: Thu, 22 Jun 2023 07:34:04 -0400 Subject: [PATCH] decrease estimated tx propagation time to 5 seconds --- neveko-gui/src/apps/address_book.rs | 2 +- neveko-gui/src/lib.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/neveko-gui/src/apps/address_book.rs b/neveko-gui/src/apps/address_book.rs index d20a248..596db76 100644 --- a/neveko-gui/src/apps/address_book.rs +++ b/neveko-gui/src/apps/address_book.rs @@ -740,7 +740,7 @@ fn send_payment_req( // if we made it this far we can now request a JWP from our friend // wait a bit for the tx to propogate tokio::time::sleep(std::time::Duration::from_secs( - crate::PROPOGATION_TIME_IN_SECS_EST, + crate::PROPAGATION_TIME_IN_SECS_EST, )) .await; match proof::prove_payment(String::from(&contact), &ftxp).await { diff --git a/neveko-gui/src/lib.rs b/neveko-gui/src/lib.rs index af9d580..cc2067c 100644 --- a/neveko-gui/src/lib.rs +++ b/neveko-gui/src/lib.rs @@ -13,8 +13,8 @@ pub const LOCK_SCREEN_TIMEOUT_SECS: u64 = 60 * 5; pub const CRED_CHECK_INTERVAL: u64 = 5; /// monero estimated block time in seconds pub const BLOCK_TIME_IN_SECS_EST: u64 = 0x78; -/// monero estimated propogation time in seconds -pub const PROPOGATION_TIME_IN_SECS_EST: u64 = 0x1E; +/// monero estimated propagation time in seconds +pub const PROPAGATION_TIME_IN_SECS_EST: u64 = 5; /// time to wait before giving up on adding a contact pub const ADD_CONTACT_TIMEOUT_SECS: u64 = 0x5A; /// time to wait before giving up on neveko core