From 7e18e68a1163698181892445458128e133293f81 Mon Sep 17 00:00:00 2001 From: creating2morrow Date: Sun, 2 Jul 2023 22:09:35 -0400 Subject: [PATCH] generate app .b32.i2p before gpg key batch --- neveko-core/src/monero.rs | 2 +- neveko-core/src/proof.rs | 2 +- neveko-core/src/utils.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/neveko-core/src/monero.rs b/neveko-core/src/monero.rs index bbb8029..8f9a6a6 100644 --- a/neveko-core/src/monero.rs +++ b/neveko-core/src/monero.rs @@ -55,7 +55,7 @@ impl TransactionType { Self::Pool => String::from("pool"), } } - pub fn propogated(tx_type: String) -> bool { + pub fn propagated(tx_type: String) -> bool { tx_type == Self::In.value() || tx_type == Self::Pool.value() } } diff --git a/neveko-core/src/proof.rs b/neveko-core/src/proof.rs index 7d45659..77023ce 100644 --- a/neveko-core/src/proof.rs +++ b/neveko-core/src/proof.rs @@ -256,7 +256,7 @@ async fn validate_proof(txp: &TxProof) -> TxProof { let tx: reqres::XmrRpcGetTxByIdResponse = monero::get_transfer_by_txid(&txp.hash).await; let unlock_time = tx.result.transfer.unlock_time; let tx_type = tx.result.transfer.r#type; - let propgated = monero::TransactionType::propogated(tx_type); + let propgated = monero::TransactionType::propagated(tx_type); if !propgated { return Default::default(); } diff --git a/neveko-core/src/utils.rs b/neveko-core/src/utils.rs index dfcec98..416bdaf 100644 --- a/neveko-core/src/utils.rs +++ b/neveko-core/src/utils.rs @@ -554,11 +554,11 @@ pub async fn start_up() { wallet_password = read_password().unwrap(); std::env::set_var(crate::MONERO_WALLET_PASSWORD, &wallet_password); } - gen_app_gpg().await; let env: String = get_release_env().value(); if !args.i2p_advanced { i2p::start().await; } + gen_app_gpg().await; gen_app_wallet(&wallet_password).await; start_gui(); {