Skip to content

Commit

Permalink
fix: don't warn "Stake amount will be locked.." for locked_transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
mbg033 committed Feb 22, 2020
1 parent 4e55660 commit ba57412
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/simplewallet/simplewallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5762,14 +5762,17 @@ bool simple_wallet::transfer_main(int transfer_type, const std::vector<std::stri
return false;
}
local_args.pop_back();

std::string accepted = input_line(tr("Stake amount will be locked. If you don't have exact amount for stake transaction, remaining amount also may be locked. Is this okay? (Y/Yes/N/No): "));
if (std::cin.eof())
return true;
if (!command_line::is_yes(accepted))

if (transfer_type == TransferStake)
{
fail_msg_writer() << tr("transaction cancelled.");
return true;
std::string accepted = input_line(tr("Stake amount will be locked. If you don't have exact amount for stake transaction, remaining amount also may be locked. Is this okay? (Y/Yes/N/No): "));
if (std::cin.eof())
return true;
if (!command_line::is_yes(accepted))
{
fail_msg_writer() << tr("transaction cancelled.");
return true;
}
}
}

Expand Down

0 comments on commit ba57412

Please sign in to comment.