-
Notifications
You must be signed in to change notification settings - Fork 717
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[GUI][Bug] Notify transaction creation failure reason #1626
[GUI][Bug] Notify transaction creation failure reason #1626
Conversation
dffe3b1
to
05981ea
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Concept ACK and code looking good, good fix.
Left a comment for the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK 05981ea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK 05981ea
Triggered by #1619
first commit fixes a bug where the
WalletModel::message
signal was not connected to pwidget, therefore the message withstrFailReason
-fired byprepareTransaction
:PIVX/src/qt/walletmodel.cpp
Lines 526 to 533 in f295ee4
was never displayed, and the user was presented only with the generic "Transaction creation failed!" -fired by
ProcessSendCoinsReturnAndInform
:PIVX/src/qt/pivx/guitransactionsutils.cpp
Lines 74 to 79 in f295ee4
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