diff options
| author | Samuel Dobson <[email protected]> | 2019-11-24 18:26:03 +1300 |
|---|---|---|
| committer | Samuel Dobson <[email protected]> | 2019-11-24 18:26:17 +1300 |
| commit | 9cbd87d8ee2910ac55c215451453e5162e1c377a (patch) | |
| tree | b1c112f792be2cdbe72ca6748718d6aa7e9964a1 /src/wallet | |
| parent | Merge #17571: Add libtest_util library to msvc build configuration (diff) | |
| parent | refactor: Nuke coincontrol circular dependency (diff) | |
| download | discoin-9cbd87d8ee2910ac55c215451453e5162e1c377a.tar.xz discoin-9cbd87d8ee2910ac55c215451453e5162e1c377a.zip | |
Merge #17518: refactor, wallet: Nuke coincontrol circular dependency
3ed5e6819a50434449d92cb96b9d8d141e8c7d2b 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 3ed5e6819a50434449d92cb96b9d8d141e8c7d2b
meshcollider:
utACK 3ed5e6819a50434449d92cb96b9d8d141e8c7d2b
Tree-SHA512: 7fbceb74a9cd04157170df158d2deb979cf397df818376b478224d2423f1d8504a8688e3a9b8fc527da73e4a34ab6bc4a98be0cc2937e102a063ab2ac553e86d
Diffstat (limited to 'src/wallet')
| -rw-r--r-- | src/wallet/coincontrol.h | 6 | ||||
| -rw-r--r-- | src/wallet/init.cpp | 2 | ||||
| -rw-r--r-- | src/wallet/wallet.h | 2 |
3 files changed, 7 insertions, 3 deletions
diff --git a/src/wallet/coincontrol.h b/src/wallet/coincontrol.h index fca4b75c4..2893d0ab3 100644 --- a/src/wallet/coincontrol.h +++ b/src/wallet/coincontrol.h @@ -6,14 +6,18 @@ #define BITCOIN_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 { diff --git a/src/wallet/init.cpp b/src/wallet/init.cpp index 8b09dc9ad..dd0d2ffbd 100644 --- a/src/wallet/init.cpp +++ b/src/wallet/init.cpp @@ -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> diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index fce49ec56..51df4a9a8 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -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 |