Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #1626: [GUI][Bug] Notify transaction creation failure reason
05981ea [GUI] Add more explicative message for "Transaction too large" (random-zebra) 93ddc2d [GUI] Notify generic send error only when specific reason is empty (random-zebra) fd96cf7 [GUI][Bug] Connect message signal emitted from wallet model (random-zebra) Pull request description: Triggered by #1619 - first commit fixes a bug where the `WalletModel::message` signal was not connected to pwidget, therefore the message with `strFailReason` -fired by `prepareTransaction`: https://github.com/PIVX-Project/PIVX/blob/f295ee4e4e089f76341a4f93058cfab3e974ccb9/src/qt/walletmodel.cpp#L526-L533 was never displayed, and the user was presented only with the generic "Transaction creation failed!" -fired by `ProcessSendCoinsReturnAndInform`: https://github.com/PIVX-Project/PIVX/blob/f295ee4e4e089f76341a4f93058cfab3e974ccb9/src/qt/pivx/guitransactionsutils.cpp#L74-L79 - second commit addresses the fact that, with the previous commit, the user is now presented with two consecutive dialogs: "Transaction too big" and "Transaction creation failed!", and merges them into one single message (which is already followed by a SnackBar with "Cannot create transaction"). - third commit adds a clearer message when `strFailReason` is "Transaction too big" (which might be frequent e.g. sweeping a big number of masternode rewards or dust outputs). Reviewers are encouraged to offer better wording. Closes #1619 ACKs for top commit: Fuzzbawls: utACK 05981ea furszy: utACK 05981ea Tree-SHA512: a922b5d20451cde8353b610f3c66767d58fee95c64526294050fef57373f5e92d320799bd3bccef781e6b4bddbeeedbe134632c9cd9e7deb53c77258ece9afc9
- Loading branch information