aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2019-10-18 09:37:40 -0400
committerJohn Newbery <john@johnnewbery.com>2019-10-18 09:43:01 -0400
commit9e95931865186d7a9a6dc54b64bd96507e9fea4b (patch)
treec6cf3fe27d4cdd98a358592fb880703605a87cf7 /src/interfaces
parentd1734f9a3b138ab046f38ee44a09bc3847bf938a (diff)
[wallet] Remove `state` argument from CWallet::CommitTransaction
The `state` return argument has not been set since commit 611291c198. Remove it (and the one place that it's used in a calling function).
Diffstat (limited to 'src/interfaces')
-rw-r--r--src/interfaces/wallet.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/interfaces/wallet.cpp b/src/interfaces/wallet.cpp
index 1830de8a27..530f19e2d6 100644
--- a/src/interfaces/wallet.cpp
+++ b/src/interfaces/wallet.cpp
@@ -5,7 +5,6 @@
#include <interfaces/wallet.h>
#include <amount.h>
-#include <consensus/validation.h>
#include <interfaces/chain.h>
#include <interfaces/handler.h>
#include <policy/feerate.h>
@@ -224,8 +223,7 @@ public:
{
auto locked_chain = m_wallet->chain().lock();
LOCK(m_wallet->cs_wallet);
- CValidationState state;
- m_wallet->CommitTransaction(std::move(tx), std::move(value_map), std::move(order_form), state);
+ m_wallet->CommitTransaction(std::move(tx), std::move(value_map), std::move(order_form));
}
bool transactionCanBeAbandoned(const uint256& txid) override { return m_wallet->TransactionCanBeAbandoned(txid); }
bool abandonTransaction(const uint256& txid) override