Skip to content

Commit

Permalink
add do_not_relay option to sweep_single/submit_multisig_main commands…
Browse files Browse the repository at this point in the history
… in simplewallet
  • Loading branch information
SNeedlewoods committed Jan 13, 2025
1 parent 2e8a128 commit d7ee3ad
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/simplewallet/simplewallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1632,12 +1632,10 @@ bool simple_wallet::submit_multisig_main(const std::vector<std::string> &args, b
return false;
}

// actually commit the transactions
// actually commit or save the transactions
for (auto &ptx: txs.m_ptx)
{
m_wallet->commit_tx(ptx);
success_msg_writer(true) << tr("Transaction successfully submitted, transaction ") << get_transaction_hash(ptx.tx) << ENDL
<< tr("You can check its status by using the `show_transfers` command.");
commit_or_save(ptx, m_do_not_relay);
}
}
catch (const std::exception &e)
Expand Down Expand Up @@ -7436,7 +7434,6 @@ bool simple_wallet::sweep_single(const std::vector<std::string> &args_)
}

commit_or_save(signed_tx.ptx, m_do_not_relay);
success_msg_writer(true) << tr("Money successfully sent, transaction: ") << get_transaction_hash(ptx_vector[0].tx);
}
catch (const std::exception& e)
{
Expand All @@ -7462,8 +7459,7 @@ bool simple_wallet::sweep_single(const std::vector<std::string> &args_)
}
else
{
m_wallet->commit_tx(ptx_vector[0]);
success_msg_writer(true) << tr("Money successfully sent, transaction: ") << get_transaction_hash(ptx_vector[0].tx);
commit_or_save(ptx_vector[0], m_do_not_relay);
}

}
Expand Down

0 comments on commit d7ee3ad

Please sign in to comment.