mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
Clean up things that include script/standard.h
Remove standard.h from files that don't use anything in it, and include it in files that do.
This commit is contained in:
parent
8bbe257bac
commit
f3c9078b4c
52 changed files with 17 additions and 41 deletions
|
@ -8,7 +8,7 @@
|
|||
#include <script/bitcoinconsensus.h>
|
||||
#endif
|
||||
#include <script/script.h>
|
||||
#include <script/standard.h>
|
||||
#include <script/interpreter.h>
|
||||
#include <streams.h>
|
||||
#include <test/util/transaction_utils.h>
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
#include <pubkey.h>
|
||||
#include <script/script.h>
|
||||
#include <script/standard.h>
|
||||
|
||||
/*
|
||||
* These check for scripts for which a special case with a shorter encoding is defined.
|
||||
|
|
|
@ -65,7 +65,6 @@
|
|||
#include <rpc/util.h>
|
||||
#include <scheduler.h>
|
||||
#include <script/sigcache.h>
|
||||
#include <script/standard.h>
|
||||
#include <shutdown.h>
|
||||
#include <sync.h>
|
||||
#include <timedata.h>
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
|
||||
#include <policy/feerate.h>
|
||||
#include <policy/policy.h>
|
||||
#include <script/standard.h>
|
||||
|
||||
#include <chrono>
|
||||
#include <cstdint>
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include <base58.h>
|
||||
#include <bech32.h>
|
||||
#include <script/standard.h>
|
||||
#include <util/strencodings.h>
|
||||
|
||||
#include <algorithm>
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
#include <chainparams.h>
|
||||
#include <key.h>
|
||||
#include <pubkey.h>
|
||||
#include <script/standard.h>
|
||||
|
||||
#include <string>
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
#include <logging.h>
|
||||
#include <policy/feerate.h>
|
||||
#include <policy/policy.h>
|
||||
#include <script/standard.h>
|
||||
#include <tinyformat.h>
|
||||
#include <util/error.h>
|
||||
#include <util/moneystr.h>
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
#include <script/script.h>
|
||||
#include <script/sign.h>
|
||||
#include <script/signingprovider.h>
|
||||
#include <script/standard.h>
|
||||
#include <util/vector.h>
|
||||
|
||||
#include <assert.h>
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
#include <qt/qvalidatedlineedit.h>
|
||||
#include <qt/sendcoinsrecipient.h>
|
||||
|
||||
#include <addresstype.h>
|
||||
#include <base58.h>
|
||||
#include <chainparams.h>
|
||||
#include <common/args.h>
|
||||
|
@ -20,7 +21,6 @@
|
|||
#include <primitives/transaction.h>
|
||||
#include <protocol.h>
|
||||
#include <script/script.h>
|
||||
#include <script/standard.h>
|
||||
#include <util/chaintype.h>
|
||||
#include <util/exception.h>
|
||||
#include <util/fs.h>
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <qt/transactiontablemodel.h>
|
||||
#include <qt/transactionview.h>
|
||||
#include <qt/walletmodel.h>
|
||||
#include <script/standard.h>
|
||||
#include <test/util/setup_common.h>
|
||||
#include <validation.h>
|
||||
#include <wallet/test/util.h>
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
#endif
|
||||
|
||||
#include <key.h>
|
||||
#include <script/standard.h>
|
||||
|
||||
#include <qt/walletmodeltransaction.h>
|
||||
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
#include <rpc/server.h>
|
||||
#include <rpc/server_util.h>
|
||||
#include <rpc/util.h>
|
||||
#include <script/standard.h>
|
||||
#include <txmempool.h>
|
||||
#include <univalue.h>
|
||||
#include <util/fs.h>
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
#include <script/descriptor.h>
|
||||
#include <script/script.h>
|
||||
#include <script/signingprovider.h>
|
||||
#include <script/standard.h>
|
||||
#include <tinyformat.h>
|
||||
#include <univalue.h>
|
||||
#include <util/check.h>
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
#include <rpc/util.h>
|
||||
#include <script/descriptor.h>
|
||||
#include <script/signingprovider.h>
|
||||
#include <script/standard.h>
|
||||
#include <tinyformat.h>
|
||||
#include <util/check.h>
|
||||
#include <util/result.h>
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
#ifndef BITCOIN_RPC_UTIL_H
|
||||
#define BITCOIN_RPC_UTIL_H
|
||||
|
||||
#include <addresstype.h>
|
||||
#include <node/transaction.h>
|
||||
#include <outputtype.h>
|
||||
#include <protocol.h>
|
||||
|
@ -13,7 +14,6 @@
|
|||
#include <rpc/request.h>
|
||||
#include <script/script.h>
|
||||
#include <script/sign.h>
|
||||
#include <script/standard.h>
|
||||
#include <univalue.h>
|
||||
#include <util/check.h>
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
#include <string>
|
||||
#include <vector>
|
||||
#include <script/script.h>
|
||||
#include <script/standard.h>
|
||||
#include <script/miniscript.h>
|
||||
|
||||
#include <assert.h>
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
#include <pubkey.h>
|
||||
#include <script/interpreter.h>
|
||||
#include <script/keyorigin.h>
|
||||
#include <script/standard.h>
|
||||
#include <script/signingprovider.h>
|
||||
#include <uint256.h>
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
#include <script/keyorigin.h>
|
||||
#include <script/interpreter.h>
|
||||
#include <script/signingprovider.h>
|
||||
#include <script/standard.h>
|
||||
|
||||
#include <logging.h>
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
#include <pubkey.h>
|
||||
#include <script/keyorigin.h>
|
||||
#include <script/script.h>
|
||||
#include <script/standard.h>
|
||||
#include <sync.h>
|
||||
|
||||
struct ShortestVectorFirstComparator
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
#include <primitives/block.h>
|
||||
#include <primitives/transaction.h>
|
||||
#include <script/interpreter.h>
|
||||
#include <script/standard.h>
|
||||
#include <span.h>
|
||||
#include <streams.h>
|
||||
#include <uint256.h>
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
#include <interfaces/chain.h>
|
||||
#include <node/miner.h>
|
||||
#include <pow.h>
|
||||
#include <script/standard.h>
|
||||
#include <test/util/blockfilter.h>
|
||||
#include <test/util/index.h>
|
||||
#include <test/util/setup_common.h>
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
#include <node/blockstorage.h>
|
||||
#include <node/context.h>
|
||||
#include <node/kernel_notifications.h>
|
||||
#include <script/standard.h>
|
||||
#include <util/chaintype.h>
|
||||
#include <validation.h>
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
#include <addresstype.h>
|
||||
#include <clientversion.h>
|
||||
#include <coins.h>
|
||||
#include <script/standard.h>
|
||||
#include <streams.h>
|
||||
#include <test/util/poolresourcetester.h>
|
||||
#include <test/util/random.h>
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
#include <compressor.h>
|
||||
#include <script/script.h>
|
||||
#include <script/standard.h>
|
||||
#include <test/util/setup_common.h>
|
||||
|
||||
#include <stdint.h>
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
#include <pubkey.h>
|
||||
#include <script/sign.h>
|
||||
#include <script/signingprovider.h>
|
||||
#include <script/standard.h>
|
||||
#include <serialize.h>
|
||||
#include <test/util/net.h>
|
||||
#include <test/util/random.h>
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
#include <pubkey.h>
|
||||
#include <script/descriptor.h>
|
||||
#include <script/sign.h>
|
||||
#include <script/standard.h>
|
||||
#include <test/util/setup_common.h>
|
||||
#include <util/strencodings.h>
|
||||
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
#include <protocol.h>
|
||||
#include <pubkey.h>
|
||||
#include <script/script.h>
|
||||
#include <script/standard.h>
|
||||
#include <serialize.h>
|
||||
#include <streams.h>
|
||||
#include <test/fuzz/FuzzedDataProvider.h>
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
#include <merkleblock.h>
|
||||
#include <primitives/transaction.h>
|
||||
#include <script/script.h>
|
||||
#include <script/standard.h>
|
||||
#include <serialize.h>
|
||||
#include <streams.h>
|
||||
#include <test/fuzz/FuzzedDataProvider.h>
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
#include <chainparams.h>
|
||||
#include <consensus/validation.h>
|
||||
#include <interfaces/chain.h>
|
||||
#include <script/standard.h>
|
||||
#include <test/util/setup_common.h>
|
||||
#include <script/standard.h>
|
||||
#include <validation.h>
|
||||
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
#include <consensus/tx_verify.h>
|
||||
#include <node/miner.h>
|
||||
#include <policy/policy.h>
|
||||
#include <script/standard.h>
|
||||
#include <test/util/random.h>
|
||||
#include <test/util/txmempool.h>
|
||||
#include <timedata.h>
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
#include <crypto/sha256.h>
|
||||
#include <script/interpreter.h>
|
||||
#include <script/miniscript.h>
|
||||
#include <script/standard.h>
|
||||
#include <script/script_error.h>
|
||||
|
||||
namespace {
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
#include <pubkey.h>
|
||||
#include <script/sign.h>
|
||||
#include <script/signingprovider.h>
|
||||
#include <script/standard.h>
|
||||
#include <test/util/random.h>
|
||||
#include <test/util/setup_common.h>
|
||||
#include <txorphanage.h>
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
#include <script/sigcache.h>
|
||||
#include <script/sign.h>
|
||||
#include <script/signingprovider.h>
|
||||
#include <script/standard.h>
|
||||
#include <streams.h>
|
||||
#include <test/util/json.h>
|
||||
#include <test/util/random.h>
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
#include <chainparams.h>
|
||||
#include <index/txindex.h>
|
||||
#include <interfaces/chain.h>
|
||||
#include <script/standard.h>
|
||||
#include <test/util/index.h>
|
||||
#include <test/util/setup_common.h>
|
||||
#include <validation.h>
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
#include <policy/policy.h>
|
||||
#include <primitives/transaction.h>
|
||||
#include <script/script.h>
|
||||
#include <script/standard.h>
|
||||
#include <test/util/random.h>
|
||||
#include <test/util/setup_common.h>
|
||||
#include <validation.h>
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
#include <policy/policy.h>
|
||||
#include <primitives/transaction.h>
|
||||
#include <script/script.h>
|
||||
#include <script/standard.h>
|
||||
#include <test/util/setup_common.h>
|
||||
#include <validation.h>
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
#include <key.h>
|
||||
#include <script/sign.h>
|
||||
#include <script/signingprovider.h>
|
||||
#include <script/standard.h>
|
||||
#include <test/util/setup_common.h>
|
||||
#include <txmempool.h>
|
||||
#include <util/chaintype.h>
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
#include <node/context.h>
|
||||
#include <pow.h>
|
||||
#include <primitives/transaction.h>
|
||||
#include <script/standard.h>
|
||||
#include <test/util/script.h>
|
||||
#include <util/check.h>
|
||||
#include <validation.h>
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
#include <node/miner.h>
|
||||
#include <pow.h>
|
||||
#include <random.h>
|
||||
#include <script/standard.h>
|
||||
#include <test/util/random.h>
|
||||
#include <test/util/script.h>
|
||||
#include <test/util/setup_common.h>
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
#include <key.h>
|
||||
#include <key_io.h>
|
||||
#include <pubkey.h>
|
||||
#include <script/standard.h>
|
||||
#include <uint256.h>
|
||||
#include <util/message.h>
|
||||
#include <util/strencodings.h>
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
#include <primitives/transaction.h>
|
||||
#include <script/keyorigin.h>
|
||||
#include <script/signingprovider.h>
|
||||
#include <script/standard.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <map>
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
#include <policy/fees.h>
|
||||
#include <primitives/transaction.h>
|
||||
#include <rpc/server.h>
|
||||
#include <script/standard.h>
|
||||
#include <support/allocators/secure.h>
|
||||
#include <sync.h>
|
||||
#include <uint256.h>
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
#include <key_io.h>
|
||||
#include <rpc/util.h>
|
||||
#include <script/script.h>
|
||||
#include <script/standard.h>
|
||||
#include <util/bip32.h>
|
||||
#include <util/translation.h>
|
||||
#include <wallet/receive.h>
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
#include <script/descriptor.h>
|
||||
#include <script/script.h>
|
||||
#include <script/sign.h>
|
||||
#include <script/standard.h>
|
||||
#include <util/bip32.h>
|
||||
#include <util/strencodings.h>
|
||||
#include <util/string.h>
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
#include <script/descriptor.h>
|
||||
#include <script/script.h>
|
||||
#include <script/signingprovider.h>
|
||||
#include <script/standard.h>
|
||||
#include <util/error.h>
|
||||
#include <util/message.h>
|
||||
#include <util/result.h>
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
#include <primitives/transaction.h>
|
||||
#include <script/script.h>
|
||||
#include <script/signingprovider.h>
|
||||
#include <script/standard.h>
|
||||
#include <util/check.h>
|
||||
#include <util/fees.h>
|
||||
#include <util/moneystr.h>
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
#include <key_io.h>
|
||||
#include <node/context.h>
|
||||
#include <script/script.h>
|
||||
#include <script/signingprovider.h>
|
||||
#include <script/standard.h>
|
||||
#include <script/signingprovider.h>
|
||||
#include <test/util/setup_common.h>
|
||||
#include <wallet/types.h>
|
||||
#include <wallet/wallet.h>
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include <key.h>
|
||||
#include <script/standard.h>
|
||||
#include <test/util/setup_common.h>
|
||||
#include <script/standard.h>
|
||||
#include <wallet/scriptpubkeyman.h>
|
||||
#include <wallet/wallet.h>
|
||||
#include <wallet/test/util.h>
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
#include <consensus/amount.h>
|
||||
#include <policy/fees.h>
|
||||
#include <script/standard.h>
|
||||
#include <validation.h>
|
||||
#include <wallet/coincontrol.h>
|
||||
#include <wallet/spend.h>
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
#include <node/blockstorage.h>
|
||||
#include <policy/policy.h>
|
||||
#include <rpc/server.h>
|
||||
#include <script/standard.h>
|
||||
#include <test/util/logging.h>
|
||||
#include <test/util/random.h>
|
||||
#include <test/util/setup_common.h>
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include <script/descriptor.h>
|
||||
#include <script/script.h>
|
||||
#include <script/signingprovider.h>
|
||||
#include <script/standard.h>
|
||||
#include <support/cleanse.h>
|
||||
#include <txmempool.h>
|
||||
#include <util/bip32.h>
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
#define BITCOIN_WALLET_WALLETDB_H
|
||||
|
||||
#include <script/sign.h>
|
||||
#include <script/standard.h>
|
||||
#include <wallet/db.h>
|
||||
#include <wallet/walletutil.h>
|
||||
#include <key.h>
|
||||
|
|
Loading…
Add table
Reference in a new issue