diff options
author | instagibbs <gsanders87@gmail.com> | 2016-10-25 14:27:04 -0400 |
---|---|---|
committer | instagibbs <gsanders87@gmail.com> | 2016-10-26 15:59:33 -0400 |
commit | 169bdabe14ef5988ff92a7370114edc85b070b27 (patch) | |
tree | 1a077ce1f422e2bad2006d282f0ea32f1f918f3f /src/qt | |
parent | f08222e882b18c1f279308636e03beceece2dbf1 (diff) |
Return useful error message on ATMP failure
Diffstat (limited to 'src/qt')
-rw-r--r-- | src/qt/walletmodel.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp index 305cb4fefa..d3dc865684 100644 --- a/src/qt/walletmodel.cpp +++ b/src/qt/walletmodel.cpp @@ -5,6 +5,7 @@ #include "walletmodel.h" #include "addresstablemodel.h" +#include "consensus/validation.h" #include "guiconstants.h" #include "guiutil.h" #include "paymentserver.h" @@ -328,7 +329,8 @@ WalletModel::SendCoinsReturn WalletModel::sendCoins(WalletModelTransaction &tran } CReserveKey *keyChange = transaction.getPossibleKeyChange(); - if(!wallet->CommitTransaction(*newTx, *keyChange, g_connman.get())) + CValidationState state; + if(!wallet->CommitTransaction(*newTx, *keyChange, g_connman.get(), state)) return TransactionCommitFailed; CTransaction* t = (CTransaction*)newTx; |