[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).
This commit is contained in:
John Newbery
2019-10-18 09:37:40 -04:00
parent d1734f9a3b
commit 9e95931865
6 changed files with 8 additions and 24 deletions

View File

@@ -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);