aboutsummaryrefslogtreecommitdiff
path: root/src/qt/walletmodel.h
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2016-10-30 18:22:22 +0100
committerMarcoFalke <falke.marco@gmail.com>2016-10-30 18:23:37 +0100
commit3333e5a1e582225907b201cca64322d7620fbeec (patch)
tree38815c7743959ac357be455833ecb2de8ae30d16 /src/qt/walletmodel.h
parentd2143dc937e3fc93fd35def25a9c0461f26ccd4f (diff)
[qt] Return useful error message on ATMP failure
Diffstat (limited to 'src/qt/walletmodel.h')
-rw-r--r--src/qt/walletmodel.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/qt/walletmodel.h b/src/qt/walletmodel.h
index 521d845997..6a5670e378 100644
--- a/src/qt/walletmodel.h
+++ b/src/qt/walletmodel.h
@@ -144,9 +144,13 @@ public:
// Return status record for SendCoins, contains error id + information
struct SendCoinsReturn
{
- SendCoinsReturn(StatusCode _status = OK):
- status(_status) {}
+ SendCoinsReturn(StatusCode _status = OK, QString _reasonCommitFailed = "")
+ : status(_status),
+ reasonCommitFailed(_reasonCommitFailed)
+ {
+ }
StatusCode status;
+ QString reasonCommitFailed;
};
// prepare transaction for getting txfee before sending coins