mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
Return useful error message on ATMP failure
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user