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 <optional.h> | #include <optional.h> | ||||
#include <outputtype.h> | |||||
#include <primitives/transaction.h> | #include <primitives/transaction.h> | ||||
#include <wallet/wallet.h> | #include <script/standard.h> | ||||
const int DEFAULT_MIN_DEPTH = 0; | const int DEFAULT_MIN_DEPTH = 0; | ||||
const int DEFAULT_MAX_DEPTH = 9999999; | const int DEFAULT_MAX_DEPTH = 9999999; | ||||
//! Default for -avoidpartialspends | |||||
static constexpr bool DEFAULT_AVOIDPARTIALSPENDS = false; | |||||
/** Coin Control Features. */ | /** Coin Control Features. */ | ||||
class CCoinControl { | class CCoinControl { | ||||
public: | public: | ||||
CTxDestination destChange; | CTxDestination destChange; | ||||
//! Override the default change type if set, ignored if destChange is set | //! Override the default change type if set, ignored if destChange is set | ||||
Optional<OutputType> m_change_type; | Optional<OutputType> m_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 | ||||
▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines |