generate app .b32.i2p before gpg key batch

This commit is contained in:
creating2morrow 2023-07-02 22:09:35 -04:00
parent 64ac97a8dd
commit 7e18e68a11
3 changed files with 3 additions and 3 deletions

View file

@ -55,7 +55,7 @@ impl TransactionType {
Self::Pool => String::from("pool"), 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() tx_type == Self::In.value() || tx_type == Self::Pool.value()
} }
} }

View file

@ -256,7 +256,7 @@ async fn validate_proof(txp: &TxProof) -> TxProof {
let tx: reqres::XmrRpcGetTxByIdResponse = monero::get_transfer_by_txid(&txp.hash).await; let tx: reqres::XmrRpcGetTxByIdResponse = monero::get_transfer_by_txid(&txp.hash).await;
let unlock_time = tx.result.transfer.unlock_time; let unlock_time = tx.result.transfer.unlock_time;
let tx_type = tx.result.transfer.r#type; let tx_type = tx.result.transfer.r#type;
let propgated = monero::TransactionType::propogated(tx_type); let propgated = monero::TransactionType::propagated(tx_type);
if !propgated { if !propgated {
return Default::default(); return Default::default();
} }

View file

@ -554,11 +554,11 @@ pub async fn start_up() {
wallet_password = read_password().unwrap(); wallet_password = read_password().unwrap();
std::env::set_var(crate::MONERO_WALLET_PASSWORD, &wallet_password); std::env::set_var(crate::MONERO_WALLET_PASSWORD, &wallet_password);
} }
gen_app_gpg().await;
let env: String = get_release_env().value(); let env: String = get_release_env().value();
if !args.i2p_advanced { if !args.i2p_advanced {
i2p::start().await; i2p::start().await;
} }
gen_app_gpg().await;
gen_app_wallet(&wallet_password).await; gen_app_wallet(&wallet_password).await;
start_gui(); start_gui();
{ {