Page MenuHomePhabricator

scripted-diff: Move miner to src/node
ClosedPublic

Authored by PiRK on Dec 5 2022, 09:52.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABCb4e87c617950: 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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable