Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/coincontrol.h
// Copyright (c) 2011-2016 The Bitcoin Core developers | // Copyright (c) 2011-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_WALLET_COINCONTROL_H | #ifndef BITCOIN_WALLET_COINCONTROL_H | ||||
#define BITCOIN_WALLET_COINCONTROL_H | #define BITCOIN_WALLET_COINCONTROL_H | ||||
#include <primitives/transaction.h> | #include <primitives/transaction.h> | ||||
#include <wallet/wallet.h> | #include <wallet/wallet.h> | ||||
#include <boost/optional.hpp> | #include <boost/optional.hpp> | ||||
/** Coin Control Features. */ | /** Coin Control Features. */ | ||||
class CCoinControl { | class CCoinControl { | ||||
public: | public: | ||||
//! Custom change destination, if not set an address is generated | |||||
CTxDestination destChange; | CTxDestination destChange; | ||||
//! Custom change type, ignored if destChange is set, defaults to | //! Override the default change type if set, ignored if destChange is set | ||||
//! g_change_type | boost::optional<OutputType> m_change_type; | ||||
OutputType change_type; | |||||
//! If false, allows unselected inputs, but requires all selected inputs be | //! If false, allows unselected inputs, but requires all selected inputs be | ||||
//! used | //! used | ||||
bool fAllowOtherInputs; | bool fAllowOtherInputs; | ||||
//! Includes watch only addresses which match the ISMINE_WATCH_SOLVABLE | //! Includes watch only addresses which match the ISMINE_WATCH_SOLVABLE | ||||
//! criteria | //! criteria | ||||
bool fAllowWatchOnly; | bool fAllowWatchOnly; | ||||
//! Override automatic min/max checks on fee, m_feerate must be set if true | //! Override automatic min/max checks on fee, m_feerate must be set if true | ||||
bool fOverrideFeeRate; | bool fOverrideFeeRate; | ||||
Show All 32 Lines |