From fa53e3a58c94731a90514fe92fad365a49adb10c Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Mon, 15 Nov 2021 13:42:00 +0100 Subject: [PATCH] scripted-diff: Move miner to src/node -BEGIN VERIFY SCRIPT- # Move module git mv src/miner.cpp src/node/ git mv src/miner.h src/node/ # Replacements sed -i 's:miner\.h:node/miner.h:g' $(git grep -l miner) sed -i 's:miner\.cpp:node/miner.cpp:g' $(git grep -l miner) sed -i 's:MINER_H:NODE_MINER_H:g' $(git grep -l MINER_H) -END VERIFY SCRIPT- --- src/Makefile.am | 4 ++-- src/init.cpp | 2 +- src/{ => node}/miner.cpp | 2 +- src/{ => node}/miner.h | 6 +++--- src/rpc/mining.cpp | 2 +- src/test/blockfilter_index_tests.cpp | 2 +- src/test/fuzz/tx_pool.cpp | 2 +- src/test/miner_tests.cpp | 2 +- src/test/util/mining.cpp | 2 +- src/test/util/setup_common.cpp | 2 +- src/test/validation_block_tests.cpp | 2 +- test/sanitizer_suppressions/ubsan | 2 +- 12 files changed, 15 insertions(+), 15 deletions(-) rename src/{ => node}/miner.cpp (99%) rename src/{ => node}/miner.h (98%) diff --git a/src/Makefile.am b/src/Makefile.am index 25cd5c03d9c..262eb2aa4ce 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -166,7 +166,7 @@ BITCOIN_CORE_H = \ mapport.h \ memusage.h \ merkleblock.h \ - miner.h \ + node/miner.h \ net.h \ net_permissions.h \ net_processing.h \ @@ -334,7 +334,7 @@ libbitcoin_server_a_SOURCES = \ index/txindex.cpp \ init.cpp \ mapport.cpp \ - miner.cpp \ + node/miner.cpp \ net.cpp \ net_processing.cpp \ node/blockstorage.cpp \ diff --git a/src/init.cpp b/src/init.cpp index f659de3a020..f7e4aaca88e 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -29,7 +29,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/src/miner.cpp b/src/node/miner.cpp similarity index 99% rename from src/miner.cpp rename to src/node/miner.cpp index 1ef246cd141..112ff8d3f23 100644 --- a/src/miner.cpp +++ b/src/node/miner.cpp @@ -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 +#include #include #include diff --git a/src/miner.h b/src/node/miner.h similarity index 98% rename from src/miner.h rename to src/node/miner.h index 10a80f4392e..364637b3dfa 100644 --- a/src/miner.h +++ b/src/node/miner.h @@ -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_MINER_H -#define BITCOIN_MINER_H +#ifndef BITCOIN_NODE_MINER_H +#define BITCOIN_NODE_MINER_H #include #include @@ -205,4 +205,4 @@ int64_t UpdateTime(CBlockHeader* pblock, const Consensus::Params& consensusParam /** Update an old GenerateCoinbaseCommitment from CreateNewBlock after the block txs have changed */ void RegenerateCommitments(CBlock& block, ChainstateManager& chainman); -#endif // BITCOIN_MINER_H +#endif // BITCOIN_NODE_MINER_H diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp index 518c41d12a1..4461e0b9caa 100644 --- a/src/rpc/mining.cpp +++ b/src/rpc/mining.cpp @@ -13,7 +13,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/src/test/blockfilter_index_tests.cpp b/src/test/blockfilter_index_tests.cpp index 2eb653e9ecd..7d50def5094 100644 --- a/src/test/blockfilter_index_tests.cpp +++ b/src/test/blockfilter_index_tests.cpp @@ -6,7 +6,7 @@ #include #include #include -#include +#include #include #include