diff options
| author | Ben Woosley <[email protected]> | 2018-02-06 18:47:51 -0500 |
|---|---|---|
| committer | Ben Woosley <[email protected]> | 2018-02-08 11:02:41 -0500 |
| commit | bb00c95c16f50c5dfab1aa8fbb6c873318a6acc8 (patch) | |
| tree | 690d0a1dda3b3be64c6cb3200df795db58c992b9 /src/wallet/feebumper.cpp | |
| parent | Add test for 'mempool min fee not met' rpc error (diff) | |
| download | discoin-bb00c95c16f50c5dfab1aa8fbb6c873318a6acc8.tar.xz discoin-bb00c95c16f50c5dfab1aa8fbb6c873318a6acc8.zip | |
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/feebumper.cpp')
| -rw-r--r-- | src/wallet/feebumper.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/wallet/feebumper.cpp b/src/wallet/feebumper.cpp index 9bfcab54a..ebf30fe03 100644 --- a/src/wallet/feebumper.cpp +++ b/src/wallet/feebumper.cpp @@ -267,7 +267,7 @@ Result CommitTransaction(CWallet* wallet, const uint256& txid, CMutableTransacti CValidationState state; if (!wallet->CommitTransaction(wtxBumped, reservekey, g_connman.get(), state)) { // NOTE: CommitTransaction never returns false, so this should never happen. - errors.push_back(strprintf("The transaction was rejected: %s", state.GetRejectReason())); + errors.push_back(strprintf("The transaction was rejected: %s", FormatStateMessage(state))); return Result::WALLET_ERROR; } @@ -290,4 +290,3 @@ Result CommitTransaction(CWallet* wallet, const uint256& txid, CMutableTransacti } } // namespace feebumper - |