diff options
author | John Newbery <john@johnnewbery.com> | 2019-10-18 09:37:40 -0400 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2019-10-18 09:43:01 -0400 |
commit | 9e95931865186d7a9a6dc54b64bd96507e9fea4b (patch) | |
tree | c6cf3fe27d4cdd98a358592fb880703605a87cf7 /src/wallet/test | |
parent | d1734f9a3b138ab046f38ee44a09bc3847bf938a (diff) | |
download | bitcoin-9e95931865186d7a9a6dc54b64bd96507e9fea4b.tar.xz |
[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/wallet/test')
-rw-r--r-- | src/wallet/test/wallet_tests.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/wallet/test/wallet_tests.cpp b/src/wallet/test/wallet_tests.cpp index f31cd1e1b6..a2b2a7b227 100644 --- a/src/wallet/test/wallet_tests.cpp +++ b/src/wallet/test/wallet_tests.cpp @@ -8,7 +8,6 @@ #include <stdint.h> #include <vector> -#include <consensus/validation.h> #include <interfaces/chain.h> #include <policy/policy.h> #include <rpc/server.h> @@ -451,8 +450,7 @@ public: auto locked_chain = m_chain->lock(); BOOST_CHECK(wallet->CreateTransaction(*locked_chain, {recipient}, tx, fee, changePos, error, dummy)); } - CValidationState state; - wallet->CommitTransaction(tx, {}, {}, state); + wallet->CommitTransaction(tx, {}, {}); CMutableTransaction blocktx; { LOCK(wallet->cs_wallet); |