mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-27 05:13:25 +01:00
Merge pull request #2813
29cee4ec
Fix383ff4f689
(Howard Chu)b85e82bf
Fixe89994e98f
(Howard Chu)95e784ad
Fix437421ce42
(Howard Chu)
This commit is contained in:
commit
e35162b366
@ -1270,7 +1270,7 @@ bool simple_wallet::init(const boost::program_options::variables_map& vm)
|
|||||||
{
|
{
|
||||||
m_wallet_file = m_generate_from_spend_key;
|
m_wallet_file = m_generate_from_spend_key;
|
||||||
// parse spend secret key
|
// parse spend secret key
|
||||||
std::string spendkey_string = command_line::input_line("Secret spend key: ");
|
std::string spendkey_string = input_line("Secret spend key: ");
|
||||||
if (std::cin.eof())
|
if (std::cin.eof())
|
||||||
return false;
|
return false;
|
||||||
if (spendkey_string.empty()) {
|
if (spendkey_string.empty()) {
|
||||||
@ -3752,7 +3752,7 @@ bool simple_wallet::get_tx_proof(const std::vector<std::string> &args)
|
|||||||
|
|
||||||
// fetch tx pubkey
|
// fetch tx pubkey
|
||||||
crypto::public_key tx_pub_key = get_tx_pub_key_from_extra(tx);
|
crypto::public_key tx_pub_key = get_tx_pub_key_from_extra(tx);
|
||||||
if (tx_pub_key == null_pkey)
|
if (tx_pub_key == crypto::null_pkey)
|
||||||
{
|
{
|
||||||
fail_msg_writer() << tr("Tx pubkey was not found");
|
fail_msg_writer() << tr("Tx pubkey was not found");
|
||||||
return true;
|
return true;
|
||||||
|
@ -296,7 +296,7 @@ std::unique_ptr<tools::wallet2> generate_from_json(const std::string& json_file,
|
|||||||
// compatibility checks
|
// compatibility checks
|
||||||
if (!field_seed_found && !field_viewkey_found && !field_spendkey_found)
|
if (!field_seed_found && !field_viewkey_found && !field_spendkey_found)
|
||||||
{
|
{
|
||||||
THROW_WALLET_EXCEPTION(tools::wallet2::tr("At least one of Electrum-style word list and private view key and private spend key must be specified"));
|
THROW_WALLET_EXCEPTION(tools::error::wallet_internal_error, tools::wallet2::tr("At least one of Electrum-style word list and private view key and private spend key must be specified"));
|
||||||
}
|
}
|
||||||
if (field_seed_found && (field_viewkey_found || field_spendkey_found))
|
if (field_seed_found && (field_viewkey_found || field_spendkey_found))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user