refactor: Nuke coincontrol circular dependency
This commit is contained in:
parent
0b79caf658
commit
3ed5e6819a
5 changed files with 8 additions and 4 deletions
|
@ -27,6 +27,7 @@
|
||||||
#include <wallet/coincontrol.h>
|
#include <wallet/coincontrol.h>
|
||||||
#include <wallet/fees.h>
|
#include <wallet/fees.h>
|
||||||
#include <wallet/psbtwallet.h>
|
#include <wallet/psbtwallet.h>
|
||||||
|
#include <wallet/wallet.h>
|
||||||
|
|
||||||
#include <QFontMetrics>
|
#include <QFontMetrics>
|
||||||
#include <QScrollBar>
|
#include <QScrollBar>
|
||||||
|
|
|
@ -6,14 +6,18 @@
|
||||||
#define BITCOIN_WALLET_COINCONTROL_H
|
#define BITCOIN_WALLET_COINCONTROL_H
|
||||||
|
|
||||||
#include <optional.h>
|
#include <optional.h>
|
||||||
|
#include <outputtype.h>
|
||||||
#include <policy/feerate.h>
|
#include <policy/feerate.h>
|
||||||
#include <policy/fees.h>
|
#include <policy/fees.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
|
||||||
{
|
{
|
||||||
|
|
|
@ -8,9 +8,11 @@
|
||||||
#include <net.h>
|
#include <net.h>
|
||||||
#include <node/context.h>
|
#include <node/context.h>
|
||||||
#include <outputtype.h>
|
#include <outputtype.h>
|
||||||
|
#include <ui_interface.h>
|
||||||
#include <util/moneystr.h>
|
#include <util/moneystr.h>
|
||||||
#include <util/system.h>
|
#include <util/system.h>
|
||||||
#include <util/translation.h>
|
#include <util/translation.h>
|
||||||
|
#include <wallet/coincontrol.h>
|
||||||
#include <wallet/wallet.h>
|
#include <wallet/wallet.h>
|
||||||
#include <walletinitinterface.h>
|
#include <walletinitinterface.h>
|
||||||
|
|
||||||
|
|
|
@ -71,8 +71,6 @@ static const CAmount WALLET_INCREMENTAL_RELAY_FEE = 5000;
|
||||||
static const bool DEFAULT_SPEND_ZEROCONF_CHANGE = true;
|
static const bool DEFAULT_SPEND_ZEROCONF_CHANGE = true;
|
||||||
//! Default for -walletrejectlongchains
|
//! Default for -walletrejectlongchains
|
||||||
static const bool DEFAULT_WALLET_REJECT_LONG_CHAINS = false;
|
static const bool DEFAULT_WALLET_REJECT_LONG_CHAINS = false;
|
||||||
//! Default for -avoidpartialspends
|
|
||||||
static const bool DEFAULT_AVOIDPARTIALSPENDS = false;
|
|
||||||
//! -txconfirmtarget default
|
//! -txconfirmtarget default
|
||||||
static const unsigned int DEFAULT_TX_CONFIRM_TARGET = 6;
|
static const unsigned int DEFAULT_TX_CONFIRM_TARGET = 6;
|
||||||
//! -walletrbf default
|
//! -walletrbf default
|
||||||
|
|
|
@ -22,7 +22,6 @@ EXPECTED_CIRCULAR_DEPENDENCIES=(
|
||||||
"qt/sendcoinsdialog -> qt/walletmodel -> qt/sendcoinsdialog"
|
"qt/sendcoinsdialog -> qt/walletmodel -> qt/sendcoinsdialog"
|
||||||
"qt/transactiontablemodel -> qt/walletmodel -> qt/transactiontablemodel"
|
"qt/transactiontablemodel -> qt/walletmodel -> qt/transactiontablemodel"
|
||||||
"txmempool -> validation -> txmempool"
|
"txmempool -> validation -> txmempool"
|
||||||
"wallet/coincontrol -> wallet/wallet -> wallet/coincontrol"
|
|
||||||
"wallet/fees -> wallet/wallet -> wallet/fees"
|
"wallet/fees -> wallet/wallet -> wallet/fees"
|
||||||
"wallet/wallet -> wallet/walletdb -> wallet/wallet"
|
"wallet/wallet -> wallet/walletdb -> wallet/wallet"
|
||||||
"policy/fees -> txmempool -> validation -> policy/fees"
|
"policy/fees -> txmempool -> validation -> policy/fees"
|
||||||
|
|
Loading…
Reference in a new issue