decrease estimated tx propagation time to 5 seconds

This commit is contained in:
creating2morrow 2023-06-22 07:34:04 -04:00
parent f72f54ce04
commit 860d66d215
2 changed files with 3 additions and 3 deletions

View file

@ -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 {

View file

@ -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