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-
This commit is contained in:
MarcoFalke 2021-11-15 13:42:00 +01:00
parent ad09c287cb
commit fa53e3a58c
No known key found for this signature in database
GPG Key ID: CE2B75697E69A548
12 changed files with 15 additions and 15 deletions

View File

@ -166,7 +166,7 @@ BITCOIN_CORE_H = \
mapport.h \ mapport.h \
memusage.h \ memusage.h \
merkleblock.h \ merkleblock.h \
miner.h \ node/miner.h \
net.h \ net.h \
net_permissions.h \ net_permissions.h \
net_processing.h \ net_processing.h \
@ -334,7 +334,7 @@ libbitcoin_server_a_SOURCES = \
index/txindex.cpp \ index/txindex.cpp \
init.cpp \ init.cpp \
mapport.cpp \ mapport.cpp \
miner.cpp \ node/miner.cpp \
net.cpp \ net.cpp \
net_processing.cpp \ net_processing.cpp \
node/blockstorage.cpp \ node/blockstorage.cpp \

View File

@ -29,7 +29,7 @@
#include <interfaces/init.h> #include <interfaces/init.h>
#include <interfaces/node.h> #include <interfaces/node.h>
#include <mapport.h> #include <mapport.h>
#include <miner.h> #include <node/miner.h>
#include <net.h> #include <net.h>
#include <net_permissions.h> #include <net_permissions.h>
#include <net_processing.h> #include <net_processing.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 <miner.h> #include <node/miner.h>
#include <chain.h> #include <chain.h>
#include <chainparams.h> #include <chainparams.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_MINER_H #ifndef BITCOIN_NODE_MINER_H
#define BITCOIN_MINER_H #define BITCOIN_NODE_MINER_H
#include <primitives/block.h> #include <primitives/block.h>
#include <txmempool.h> #include <txmempool.h>
@ -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 */ /** Update an old GenerateCoinbaseCommitment from CreateNewBlock after the block txs have changed */
void RegenerateCommitments(CBlock& block, ChainstateManager& chainman); void RegenerateCommitments(CBlock& block, ChainstateManager& chainman);
#endif // BITCOIN_MINER_H #endif // BITCOIN_NODE_MINER_H

View File

@ -13,7 +13,7 @@
#include <deploymentinfo.h> #include <deploymentinfo.h>
#include <deploymentstatus.h> #include <deploymentstatus.h>
#include <key_io.h> #include <key_io.h>
#include <miner.h> #include <node/miner.h>
#include <net.h> #include <net.h>
#include <node/context.h> #include <node/context.h>
#include <policy/fees.h> #include <policy/fees.h>

View File

@ -6,7 +6,7 @@
#include <chainparams.h> #include <chainparams.h>
#include <consensus/validation.h> #include <consensus/validation.h>
#include <index/blockfilterindex.h> #include <index/blockfilterindex.h>
#include <miner.h> #include <node/miner.h>
#include <pow.h> #include <pow.h>
#include <script/standard.h> #include <script/standard.h>
#include <test/util/blockfilter.h> #include <test/util/blockfilter.h>

View File

@ -3,7 +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 <consensus/validation.h> #include <consensus/validation.h>
#include <miner.h> #include <node/miner.h>
#include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/FuzzedDataProvider.h>
#include <test/fuzz/fuzz.h> #include <test/fuzz/fuzz.h>
#include <test/fuzz/util.h> #include <test/fuzz/util.h>

View File

@ -7,7 +7,7 @@
#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>
#include <miner.h> #include <node/miner.h>
#include <policy/policy.h> #include <policy/policy.h>
#include <script/standard.h> #include <script/standard.h>
#include <txmempool.h> #include <txmempool.h>

View File

@ -7,7 +7,7 @@
#include <chainparams.h> #include <chainparams.h>
#include <consensus/merkle.h> #include <consensus/merkle.h>
#include <key_io.h> #include <key_io.h>
#include <miner.h> #include <node/miner.h>
#include <node/context.h> #include <node/context.h>
#include <pow.h> #include <pow.h>
#include <script/standard.h> #include <script/standard.h>

View File

@ -13,7 +13,7 @@
#include <crypto/sha256.h> #include <crypto/sha256.h>
#include <init.h> #include <init.h>
#include <interfaces/chain.h> #include <interfaces/chain.h>
#include <miner.h> #include <node/miner.h>
#include <net.h> #include <net.h>
#include <net_processing.h> #include <net_processing.h>
#include <noui.h> #include <noui.h>

View File

@ -7,7 +7,7 @@
#include <chainparams.h> #include <chainparams.h>
#include <consensus/merkle.h> #include <consensus/merkle.h>
#include <consensus/validation.h> #include <consensus/validation.h>
#include <miner.h> #include <node/miner.h>
#include <pow.h> #include <pow.h>
#include <random.h> #include <random.h>
#include <script/standard.h> #include <script/standard.h>

View File

@ -88,7 +88,7 @@ implicit-signed-integer-truncation:chain.h
implicit-signed-integer-truncation:crypto/ implicit-signed-integer-truncation:crypto/
implicit-signed-integer-truncation:cuckoocache.h implicit-signed-integer-truncation:cuckoocache.h
implicit-signed-integer-truncation:leveldb/ implicit-signed-integer-truncation:leveldb/
implicit-signed-integer-truncation:miner.cpp implicit-signed-integer-truncation:node/miner.cpp
implicit-signed-integer-truncation:net.cpp implicit-signed-integer-truncation:net.cpp
implicit-signed-integer-truncation:net_processing.cpp implicit-signed-integer-truncation:net_processing.cpp
implicit-signed-integer-truncation:netaddress.cpp implicit-signed-integer-truncation:netaddress.cpp