HomePhabricator

scripted-diff: Move miner to src/node

Description

scripted-diff: Move miner to src/node

Summary:
PR description:

It is impossible to run the miner without a node (validation, chainstate, mempool, rpc, ...). Also, the module is in the node library. Thus, it should be moved 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-

The only deviation from the script is the alphabetical sorting in includes and CMakeLists.txt.
The third commit in the PR is not applicable.

This is a backport of core#23517

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D12762

Details

Provenance
PiRKAuthored on Dec 5 2022, 09:45
PiRKPushed on Dec 5 2022, 12:38
Reviewer
Restricted Project
Differential Revision
D12762: scripted-diff: Move miner to src/node
Parents
rABC965130e5efd4: [Cashtab] [no BigNumber in indexedDb p2/2] Remove debug logging
Branches
Unknown
Tags
Unknown