mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 06:58:57 +01:00
Make CoinControl a required argument to CreateTransaction
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include "rpc/server.h"
|
||||
#include "test/test_bitcoin.h"
|
||||
#include "validation.h"
|
||||
#include "wallet/coincontrol.h"
|
||||
#include "wallet/test/wallet_test_fixture.h"
|
||||
|
||||
#include <boost/test/unit_test.hpp>
|
||||
@@ -617,7 +618,8 @@ public:
|
||||
CAmount fee;
|
||||
int changePos = -1;
|
||||
std::string error;
|
||||
BOOST_CHECK(wallet->CreateTransaction({recipient}, wtx, reservekey, fee, changePos, error));
|
||||
CCoinControl dummy;
|
||||
BOOST_CHECK(wallet->CreateTransaction({recipient}, wtx, reservekey, fee, changePos, error, dummy));
|
||||
CValidationState state;
|
||||
BOOST_CHECK(wallet->CommitTransaction(wtx, reservekey, nullptr, state));
|
||||
auto it = wallet->mapWallet.find(wtx.GetHash());
|
||||
|
||||
Reference in New Issue
Block a user