mirror of
https://github.com/feather-wallet/feather.git
synced 2025-01-22 02:34:30 +00:00
TxProofDialog: don't allow creating InProofs for out. txs, fix misleading error msg
This commit is contained in:
parent
5f4dc89085
commit
dcb2224537
1 changed files with 9 additions and 4 deletions
|
@ -88,13 +88,13 @@ void TxProofDialog::selectOutProof() {
|
|||
m_mode = Mode::OutProof;
|
||||
this->resetFrames();
|
||||
|
||||
if (m_OutDestinations.empty()) {
|
||||
this->showWarning("This transaction did not spend any outputs owned by this wallet. Creating an OutProof is not possible.");
|
||||
if (m_txKey.isEmpty()) {
|
||||
this->showWarning("No transaction key stored for this transaction. Creating an OutProof is not possible.");
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_txKey.isEmpty()) {
|
||||
this->showWarning("No transaction key stored for this transaction. Creating an OutProof is not possible.");
|
||||
if (m_OutDestinations.empty()) {
|
||||
this->showWarning("This transaction did not send funds to any known addresses. Creating an OutProof is not possible.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -107,6 +107,11 @@ void TxProofDialog::selectInProof() {
|
|||
m_mode = Mode::InProof;
|
||||
this->resetFrames();
|
||||
|
||||
if (m_direction == TransactionInfo::Direction_Out) {
|
||||
this->showWarning("Can't create InProofs for outgoing transactions.");
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_InDestinations.empty()) {
|
||||
this->showWarning("Your wallet did not receive any outputs in this transaction.");
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue