mirror of https://github.com/bitcoin/bitcoin.git
refactor: Move `transaction_identifier.h` to primitives
Moves the file from `src/util` to `src/primitives`. Now that the refactor is complete, Txid and Wtxid are fundamental types, so it makes sense for them to reside in `src/primitives`.
This commit is contained in:
parent
6f068f65de
commit
de0675f9de
|
@ -9,7 +9,7 @@
|
|||
#include <index/disktxpos.h>
|
||||
#include <logging.h>
|
||||
#include <node/blockstorage.h>
|
||||
#include <util/transaction_identifier.h>
|
||||
#include <primitives/transaction_identifier.h>
|
||||
#include <validation.h>
|
||||
|
||||
constexpr uint8_t DB_TXINDEX{'t'};
|
||||
|
|
|
@ -9,12 +9,12 @@
|
|||
#include <common/signmessage.h>
|
||||
#include <consensus/amount.h>
|
||||
#include <interfaces/chain.h>
|
||||
#include <primitives/transaction_identifier.h>
|
||||
#include <pubkey.h>
|
||||
#include <script/script.h>
|
||||
#include <support/allocators/secure.h>
|
||||
#include <util/fs.h>
|
||||
#include <util/result.h>
|
||||
#include <util/transaction_identifier.h>
|
||||
#include <util/ui_change_type.h>
|
||||
|
||||
#include <cstdint>
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
|
||||
#include <common/bloom.h>
|
||||
#include <primitives/block.h>
|
||||
#include <primitives/transaction_identifier.h>
|
||||
#include <serialize.h>
|
||||
#include <uint256.h>
|
||||
#include <util/transaction_identifier.h>
|
||||
|
||||
#include <set>
|
||||
#include <vector>
|
||||
|
|
|
@ -8,11 +8,11 @@
|
|||
#include <consensus/amount.h>
|
||||
#include <crypto/hex_base.h>
|
||||
#include <hash.h>
|
||||
#include <primitives/transaction_identifier.h>
|
||||
#include <script/script.h>
|
||||
#include <serialize.h>
|
||||
#include <tinyformat.h>
|
||||
#include <uint256.h>
|
||||
#include <util/transaction_identifier.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
|
||||
#include <attributes.h>
|
||||
#include <consensus/amount.h>
|
||||
#include <primitives/transaction_identifier.h> // IWYU pragma: export
|
||||
#include <script/script.h>
|
||||
#include <serialize.h>
|
||||
#include <uint256.h>
|
||||
#include <util/transaction_identifier.h> // IWYU pragma: export
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or https://opensource.org/license/mit.
|
||||
|
||||
#ifndef BITCOIN_UTIL_TRANSACTION_IDENTIFIER_H
|
||||
#define BITCOIN_UTIL_TRANSACTION_IDENTIFIER_H
|
||||
#ifndef BITCOIN_PRIMITIVES_TRANSACTION_IDENTIFIER_H
|
||||
#define BITCOIN_PRIMITIVES_TRANSACTION_IDENTIFIER_H
|
||||
|
||||
#include <attributes.h>
|
||||
#include <uint256.h>
|
||||
|
@ -91,4 +91,4 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
#endif // BITCOIN_UTIL_TRANSACTION_IDENTIFIER_H
|
||||
#endif // BITCOIN_PRIMITIVES_TRANSACTION_IDENTIFIER_H
|
|
@ -5,9 +5,9 @@
|
|||
#ifndef BITCOIN_QT_SENDCOINSDIALOG_H
|
||||
#define BITCOIN_QT_SENDCOINSDIALOG_H
|
||||
|
||||
#include <primitives/transaction_identifier.h>
|
||||
#include <qt/clientmodel.h>
|
||||
#include <qt/walletmodel.h>
|
||||
#include <util/transaction_identifier.h>
|
||||
|
||||
#include <QDialog>
|
||||
#include <QMessageBox>
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
#define BITCOIN_QT_TRANSACTIONRECORD_H
|
||||
|
||||
#include <consensus/amount.h>
|
||||
#include <primitives/transaction_identifier.h>
|
||||
#include <uint256.h>
|
||||
#include <util/transaction_identifier.h>
|
||||
|
||||
#include <QList>
|
||||
#include <QString>
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
|
||||
#include <qt/guiutil.h>
|
||||
|
||||
#include <primitives/transaction_identifier.h>
|
||||
#include <uint256.h>
|
||||
#include <util/transaction_identifier.h>
|
||||
|
||||
#include <QWidget>
|
||||
#include <QKeyEvent>
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
#include <qt/walletmodeltransaction.h>
|
||||
|
||||
#include <interfaces/wallet.h>
|
||||
#include <primitives/transaction_identifier.h>
|
||||
#include <support/allocators/secure.h>
|
||||
#include <util/transaction_identifier.h>
|
||||
|
||||
#include <vector>
|
||||
|
||||
|
|
|
@ -4,13 +4,13 @@
|
|||
|
||||
#include <core_io.h>
|
||||
#include <primitives/block.h>
|
||||
#include <primitives/transaction_identifier.h>
|
||||
#include <pubkey.h>
|
||||
#include <rpc/util.h>
|
||||
#include <test/fuzz/fuzz.h>
|
||||
#include <uint256.h>
|
||||
#include <univalue.h>
|
||||
#include <util/strencodings.h>
|
||||
#include <util/transaction_identifier.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
#include <key.h>
|
||||
#include <policy/policy.h>
|
||||
#include <policy/settings.h>
|
||||
#include <primitives/transaction_identifier.h>
|
||||
#include <script/script.h>
|
||||
#include <script/script_error.h>
|
||||
#include <script/sigcache.h>
|
||||
|
@ -29,7 +30,6 @@
|
|||
#include <test/util/transaction_utils.h>
|
||||
#include <util/strencodings.h>
|
||||
#include <util/string.h>
|
||||
#include <util/transaction_identifier.h>
|
||||
#include <validation.h>
|
||||
|
||||
#include <functional>
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include <primitives/transaction_identifier.h>
|
||||
#include <streams.h>
|
||||
#include <test/util/setup_common.h>
|
||||
#include <uint256.h>
|
||||
#include <util/strencodings.h>
|
||||
#include <util/transaction_identifier.h>
|
||||
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
|
|
|
@ -17,12 +17,12 @@
|
|||
#include <policy/feerate.h>
|
||||
#include <policy/packages.h>
|
||||
#include <primitives/transaction.h>
|
||||
#include <primitives/transaction_identifier.h>
|
||||
#include <sync.h>
|
||||
#include <util/epochguard.h>
|
||||
#include <util/feefrac.h>
|
||||
#include <util/hasher.h>
|
||||
#include <util/result.h>
|
||||
#include <util/transaction_identifier.h>
|
||||
|
||||
#include <boost/multi_index/hashed_index.hpp>
|
||||
#include <boost/multi_index/identity.hpp>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#define BITCOIN_WALLET_RECEIVE_H
|
||||
|
||||
#include <consensus/amount.h>
|
||||
#include <util/transaction_identifier.h>
|
||||
#include <primitives/transaction_identifier.h>
|
||||
#include <wallet/transaction.h>
|
||||
#include <wallet/types.h>
|
||||
#include <wallet/wallet.h>
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
#include <core_io.h>
|
||||
#include <key_io.h>
|
||||
#include <policy/rbf.h>
|
||||
#include <primitives/transaction_identifier.h>
|
||||
#include <rpc/util.h>
|
||||
#include <rpc/blockchain.h>
|
||||
#include <util/transaction_identifier.h>
|
||||
#include <util/vector.h>
|
||||
#include <wallet/receive.h>
|
||||
#include <wallet/rpc/util.h>
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
#include <numeric>
|
||||
#include <policy/policy.h>
|
||||
#include <primitives/transaction.h>
|
||||
#include <primitives/transaction_identifier.h>
|
||||
#include <script/script.h>
|
||||
#include <script/signingprovider.h>
|
||||
#include <script/solver.h>
|
||||
|
@ -21,7 +22,6 @@
|
|||
#include <util/rbf.h>
|
||||
#include <util/trace.h>
|
||||
#include <util/translation.h>
|
||||
#include <util/transaction_identifier.h>
|
||||
#include <wallet/coincontrol.h>
|
||||
#include <wallet/fees.h>
|
||||
#include <wallet/receive.h>
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
#include <outputtype.h>
|
||||
#include <policy/feerate.h>
|
||||
#include <primitives/transaction.h>
|
||||
#include <primitives/transaction_identifier.h>
|
||||
#include <script/interpreter.h>
|
||||
#include <script/script.h>
|
||||
#include <support/allocators/secure.h>
|
||||
|
@ -26,7 +27,6 @@
|
|||
#include <util/result.h>
|
||||
#include <util/string.h>
|
||||
#include <util/time.h>
|
||||
#include <util/transaction_identifier.h>
|
||||
#include <util/ui_change_type.h>
|
||||
#include <wallet/crypter.h>
|
||||
#include <wallet/db.h>
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
|
||||
#include <common/system.h>
|
||||
#include <key_io.h>
|
||||
#include <primitives/transaction_identifier.h>
|
||||
#include <protocol.h>
|
||||
#include <script/script.h>
|
||||
#include <serialize.h>
|
||||
|
@ -16,7 +17,6 @@
|
|||
#include <util/bip32.h>
|
||||
#include <util/check.h>
|
||||
#include <util/fs.h>
|
||||
#include <util/transaction_identifier.h>
|
||||
#include <util/time.h>
|
||||
#include <util/translation.h>
|
||||
#include <wallet/migrate.h>
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
#define BITCOIN_WALLET_WALLETDB_H
|
||||
|
||||
#include <key.h>
|
||||
#include <primitives/transaction_identifier.h>
|
||||
#include <script/sign.h>
|
||||
#include <util/transaction_identifier.h>
|
||||
#include <wallet/db.h>
|
||||
#include <wallet/walletutil.h>
|
||||
|
||||
|
|
Loading…
Reference in New Issue