diff options
| author | Jonas Schnelli <[email protected]> | 2016-11-01 08:33:14 +0100 |
|---|---|---|
| committer | Jonas Schnelli <[email protected]> | 2016-11-01 08:33:17 +0100 |
| commit | 273bde37d867d1f6ab67e22a65097b7adfc4831a (patch) | |
| tree | 9af34949d97596263c72a2215fb2f36b2aee1e82 /src/qt/walletmodel.cpp | |
| parent | Merge #9041: keypoololdest denote Unix epoch, not GMT (diff) | |
| parent | [qt] Return useful error message on ATMP failure (diff) | |
| download | discoin-273bde37d867d1f6ab67e22a65097b7adfc4831a.tar.xz discoin-273bde37d867d1f6ab67e22a65097b7adfc4831a.zip | |
Merge #9043: [qt] Return useful error message on ATMP failure
3333e5a [qt] Return useful error message on ATMP failure (MarcoFalke)
Diffstat (limited to 'src/qt/walletmodel.cpp')
| -rw-r--r-- | src/qt/walletmodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp index 4bf03f78d..3490d1c1c 100644 --- a/src/qt/walletmodel.cpp +++ b/src/qt/walletmodel.cpp @@ -331,7 +331,7 @@ WalletModel::SendCoinsReturn WalletModel::sendCoins(WalletModelTransaction &tran CReserveKey *keyChange = transaction.getPossibleKeyChange(); CValidationState state; if(!wallet->CommitTransaction(*newTx, *keyChange, g_connman.get(), state)) - return TransactionCommitFailed; + return SendCoinsReturn(TransactionCommitFailed, QString::fromStdString(state.GetRejectReason())); CTransaction* t = (CTransaction*)newTx; CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION); |