[MOVEONLY] consensus: move amount.h into consensus

Move amount.h to consensus/amount.h.
Renames, adds missing and removes uneeded includes.
This commit is contained in:
fanquake 2021-09-11 10:29:00 +08:00
parent 419afa9341
commit d09071da5b
No known key found for this signature in database
GPG Key ID: 2EEB9F5CC09526C1
71 changed files with 71 additions and 51 deletions

View File

@ -498,9 +498,9 @@ crypto_libbitcoin_crypto_shani_a_SOURCES = crypto/sha256_shani.cpp
libbitcoin_consensus_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) libbitcoin_consensus_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES)
libbitcoin_consensus_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS) libbitcoin_consensus_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
libbitcoin_consensus_a_SOURCES = \ libbitcoin_consensus_a_SOURCES = \
amount.h \
arith_uint256.cpp \ arith_uint256.cpp \
arith_uint256.h \ arith_uint256.h \
consensus/amount.h \
consensus/merkle.cpp \ consensus/merkle.cpp \
consensus/merkle.h \ consensus/merkle.h \
consensus/params.h \ consensus/params.h \

View File

@ -8,6 +8,7 @@
#include <clientversion.h> #include <clientversion.h>
#include <coins.h> #include <coins.h>
#include <consensus/amount.h>
#include <consensus/consensus.h> #include <consensus/consensus.h>
#include <core_io.h> #include <core_io.h>
#include <key_io.h> #include <key_io.h>

View File

@ -3,8 +3,8 @@
// 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_AMOUNT_H #ifndef BITCOIN_CONSENSUS_AMOUNT_H
#define BITCOIN_AMOUNT_H #define BITCOIN_CONSENSUS_AMOUNT_H
#include <stdint.h> #include <stdint.h>
@ -25,4 +25,4 @@ static const CAmount COIN = 100000000;
static const CAmount MAX_MONEY = 21000000 * COIN; static const CAmount MAX_MONEY = 21000000 * COIN;
inline bool MoneyRange(const CAmount& nValue) { return (nValue >= 0 && nValue <= MAX_MONEY); } inline bool MoneyRange(const CAmount& nValue) { return (nValue >= 0 && nValue <= MAX_MONEY); }
#endif // BITCOIN_AMOUNT_H #endif // BITCOIN_CONSENSUS_AMOUNT_H

View File

@ -4,6 +4,7 @@
#include <consensus/tx_check.h> #include <consensus/tx_check.h>
#include <consensus/amount.h>
#include <primitives/transaction.h> #include <primitives/transaction.h>
#include <consensus/validation.h> #include <consensus/validation.h>

View File

@ -4,6 +4,7 @@
#include <consensus/tx_verify.h> #include <consensus/tx_verify.h>
#include <consensus/amount.h>
#include <consensus/consensus.h> #include <consensus/consensus.h>
#include <primitives/transaction.h> #include <primitives/transaction.h>
#include <script/interpreter.h> #include <script/interpreter.h>

View File

@ -5,7 +5,7 @@
#ifndef BITCOIN_CONSENSUS_TX_VERIFY_H #ifndef BITCOIN_CONSENSUS_TX_VERIFY_H
#define BITCOIN_CONSENSUS_TX_VERIFY_H #define BITCOIN_CONSENSUS_TX_VERIFY_H
#include <amount.h> #include <consensus/amount.h>
#include <stdint.h> #include <stdint.h>
#include <vector> #include <vector>

View File

@ -5,7 +5,7 @@
#ifndef BITCOIN_CORE_IO_H #ifndef BITCOIN_CORE_IO_H
#define BITCOIN_CORE_IO_H #define BITCOIN_CORE_IO_H
#include <amount.h> #include <consensus/amount.h>
#include <attributes.h> #include <attributes.h>
#include <string> #include <string>

View File

@ -4,6 +4,7 @@
#include <core_io.h> #include <core_io.h>
#include <consensus/amount.h>
#include <consensus/consensus.h> #include <consensus/consensus.h>
#include <consensus/validation.h> #include <consensus/validation.h>
#include <key_io.h> #include <key_io.h>

View File

@ -10,12 +10,12 @@
#include <init.h> #include <init.h>
#include <addrman.h> #include <addrman.h>
#include <amount.h>
#include <banman.h> #include <banman.h>
#include <blockfilter.h> #include <blockfilter.h>
#include <chain.h> #include <chain.h>
#include <chainparams.h> #include <chainparams.h>
#include <compat/sanity.h> #include <compat/sanity.h>
#include <consensus/amount.h>
#include <deploymentstatus.h> #include <deploymentstatus.h>
#include <fs.h> #include <fs.h>
#include <hash.h> #include <hash.h>

View File

@ -5,7 +5,7 @@
#ifndef BITCOIN_INTERFACES_NODE_H #ifndef BITCOIN_INTERFACES_NODE_H
#define BITCOIN_INTERFACES_NODE_H #define BITCOIN_INTERFACES_NODE_H
#include <amount.h> // For CAmount #include <consensus/amount.h>
#include <external_signer.h> #include <external_signer.h>
#include <net.h> // For NodeId #include <net.h> // For NodeId
#include <net_types.h> // For banmap_t #include <net_types.h> // For banmap_t

View File

@ -5,7 +5,7 @@
#ifndef BITCOIN_INTERFACES_WALLET_H #ifndef BITCOIN_INTERFACES_WALLET_H
#define BITCOIN_INTERFACES_WALLET_H #define BITCOIN_INTERFACES_WALLET_H
#include <amount.h> // For CAmount #include <consensus/amount.h>
#include <interfaces/chain.h> // For ChainClient #include <interfaces/chain.h> // For ChainClient
#include <pubkey.h> // For CKeyID and CScriptID (definitions needed in CTxDestination instantiation) #include <pubkey.h> // For CKeyID and CScriptID (definitions needed in CTxDestination instantiation)
#include <script/standard.h> // For CTxDestination #include <script/standard.h> // For CTxDestination

View File

@ -5,10 +5,10 @@
#include <miner.h> #include <miner.h>
#include <amount.h>
#include <chain.h> #include <chain.h>
#include <chainparams.h> #include <chainparams.h>
#include <coins.h> #include <coins.h>
#include <consensus/amount.h>
#include <consensus/consensus.h> #include <consensus/consensus.h>
#include <consensus/merkle.h> #include <consensus/merkle.h>
#include <consensus/tx_verify.h> #include <consensus/tx_verify.h>

View File

@ -7,10 +7,10 @@
#define BITCOIN_NET_H #define BITCOIN_NET_H
#include <addrman.h> #include <addrman.h>
#include <amount.h>
#include <bloom.h> #include <bloom.h>
#include <chainparams.h> #include <chainparams.h>
#include <compat.h> #include <compat.h>
#include <consensus/amount.h>
#include <crypto/siphash.h> #include <crypto/siphash.h>
#include <hash.h> #include <hash.h>
#include <i2p.h> #include <i2p.h>

View File

@ -10,6 +10,7 @@
#include <blockencodings.h> #include <blockencodings.h>
#include <blockfilter.h> #include <blockfilter.h>
#include <chainparams.h> #include <chainparams.h>
#include <consensus/amount.h>
#include <consensus/validation.h> #include <consensus/validation.h>
#include <deploymentstatus.h> #include <deploymentstatus.h>
#include <hash.h> #include <hash.h>

View File

@ -6,9 +6,9 @@
#ifndef BITCOIN_NODE_COINSTATS_H #ifndef BITCOIN_NODE_COINSTATS_H
#define BITCOIN_NODE_COINSTATS_H #define BITCOIN_NODE_COINSTATS_H
#include <amount.h>
#include <chain.h> #include <chain.h>
#include <coins.h> #include <coins.h>
#include <consensus/amount.h>
#include <streams.h> #include <streams.h>
#include <uint256.h> #include <uint256.h>

View File

@ -2,8 +2,8 @@
// 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.
#include <amount.h>
#include <coins.h> #include <coins.h>
#include <consensus/amount.h>
#include <consensus/tx_verify.h> #include <consensus/tx_verify.h>
#include <node/psbt.h> #include <node/psbt.h>
#include <policy/policy.h> #include <policy/policy.h>

View File

@ -6,7 +6,7 @@
#ifndef BITCOIN_POLICY_FEERATE_H #ifndef BITCOIN_POLICY_FEERATE_H
#define BITCOIN_POLICY_FEERATE_H #define BITCOIN_POLICY_FEERATE_H
#include <amount.h> #include <consensus/amount.h>
#include <serialize.h> #include <serialize.h>
#include <string> #include <string>

View File

@ -5,7 +5,7 @@
#ifndef BITCOIN_POLICY_FEES_H #ifndef BITCOIN_POLICY_FEES_H
#define BITCOIN_POLICY_FEES_H #define BITCOIN_POLICY_FEES_H
#include <amount.h> #include <consensus/amount.h>
#include <policy/feerate.h> #include <policy/feerate.h>
#include <uint256.h> #include <uint256.h>
#include <random.h> #include <random.h>

View File

@ -5,6 +5,7 @@
#include <primitives/transaction.h> #include <primitives/transaction.h>
#include <consensus/amount.h>
#include <hash.h> #include <hash.h>
#include <tinyformat.h> #include <tinyformat.h>
#include <util/strencodings.h> #include <util/strencodings.h>

View File

@ -7,7 +7,7 @@
#define BITCOIN_PRIMITIVES_TRANSACTION_H #define BITCOIN_PRIMITIVES_TRANSACTION_H
#include <stdint.h> #include <stdint.h>
#include <amount.h> #include <consensus/amount.h>
#include <script/script.h> #include <script/script.h>
#include <serialize.h> #include <serialize.h>
#include <uint256.h> #include <uint256.h>

View File

@ -5,7 +5,7 @@
#ifndef BITCOIN_QT_BITCOINAMOUNTFIELD_H #ifndef BITCOIN_QT_BITCOINAMOUNTFIELD_H
#define BITCOIN_QT_BITCOINAMOUNTFIELD_H #define BITCOIN_QT_BITCOINAMOUNTFIELD_H
#include <amount.h> #include <consensus/amount.h>
#include <QWidget> #include <QWidget>

View File

@ -12,7 +12,7 @@
#include <qt/guiutil.h> #include <qt/guiutil.h>
#include <qt/optionsdialog.h> #include <qt/optionsdialog.h>
#include <amount.h> #include <consensus/amount.h>
#include <QLabel> #include <QLabel>
#include <QMainWindow> #include <QMainWindow>

View File

@ -4,6 +4,8 @@
#include <qt/bitcoinunits.h> #include <qt/bitcoinunits.h>
#include <consensus/amount.h>
#include <QStringList> #include <QStringList>
#include <cassert> #include <cassert>

View File

@ -5,7 +5,7 @@
#ifndef BITCOIN_QT_BITCOINUNITS_H #ifndef BITCOIN_QT_BITCOINUNITS_H
#define BITCOIN_QT_BITCOINUNITS_H #define BITCOIN_QT_BITCOINUNITS_H
#include <amount.h> #include <consensus/amount.h>
#include <QAbstractListModel> #include <QAbstractListModel>
#include <QString> #include <QString>

View File

@ -5,7 +5,7 @@
#ifndef BITCOIN_QT_COINCONTROLDIALOG_H #ifndef BITCOIN_QT_COINCONTROLDIALOG_H
#define BITCOIN_QT_COINCONTROLDIALOG_H #define BITCOIN_QT_COINCONTROLDIALOG_H
#include <amount.h> #include <consensus/amount.h>
#include <QAbstractButton> #include <QAbstractButton>
#include <QAction> #include <QAction>

View File

@ -5,7 +5,7 @@
#ifndef BITCOIN_QT_GUIUTIL_H #ifndef BITCOIN_QT_GUIUTIL_H
#define BITCOIN_QT_GUIUTIL_H #define BITCOIN_QT_GUIUTIL_H
#include <amount.h> #include <consensus/amount.h>
#include <fs.h> #include <fs.h>
#include <net.h> #include <net.h>
#include <netaddress.h> #include <netaddress.h>

View File

@ -5,7 +5,6 @@
#ifndef BITCOIN_QT_OPTIONSMODEL_H #ifndef BITCOIN_QT_OPTIONSMODEL_H
#define BITCOIN_QT_OPTIONSMODEL_H #define BITCOIN_QT_OPTIONSMODEL_H
#include <amount.h>
#include <cstdint> #include <cstdint>
#include <qt/guiconstants.h> #include <qt/guiconstants.h>

View File

@ -9,7 +9,7 @@
#include <config/bitcoin-config.h> #include <config/bitcoin-config.h>
#endif #endif
#include <amount.h> #include <consensus/amount.h>
#include <serialize.h> #include <serialize.h>
#include <string> #include <string>

View File

@ -5,7 +5,7 @@
#ifndef BITCOIN_QT_TRANSACTIONFILTERPROXY_H #ifndef BITCOIN_QT_TRANSACTIONFILTERPROXY_H
#define BITCOIN_QT_TRANSACTIONFILTERPROXY_H #define BITCOIN_QT_TRANSACTIONFILTERPROXY_H
#include <amount.h> #include <consensus/amount.h>
#include <QDateTime> #include <QDateTime>
#include <QSortFilterProxyModel> #include <QSortFilterProxyModel>

View File

@ -5,7 +5,7 @@
#ifndef BITCOIN_QT_TRANSACTIONRECORD_H #ifndef BITCOIN_QT_TRANSACTIONRECORD_H
#define BITCOIN_QT_TRANSACTIONRECORD_H #define BITCOIN_QT_TRANSACTIONRECORD_H
#include <amount.h> #include <consensus/amount.h>
#include <uint256.h> #include <uint256.h>
#include <QList> #include <QList>

View File

@ -8,7 +8,7 @@
#include <primitives/transaction.h> #include <primitives/transaction.h>
#include <qt/sendcoinsrecipient.h> #include <qt/sendcoinsrecipient.h>
#include <amount.h> #include <consensus/amount.h>
#include <QObject> #include <QObject>

View File

@ -5,7 +5,7 @@
#ifndef BITCOIN_QT_WALLETVIEW_H #ifndef BITCOIN_QT_WALLETVIEW_H
#define BITCOIN_QT_WALLETVIEW_H #define BITCOIN_QT_WALLETVIEW_H
#include <amount.h> #include <consensus/amount.h>
#include <QStackedWidget> #include <QStackedWidget>

View File

@ -5,11 +5,11 @@
#include <rpc/blockchain.h> #include <rpc/blockchain.h>
#include <amount.h>
#include <blockfilter.h> #include <blockfilter.h>
#include <chain.h> #include <chain.h>
#include <chainparams.h> #include <chainparams.h>
#include <coins.h> #include <coins.h>
#include <consensus/amount.h>
#include <consensus/params.h> #include <consensus/params.h>
#include <consensus/validation.h> #include <consensus/validation.h>
#include <core_io.h> #include <core_io.h>

View File

@ -5,7 +5,7 @@
#ifndef BITCOIN_RPC_BLOCKCHAIN_H #ifndef BITCOIN_RPC_BLOCKCHAIN_H
#define BITCOIN_RPC_BLOCKCHAIN_H #define BITCOIN_RPC_BLOCKCHAIN_H
#include <amount.h> #include <consensus/amount.h>
#include <streams.h> #include <streams.h>
#include <sync.h> #include <sync.h>

View File

@ -3,9 +3,9 @@
// 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.
#include <amount.h>
#include <chain.h> #include <chain.h>
#include <chainparams.h> #include <chainparams.h>
#include <consensus/amount.h>
#include <consensus/consensus.h> #include <consensus/consensus.h>
#include <consensus/params.h> #include <consensus/params.h>
#include <consensus/validation.h> #include <consensus/validation.h>

View File

@ -5,6 +5,7 @@
#include <chain.h> #include <chain.h>
#include <coins.h> #include <coins.h>
#include <consensus/amount.h>
#include <consensus/validation.h> #include <consensus/validation.h>
#include <core_io.h> #include <core_io.h>
#include <index/txindex.h> #include <index/txindex.h>

View File

@ -6,6 +6,7 @@
#include <rpc/rawtransaction_util.h> #include <rpc/rawtransaction_util.h>
#include <coins.h> #include <coins.h>
#include <consensus/amount.h>
#include <core_io.h> #include <core_io.h>
#include <key_io.h> #include <key_io.h>
#include <policy/policy.h> #include <policy/policy.h>

View File

@ -6,7 +6,6 @@
#ifndef BITCOIN_RPC_SERVER_H #ifndef BITCOIN_RPC_SERVER_H
#define BITCOIN_RPC_SERVER_H #define BITCOIN_RPC_SERVER_H
#include <amount.h>
#include <rpc/request.h> #include <rpc/request.h>
#include <rpc/util.h> #include <rpc/util.h>

View File

@ -2,6 +2,7 @@
// 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.
#include <consensus/amount.h>
#include <key_io.h> #include <key_io.h>
#include <outputtype.h> #include <outputtype.h>
#include <rpc/util.h> #include <rpc/util.h>

View File

@ -5,6 +5,7 @@
#include <script/sign.h> #include <script/sign.h>
#include <consensus/amount.h>
#include <key.h> #include <key.h>
#include <policy/policy.h> #include <policy/policy.h>
#include <primitives/transaction.h> #include <primitives/transaction.h>

View File

@ -2,7 +2,7 @@
// 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.
#include <amount.h> #include <consensus/amount.h>
#include <policy/feerate.h> #include <policy/feerate.h>
#include <limits> #include <limits>

View File

@ -2,10 +2,10 @@
// 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.
#include <amount.h>
#include <chainparams.h> #include <chainparams.h>
#include <chainparamsbase.h> #include <chainparamsbase.h>
#include <coins.h> #include <coins.h>
#include <consensus/amount.h>
#include <consensus/tx_check.h> #include <consensus/tx_check.h>
#include <consensus/tx_verify.h> #include <consensus/tx_verify.h>
#include <consensus/validation.h> #include <consensus/validation.h>

View File

@ -2,7 +2,7 @@
// 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.
#include <amount.h> #include <consensus/amount.h>
#include <policy/feerate.h> #include <policy/feerate.h>
#include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/FuzzedDataProvider.h>
#include <test/fuzz/fuzz.h> #include <test/fuzz/fuzz.h>

View File

@ -2,7 +2,7 @@
// 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.
#include <amount.h> #include <consensus/amount.h>
#include <policy/fees.h> #include <policy/fees.h>
#include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/FuzzedDataProvider.h>
#include <test/fuzz/fuzz.h> #include <test/fuzz/fuzz.h>

View File

@ -2,9 +2,9 @@
// 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.
#include <amount.h>
#include <arith_uint256.h> #include <arith_uint256.h>
#include <compressor.h> #include <compressor.h>
#include <consensus/amount.h>
#include <consensus/merkle.h> #include <consensus/merkle.h>
#include <core_io.h> #include <core_io.h>
#include <crypto/common.h> #include <crypto/common.h>

View File

@ -2,6 +2,7 @@
// 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.
#include <consensus/amount.h>
#include <pubkey.h> #include <pubkey.h>
#include <script/interpreter.h> #include <script/interpreter.h>
#include <streams.h> #include <streams.h>

View File

@ -2,6 +2,7 @@
// 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.
#include <consensus/amount.h>
#include <pubkey.h> #include <pubkey.h>
#include <test/fuzz/util.h> #include <test/fuzz/util.h>
#include <test/util/script.h> #include <test/util/script.h>

View File

@ -5,12 +5,12 @@
#ifndef BITCOIN_TEST_FUZZ_UTIL_H #ifndef BITCOIN_TEST_FUZZ_UTIL_H
#define BITCOIN_TEST_FUZZ_UTIL_H #define BITCOIN_TEST_FUZZ_UTIL_H
#include <amount.h>
#include <arith_uint256.h> #include <arith_uint256.h>
#include <attributes.h> #include <attributes.h>
#include <chainparamsbase.h> #include <chainparamsbase.h>
#include <coins.h> #include <coins.h>
#include <compat.h> #include <compat.h>
#include <consensus/amount.h>
#include <consensus/consensus.h> #include <consensus/consensus.h>
#include <merkleblock.h> #include <merkleblock.h>
#include <net.h> #include <net.h>

View File

@ -2,7 +2,7 @@
// 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.
#include <amount.h> #include <consensus/amount.h>
#include <policy/fees.h> #include <policy/fees.h>
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>

View File

@ -8,6 +8,7 @@
#include <checkqueue.h> #include <checkqueue.h>
#include <clientversion.h> #include <clientversion.h>
#include <consensus/amount.h>
#include <consensus/tx_check.h> #include <consensus/tx_check.h>
#include <consensus/validation.h> #include <consensus/validation.h>
#include <core_io.h> #include <core_io.h>

View File

@ -3,6 +3,7 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <chainparams.h> #include <chainparams.h>
#include <consensus/amount.h>
#include <net.h> #include <net.h>
#include <signet.h> #include <signet.h>
#include <uint256.h> #include <uint256.h>

View File

@ -14,8 +14,8 @@
#include <utility> #include <utility>
#include <vector> #include <vector>
#include <amount.h>
#include <coins.h> #include <coins.h>
#include <consensus/amount.h>
#include <indirectmap.h> #include <indirectmap.h>
#include <policy/feerate.h> #include <policy/feerate.h>
#include <policy/packages.h> #include <policy/packages.h>

View File

@ -5,7 +5,7 @@
#include <util/moneystr.h> #include <util/moneystr.h>
#include <amount.h> #include <consensus/amount.h>
#include <tinyformat.h> #include <tinyformat.h>
#include <util/strencodings.h> #include <util/strencodings.h>
#include <util/string.h> #include <util/string.h>

View File

@ -9,8 +9,8 @@
#ifndef BITCOIN_UTIL_MONEYSTR_H #ifndef BITCOIN_UTIL_MONEYSTR_H
#define BITCOIN_UTIL_MONEYSTR_H #define BITCOIN_UTIL_MONEYSTR_H
#include <amount.h>
#include <attributes.h> #include <attributes.h>
#include <consensus/amount.h>
#include <optional> #include <optional>
#include <string> #include <string>

View File

@ -9,6 +9,7 @@
#include <chain.h> #include <chain.h>
#include <chainparams.h> #include <chainparams.h>
#include <checkqueue.h> #include <checkqueue.h>
#include <consensus/amount.h>
#include <consensus/consensus.h> #include <consensus/consensus.h>
#include <consensus/merkle.h> #include <consensus/merkle.h>
#include <consensus/tx_check.h> #include <consensus/tx_check.h>

View File

@ -10,10 +10,10 @@
#include <config/bitcoin-config.h> #include <config/bitcoin-config.h>
#endif #endif
#include <amount.h>
#include <arith_uint256.h> #include <arith_uint256.h>
#include <attributes.h> #include <attributes.h>
#include <chain.h> #include <chain.h>
#include <consensus/amount.h>
#include <fs.h> #include <fs.h>
#include <policy/feerate.h> #include <policy/feerate.h>
#include <policy/packages.h> #include <policy/packages.h>

View File

@ -4,6 +4,7 @@
#include <wallet/coinselection.h> #include <wallet/coinselection.h>
#include <consensus/amount.h>
#include <policy/feerate.h> #include <policy/feerate.h>
#include <util/check.h> #include <util/check.h>
#include <util/system.h> #include <util/system.h>

View File

@ -5,7 +5,7 @@
#ifndef BITCOIN_WALLET_COINSELECTION_H #ifndef BITCOIN_WALLET_COINSELECTION_H
#define BITCOIN_WALLET_COINSELECTION_H #define BITCOIN_WALLET_COINSELECTION_H
#include <amount.h> #include <consensus/amount.h>
#include <policy/feerate.h> #include <policy/feerate.h>
#include <primitives/transaction.h> #include <primitives/transaction.h>
#include <random.h> #include <random.h>

View File

@ -6,7 +6,7 @@
#ifndef BITCOIN_WALLET_FEES_H #ifndef BITCOIN_WALLET_FEES_H
#define BITCOIN_WALLET_FEES_H #define BITCOIN_WALLET_FEES_H
#include <amount.h> #include <consensus/amount.h>
class CCoinControl; class CCoinControl;
class CFeeRate; class CFeeRate;

View File

@ -4,7 +4,7 @@
#include <interfaces/wallet.h> #include <interfaces/wallet.h>
#include <amount.h> #include <consensus/amount.h>
#include <interfaces/chain.h> #include <interfaces/chain.h>
#include <interfaces/handler.h> #include <interfaces/handler.h>
#include <policy/fees.h> #include <policy/fees.h>

View File

@ -2,6 +2,7 @@
// 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.
#include <consensus/amount.h>
#include <consensus/consensus.h> #include <consensus/consensus.h>
#include <wallet/receive.h> #include <wallet/receive.h>
#include <wallet/transaction.h> #include <wallet/transaction.h>

View File

@ -5,7 +5,7 @@
#ifndef BITCOIN_WALLET_RECEIVE_H #ifndef BITCOIN_WALLET_RECEIVE_H
#define BITCOIN_WALLET_RECEIVE_H #define BITCOIN_WALLET_RECEIVE_H
#include <amount.h> #include <consensus/amount.h>
#include <wallet/ismine.h> #include <wallet/ismine.h>
#include <wallet/transaction.h> #include <wallet/transaction.h>
#include <wallet/wallet.h> #include <wallet/wallet.h>

View File

@ -3,7 +3,7 @@
// 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.
#include <amount.h> #include <consensus/amount.h>
#include <core_io.h> #include <core_io.h>
#include <interfaces/chain.h> #include <interfaces/chain.h>
#include <key_io.h> #include <key_io.h>

View File

@ -2,6 +2,7 @@
// 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.
#include <consensus/amount.h>
#include <consensus/validation.h> #include <consensus/validation.h>
#include <interfaces/chain.h> #include <interfaces/chain.h>
#include <policy/policy.h> #include <policy/policy.h>

View File

@ -5,6 +5,7 @@
#ifndef BITCOIN_WALLET_SPEND_H #ifndef BITCOIN_WALLET_SPEND_H
#define BITCOIN_WALLET_SPEND_H #define BITCOIN_WALLET_SPEND_H
#include <consensus/amount.h>
#include <wallet/coinselection.h> #include <wallet/coinselection.h>
#include <wallet/transaction.h> #include <wallet/transaction.h>
#include <wallet/wallet.h> #include <wallet/wallet.h>

View File

@ -2,7 +2,7 @@
// 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.
#include <amount.h> #include <consensus/amount.h>
#include <node/context.h> #include <node/context.h>
#include <primitives/transaction.h> #include <primitives/transaction.h>
#include <random.h> #include <random.h>

View File

@ -2,6 +2,7 @@
// 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.
#include <consensus/amount.h>
#include <policy/fees.h> #include <policy/fees.h>
#include <validation.h> #include <validation.h>
#include <wallet/coincontrol.h> #include <wallet/coincontrol.h>

View File

@ -5,7 +5,7 @@
#ifndef BITCOIN_WALLET_TRANSACTION_H #ifndef BITCOIN_WALLET_TRANSACTION_H
#define BITCOIN_WALLET_TRANSACTION_H #define BITCOIN_WALLET_TRANSACTION_H
#include <amount.h> #include <consensus/amount.h>
#include <primitives/transaction.h> #include <primitives/transaction.h>
#include <serialize.h> #include <serialize.h>
#include <wallet/ismine.h> #include <wallet/ismine.h>

View File

@ -6,6 +6,7 @@
#include <wallet/wallet.h> #include <wallet/wallet.h>
#include <chain.h> #include <chain.h>
#include <consensus/amount.h>
#include <consensus/consensus.h> #include <consensus/consensus.h>
#include <consensus/validation.h> #include <consensus/validation.h>
#include <external_signer.h> #include <external_signer.h>

View File

@ -6,7 +6,7 @@
#ifndef BITCOIN_WALLET_WALLET_H #ifndef BITCOIN_WALLET_WALLET_H
#define BITCOIN_WALLET_WALLET_H #define BITCOIN_WALLET_WALLET_H
#include <amount.h> #include <consensus/amount.h>
#include <interfaces/chain.h> #include <interfaces/chain.h>
#include <interfaces/handler.h> #include <interfaces/handler.h>
#include <outputtype.h> #include <outputtype.h>

View File

@ -6,7 +6,6 @@
#ifndef BITCOIN_WALLET_WALLETDB_H #ifndef BITCOIN_WALLET_WALLETDB_H
#define BITCOIN_WALLET_WALLETDB_H #define BITCOIN_WALLET_WALLETDB_H
#include <amount.h>
#include <script/sign.h> #include <script/sign.h>
#include <wallet/db.h> #include <wallet/db.h>
#include <wallet/walletutil.h> #include <wallet/walletutil.h>