Skip to content

Commit

Permalink
MOVEONLY: core/ -> primitives/
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-jr committed Dec 3, 2014
1 parent 0286fe5 commit d227011
Show file tree
Hide file tree
Showing 30 changed files with 44 additions and 44 deletions.
10 changes: 5 additions & 5 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ BITCOIN_CORE_H = \
coins.h \
compat.h \
compressor.h \
core/block.h \
core/transaction.h \
primitives/block.h \
primitives/transaction.h \
core_io.h \
crypter.h \
db.h \
Expand Down Expand Up @@ -235,8 +235,8 @@ libbitcoin_common_a_SOURCES = \
chainparams.cpp \
coins.cpp \
compressor.cpp \
core/block.cpp \
core/transaction.cpp \
primitives/block.cpp \
primitives/transaction.cpp \
core_read.cpp \
core_write.cpp \
eccryptoverify.cpp \
Expand Down Expand Up @@ -350,7 +350,7 @@ bitcoin_cli_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS)
if BUILD_BITCOIN_LIBS
include_HEADERS = script/bitcoinconsensus.h
libbitcoinconsensus_la_SOURCES = \
core/transaction.cpp \
primitives/transaction.cpp \
crypto/hmac_sha512.cpp \
crypto/sha1.cpp \
crypto/sha256.cpp \
Expand Down
2 changes: 1 addition & 1 deletion src/bitcoin-tx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include "base58.h"
#include "clientversion.h"
#include "core/transaction.h"
#include "primitives/transaction.h"
#include "core_io.h"
#include "keystore.h"
#include "main.h" // for MAX_BLOCK_SIZE
Expand Down
2 changes: 1 addition & 1 deletion src/bloom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include "bloom.h"

#include "core/transaction.h"
#include "primitives/transaction.h"
#include "hash.h"
#include "script/script.h"
#include "script/standard.h"
Expand Down
2 changes: 1 addition & 1 deletion src/chain.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#ifndef BITCOIN_CHAIN_H
#define BITCOIN_CHAIN_H

#include "core/block.h"
#include "primitives/block.h"
#include "pow.h"
#include "tinyformat.h"
#include "uint256.h"
Expand Down
2 changes: 1 addition & 1 deletion src/chainparams.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include "chainparamsbase.h"
#include "checkpoints.h"
#include "core/block.h"
#include "primitives/block.h"
#include "protocol.h"
#include "uint256.h"

Expand Down
2 changes: 1 addition & 1 deletion src/coincontrol.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#ifndef BITCOIN_COINCONTROL_H
#define BITCOIN_COINCONTROL_H

#include "core/transaction.h"
#include "primitives/transaction.h"

/** Coin Control Features. */
class CCoinControl
Expand Down
2 changes: 1 addition & 1 deletion src/compressor.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#ifndef BITCOIN_COMPRESSOR_H
#define BITCOIN_COMPRESSOR_H

#include "core/transaction.h"
#include "primitives/transaction.h"
#include "script/script.h"
#include "serialize.h"

Expand Down
4 changes: 2 additions & 2 deletions src/core_read.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

#include "core_io.h"

#include "core/block.h"
#include "core/transaction.h"
#include "primitives/block.h"
#include "primitives/transaction.h"
#include "script/script.h"
#include "serialize.h"
#include "streams.h"
Expand Down
2 changes: 1 addition & 1 deletion src/core_write.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "core_io.h"

#include "base58.h"
#include "core/transaction.h"
#include "primitives/transaction.h"
#include "script/script.h"
#include "script/standard.h"
#include "serialize.h"
Expand Down
4 changes: 2 additions & 2 deletions src/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
#include "chain.h"
#include "chainparams.h"
#include "coins.h"
#include "core/block.h"
#include "core/transaction.h"
#include "primitives/block.h"
#include "primitives/transaction.h"
#include "net.h"
#include "pow.h"
#include "script/script.h"
Expand Down
4 changes: 2 additions & 2 deletions src/miner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#include "miner.h"

#include "amount.h"
#include "core/block.h"
#include "core/transaction.h"
#include "primitives/block.h"
#include "primitives/transaction.h"
#include "hash.h"
#include "main.h"
#include "net.h"
Expand Down
2 changes: 1 addition & 1 deletion src/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "addrman.h"
#include "chainparams.h"
#include "clientversion.h"
#include "core/transaction.h"
#include "primitives/transaction.h"
#include "ui_interface.h"

#ifdef WIN32
Expand Down
2 changes: 1 addition & 1 deletion src/pow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include "chain.h"
#include "chainparams.h"
#include "core/block.h"
#include "primitives/block.h"
#include "uint256.h"
#include "util.h"

Expand Down
2 changes: 1 addition & 1 deletion src/core/block.cpp → src/primitives/block.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "core/block.h"
#include "primitives/block.h"

#include "hash.h"
#include "tinyformat.h"
Expand Down
8 changes: 4 additions & 4 deletions src/core/block.h → src/primitives/block.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef BITCOIN_CORE_BLOCK_H
#define BITCOIN_CORE_BLOCK_H
#ifndef BITCOIN_PRIMITIVES_BLOCK_H
#define BITCOIN_PRIMITIVES_BLOCK_H

#include "core/transaction.h"
#include "primitives/transaction.h"
#include "serialize.h"
#include "uint256.h"

Expand Down Expand Up @@ -165,4 +165,4 @@ struct CBlockLocator
}
};

#endif // BITCOIN_CORE_BLOCK_H
#endif // BITCOIN_PRIMITIVES_BLOCK_H
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "core/transaction.h"
#include "primitives/transaction.h"

#include "hash.h"
#include "tinyformat.h"
Expand Down
6 changes: 3 additions & 3 deletions src/core/transaction.h → src/primitives/transaction.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef BITCOIN_CORE_TRANSACTION_H
#define BITCOIN_CORE_TRANSACTION_H
#ifndef BITCOIN_PRIMITIVES_TRANSACTION_H
#define BITCOIN_PRIMITIVES_TRANSACTION_H

#include "amount.h"
#include "script/script.h"
Expand Down Expand Up @@ -273,4 +273,4 @@ struct CMutableTransaction
uint256 GetHash() const;
};

#endif // BITCOIN_CORE_TRANSACTION_H
#endif // BITCOIN_PRIMITIVES_TRANSACTION_H
2 changes: 1 addition & 1 deletion src/qt/bitcoinunits.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include "bitcoinunits.h"

#include "core/transaction.h"
#include "primitives/transaction.h"

#include <QStringList>

Expand Down
2 changes: 1 addition & 1 deletion src/qt/guiutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "qvalidatedlineedit.h"
#include "walletmodel.h"

#include "core/transaction.h"
#include "primitives/transaction.h"
#include "init.h"
#include "main.h"
#include "protocol.h"
Expand Down
4 changes: 2 additions & 2 deletions src/rest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "core/block.h"
#include "core/transaction.h"
#include "primitives/block.h"
#include "primitives/transaction.h"
#include "main.h"
#include "rpcserver.h"
#include "streams.h"
Expand Down
2 changes: 1 addition & 1 deletion src/rpcrawtransaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "base58.h"
#include "core/transaction.h"
#include "primitives/transaction.h"
#include "core_io.h"
#include "init.h"
#include "keystore.h"
Expand Down
2 changes: 1 addition & 1 deletion src/script/bitcoinconsensus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include "bitcoinconsensus.h"

#include "core/transaction.h"
#include "primitives/transaction.h"
#include "script/interpreter.h"
#include "version.h"

Expand Down
2 changes: 1 addition & 1 deletion src/script/interpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include "interpreter.h"

#include "core/transaction.h"
#include "primitives/transaction.h"
#include "crypto/ripemd160.h"
#include "crypto/sha1.h"
#include "crypto/sha256.h"
Expand Down
2 changes: 1 addition & 1 deletion src/script/sign.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include "script/sign.h"

#include "core/transaction.h"
#include "primitives/transaction.h"
#include "key.h"
#include "keystore.h"
#include "script/standard.h"
Expand Down
2 changes: 1 addition & 1 deletion src/test/main_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "core/transaction.h"
#include "primitives/transaction.h"
#include "main.h"

#include <boost/test/unit_test.hpp>
Expand Down
2 changes: 1 addition & 1 deletion src/test/util_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "util.h"

#include "clientversion.h"
#include "core/transaction.h"
#include "primitives/transaction.h"
#include "random.h"
#include "sync.h"
#include "utilstrencodings.h"
Expand Down
2 changes: 1 addition & 1 deletion src/txmempool.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#include "amount.h"
#include "coins.h"
#include "core/transaction.h"
#include "primitives/transaction.h"
#include "sync.h"

class CAutoFile;
Expand Down
2 changes: 1 addition & 1 deletion src/undo.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#define BITCOIN_UNDO_H

#include "compressor.h"
#include "core/transaction.h"
#include "primitives/transaction.h"
#include "serialize.h"

/** Undo information for a CTxIn
Expand Down
2 changes: 1 addition & 1 deletion src/utilmoneystr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include "utilmoneystr.h"

#include "core/transaction.h"
#include "primitives/transaction.h"
#include "tinyformat.h"
#include "utilstrencodings.h"

Expand Down
4 changes: 2 additions & 2 deletions src/wallet.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#define BITCOIN_WALLET_H

#include "amount.h"
#include "core/block.h"
#include "core/transaction.h"
#include "primitives/block.h"
#include "primitives/transaction.h"
#include "crypter.h"
#include "key.h"
#include "keystore.h"
Expand Down

0 comments on commit d227011

Please sign in to comment.