mirror of
https://github.com/creating2morrow/neveko.git
synced 2024-12-22 19:49:24 +00:00
debug invalid password on order wallet
This commit is contained in:
parent
43ab8bbb28
commit
f22af8c947
3 changed files with 5 additions and 7 deletions
|
@ -1390,9 +1390,8 @@ pub fn enable_experimental_multisig(wallet_file: &String) {
|
|||
warn!("Enabling experimental multisig...");
|
||||
let bin_dir = get_monero_location();
|
||||
let user = std::env::var("USER").unwrap_or(utils::empty_string());
|
||||
let file_path = format!("/home/{}/.{}/stagenet/wallet/{}", user, crate::APP_NAME, &wallet_file);
|
||||
let wallet_password =
|
||||
std::env::var(crate::MONERO_WALLET_PASSWORD).unwrap_or(String::from("password"));
|
||||
let file_path = format!("/home/{}/.{}/stagenet/wallet/{}", &user, crate::APP_NAME, &wallet_file);
|
||||
let wallet_password = utils::empty_string();
|
||||
let release_env = utils::get_release_env();
|
||||
let args = if release_env == utils::ReleaseEnvironment::Production {
|
||||
vec![
|
||||
|
@ -1408,7 +1407,7 @@ pub fn enable_experimental_multisig(wallet_file: &String) {
|
|||
"set", "enable-multisig-experimental", "1"
|
||||
]
|
||||
};
|
||||
let mut output = Command::new(format!("{}/monero-wallet-cli", bin_dir))
|
||||
let mut output = Command::new(format!("/home/{}/{}/monero-wallet-cli", &user, bin_dir))
|
||||
.stdin(Stdio::piped())
|
||||
.stdout(Stdio::piped())
|
||||
.args(args)
|
||||
|
|
|
@ -370,7 +370,7 @@ pub async fn transmit_order_request(
|
|||
}
|
||||
|
||||
pub async fn init_mediator_wallet(orid: &String) {
|
||||
let password = std::env::var(crate::MONERO_WALLET_PASSWORD).unwrap_or(utils::empty_string());
|
||||
let password = utils::empty_string();
|
||||
let m_wallet = monero::create_wallet(orid, &password).await;
|
||||
if !m_wallet {
|
||||
log::error!("failed to create mediator wallet");
|
||||
|
|
|
@ -1409,8 +1409,7 @@ fn send_prepare_info_req(
|
|||
utils::search_gui_db(String::from(crate::GUI_JWP_DB_KEY), String::from(&mediator));
|
||||
let v_jwp: String =
|
||||
utils::search_gui_db(String::from(crate::GUI_JWP_DB_KEY), String::from(&vendor));
|
||||
let wallet_password =
|
||||
std::env::var(neveko_core::MONERO_WALLET_PASSWORD).unwrap_or(String::from("password"));
|
||||
let wallet_password = utils::empty_string();
|
||||
monero::create_wallet(&w_orid, &wallet_password).await;
|
||||
let m_wallet = monero::open_wallet(&w_orid, &wallet_password).await;
|
||||
if !m_wallet {
|
||||
|
|
Loading…
Reference in a new issue