Skip to content

Commit

Permalink
scripted-diff: Merge bitcoin#23517: scripted-diff: Move miner to src/…
Browse files Browse the repository at this point in the history
…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-
  • Loading branch information
vijaydasmp committed Sep 9, 2024
1 parent 0c243ab commit 184a622
Show file tree
Hide file tree
Showing 15 changed files with 21 additions and 20 deletions.
2 changes: 1 addition & 1 deletion doc/release-notes/dash/release-notes-0.14.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ See detailed [set of changes](https://github.com/dashpay/dash/compare/v0.13.3.0.
- [`d7474fd56`](https://github.com/dashpay/dash/commit/d7474fd56) remove all references to pwalletMain in rpc folder
- [`87af11781`](https://github.com/dashpay/dash/commit/87af11781) Merge #8775: RPC refactoring: Access wallet using new GetWalletForJSONRPCRequest
- [`1fa7f7e74`](https://github.com/dashpay/dash/commit/1fa7f7e74) stop test failures
- [`444f671ab`](https://github.com/dashpay/dash/commit/444f671ab) Update src/miner.cpp
- [`444f671ab`](https://github.com/dashpay/dash/commit/444f671ab) Update src/node/miner.cpp
- [`514769940`](https://github.com/dashpay/dash/commit/514769940) fix 9868
- [`7ee31cbd6`](https://github.com/dashpay/dash/commit/7ee31cbd6) Speed up integration tests with masternodes (#2642)
- [`fda16f1fe`](https://github.com/dashpay/dash/commit/fda16f1fe) Fix off-by-1 in phase calculations and the rest of llmq-signing.py issues (#2641)
Expand Down
4 changes: 2 additions & 2 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,6 @@ BITCOIN_CORE_H = \
memusage.h \
merkleblock.h \
messagesigner.h \
miner.h \
net.h \
net_permissions.h \
net_processing.h \
Expand All @@ -272,6 +271,7 @@ BITCOIN_CORE_H = \
node/coin.h \
node/coinstats.h \
node/context.h \
node/miner.h \
node/psbt.h \
node/transaction.h \
node/ui_interface.h \
Expand Down Expand Up @@ -490,7 +490,6 @@ libbitcoin_server_a_SOURCES = \
masternode/payments.cpp \
masternode/sync.cpp \
masternode/utils.cpp \
miner.cpp \
net.cpp \
netfulfilledman.cpp \
netgroup.cpp \
Expand All @@ -500,6 +499,7 @@ libbitcoin_server_a_SOURCES = \
node/coinstats.cpp \
node/context.cpp \
node/interfaces.cpp \
node/miner.cpp \
node/psbt.cpp \
node/transaction.cpp \
node/ui_interface.cpp \
Expand Down
2 changes: 1 addition & 1 deletion src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@
#include <index/txindex.h>
#include <interfaces/node.h>
#include <mapport.h>
#include <miner.h>
#include <net.h>
#include <net_permissions.h>
#include <net_processing.h>
#include <netbase.h>
#include <netgroup.h>
#include <node/blockstorage.h>
#include <node/context.h>
#include <node/miner.h>
#include <node/ui_interface.h>
#include <policy/feerate.h>
#include <policy/fees.h>
Expand Down
3 changes: 2 additions & 1 deletion src/miner.cpp → src/node/miner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include <miner.h>
#include <node/miner.h>

#include <amount.h>
#include <chain.h>
Expand All @@ -22,6 +22,7 @@
#include <timedata.h>
#include <util/moneystr.h>
#include <util/system.h>
#include <validation.h>

#include <evo/specialtx.h>
#include <evo/cbtx.h>
Expand Down
9 changes: 5 additions & 4 deletions src/miner.h → src/node/miner.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_MINER_H
#define BITCOIN_MINER_H
#ifndef BITCOIN_NODE_MINER_H
#define BITCOIN_NODE_MINER_H

#include <primitives/block.h>
#include <txmempool.h>
Expand All @@ -13,10 +13,11 @@
#include <optional>
#include <stdint.h>

#include <boost/multi_index_container.hpp>
#include <boost/multi_index/ordered_index.hpp>
#include <boost/multi_index_container.hpp>

class BlockManager;
class ChainstateManager;
class CBlockIndex;
class CChainParams;
class CChainstateHelper;
Expand Down Expand Up @@ -231,4 +232,4 @@ class BlockAssembler
void IncrementExtraNonce(CBlock* pblock, const CBlockIndex* pindexPrev, unsigned int& nExtraNonce);
int64_t UpdateTime(CBlockHeader* pblock, const Consensus::Params& consensusParams, const CBlockIndex* pindexPrev);

#endif // BITCOIN_MINER_H
#endif // BITCOIN_NODE_MINER_H
3 changes: 1 addition & 2 deletions src/rpc/mining.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@
#include <llmq/chainlocks.h>
#include <llmq/instantsend.h>
#include <evo/evodb.h>
#include <miner.h>
#include <net.h>
#include <node/context.h>
#include <node/miner.h>
#include <policy/fees.h>
#include <pow.h>
#include <rpc/blockchain.h>
Expand Down
2 changes: 1 addition & 1 deletion src/test/block_reward_reallocation_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <consensus/validation.h>
#include <deploymentstatus.h>
#include <messagesigner.h>
#include <miner.h>
#include <node/miner.h>
#include <netbase.h>
#include <script/interpreter.h>
#include <script/sign.h>
Expand Down
2 changes: 1 addition & 1 deletion src/test/blockfilter_index_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <chainparams.h>
#include <consensus/validation.h>
#include <index/blockfilterindex.h>
#include <miner.h>
#include <node/miner.h>
#include <pow.h>
#include <script/standard.h>
#include <spork.h>
Expand Down
2 changes: 1 addition & 1 deletion src/test/dynamic_activation_thresholds_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <chainparams.h>
#include <consensus/validation.h>
#include <deploymentstatus.h>
#include <miner.h>
#include <node/miner.h>
#include <script/interpreter.h>
#include <spork.h>
#include <validation.h>
Expand Down
2 changes: 1 addition & 1 deletion src/test/fuzz/tx_pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include <consensus/validation.h>
#include <miner.h>
#include <node/miner.h>
#include <test/fuzz/FuzzedDataProvider.h>
#include <test/fuzz/fuzz.h>
#include <test/fuzz/util.h>
Expand Down
2 changes: 1 addition & 1 deletion src/test/miner_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <llmq/chainlocks.h>
#include <llmq/context.h>
#include <llmq/instantsend.h>
#include <miner.h>
#include <node/miner.h>
#include <policy/policy.h>
#include <pow.h>
#include <script/standard.h>
Expand Down
2 changes: 1 addition & 1 deletion src/test/util/mining.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
#include <consensus/merkle.h>
#include <evo/evodb.h>
#include <key_io.h>
#include <miner.h>
#include <node/context.h>
#include <node/miner.h>
#include <pow.h>
#include <script/standard.h>
#include <spork.h>
Expand Down
2 changes: 1 addition & 1 deletion src/test/util/setup_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
#include <llmq/snapshot.h>
#include <masternode/meta.h>
#include <masternode/sync.h>
#include <miner.h>
#include <net.h>
#include <net_processing.h>
#include <node/miner.h>
#include <noui.h>
#include <policy/fees.h>
#include <pow.h>
Expand Down
2 changes: 1 addition & 1 deletion src/test/validation_block_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <consensus/consensus.h>
#include <consensus/merkle.h>
#include <consensus/validation.h>
#include <miner.h>
#include <node/miner.h>
#include <pow.h>
#include <random.h>
#include <script/standard.h>
Expand Down
2 changes: 1 addition & 1 deletion test/sanitizer_suppressions/ubsan
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ implicit-signed-integer-truncation:addrman.h
implicit-signed-integer-truncation:chain.h
implicit-signed-integer-truncation:crypto/
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:streams.h
implicit-signed-integer-truncation:test/arith_uint256_tests.cpp
Expand Down

0 comments on commit 184a622

Please sign in to comment.