Skip to content

Commit

Permalink
Merge bitcoin#17518: refactor, wallet: Nuke coincontrol circular depe…
Browse files Browse the repository at this point in the history
…ndency

3ed5e68 refactor: Nuke coincontrol circular dependency (Hennadii Stepanov)

Pull request description:

  This PR gets rid of `wallet/coincontrol` -> `wallet/wallet` -> `wallet/coincontrol` circular dependency.

ACKs for top commit:
  Sjors:
    re-ACK 3ed5e68
  meshcollider:
    utACK 3ed5e68

Tree-SHA512: 7fbceb74a9cd04157170df158d2deb979cf397df818376b478224d2423f1d8504a8688e3a9b8fc527da73e4a34ab6bc4a98be0cc2937e102a063ab2ac553e86d
  • Loading branch information
meshcollider authored and sidhujag committed Nov 24, 2019
1 parent e4851a1 commit 0dd0c6e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/qt/sendcoinsdialog.cpp
Expand Up @@ -27,6 +27,7 @@
#include <wallet/coincontrol.h>
#include <wallet/fees.h>
#include <wallet/psbtwallet.h>
#include <wallet/wallet.h>

#include <QFontMetrics>
#include <QScrollBar>
Expand Down
6 changes: 5 additions & 1 deletion src/wallet/coincontrol.h
Expand Up @@ -6,14 +6,18 @@
#define SYSCOIN_WALLET_COINCONTROL_H

#include <optional.h>
#include <outputtype.h>
#include <policy/feerate.h>
#include <policy/fees.h>
#include <primitives/transaction.h>
#include <wallet/wallet.h>
#include <script/standard.h>

const int DEFAULT_MIN_DEPTH = 0;
const int DEFAULT_MAX_DEPTH = 9999999;

//! Default for -avoidpartialspends
static constexpr bool DEFAULT_AVOIDPARTIALSPENDS = false;

/** Coin Control Features. */
class CCoinControl
{
Expand Down
2 changes: 2 additions & 0 deletions src/wallet/init.cpp
Expand Up @@ -8,9 +8,11 @@
#include <net.h>
#include <node/context.h>
#include <outputtype.h>
#include <ui_interface.h>
#include <util/moneystr.h>
#include <util/system.h>
#include <util/translation.h>
#include <wallet/coincontrol.h>
#include <wallet/wallet.h>
#include <walletinitinterface.h>

Expand Down
2 changes: 0 additions & 2 deletions src/wallet/wallet.h
Expand Up @@ -71,8 +71,6 @@ static const CAmount WALLET_INCREMENTAL_RELAY_FEE = 5000;
static const bool DEFAULT_SPEND_ZEROCONF_CHANGE = true;
//! Default for -walletrejectlongchains
static const bool DEFAULT_WALLET_REJECT_LONG_CHAINS = false;
//! Default for -avoidpartialspends
static const bool DEFAULT_AVOIDPARTIALSPENDS = false;
//! -txconfirmtarget default
static const unsigned int DEFAULT_TX_CONFIRM_TARGET = 6;
//! -walletrbf default
Expand Down

0 comments on commit 0dd0c6e

Please sign in to comment.