diff options
author | Ben Woosley <ben.woosley@gmail.com> | 2018-02-06 18:47:51 -0500 |
---|---|---|
committer | Ben Woosley <ben.woosley@gmail.com> | 2018-02-08 11:02:41 -0500 |
commit | bb00c95c16f50c5dfab1aa8fbb6c873318a6acc8 (patch) | |
tree | 690d0a1dda3b3be64c6cb3200df795db58c992b9 /src/wallet/wallet.cpp | |
parent | 8b8a1c4f8b10ce96fe3826ab28b82858d4ef9cf2 (diff) | |
download | bitcoin-bb00c95c16f50c5dfab1aa8fbb6c873318a6acc8.tar.xz |
Consistently use FormatStateMessage in RPC error output
This will include the error code and debug output as well as the reason string.
See #11955 for the motivation.
Diffstat (limited to 'src/wallet/wallet.cpp')
-rw-r--r-- | src/wallet/wallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 1b3a3ee50f..4a022fa562 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -3094,7 +3094,7 @@ bool CWallet::CommitTransaction(CWalletTx& wtxNew, CReserveKey& reservekey, CCon { // Broadcast if (!wtx.AcceptToMemoryPool(maxTxFee, state)) { - LogPrintf("CommitTransaction(): Transaction cannot be broadcast immediately, %s\n", state.GetRejectReason()); + LogPrintf("CommitTransaction(): Transaction cannot be broadcast immediately, %s\n", FormatStateMessage(state)); // TODO: if we expect the failure to be long term or permanent, instead delete wtx from the wallet and return failure. } else { wtx.RelayWalletTransaction(connman); |