Skip to content

Commit f3c57bf

Browse files
committed
scripted-diff: Remove unused chainparamsbase includes
This is a follow-up to previous commits moving the chain names out of chainparamsbase. The script removes the chainparamsbase header in all files where it is included, but not used. This is done by filtering against all defined symbols of the header as well as its respective .cpp file. The kernel chainparams now no longer relies on chainparamsbase. -BEGIN VERIFY SCRIPT- sed -i '/#include <chainparamsbase.h>/d' $( git grep -l 'chainparamsbase.h' | xargs grep -L 'CBaseChainParams\|CreateBaseChainParams\|SetupChainParamsBaseOptions\|BaseParams\|SelectBaseParams\|chainparamsbase.cpp' ) -END VERIFY SCRIPT-
1 parent 0cd03c5 commit f3c57bf

File tree

14 files changed

+0
-14
lines changed

14 files changed

+0
-14
lines changed

src/bench/rpc_mempool.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

55
#include <bench/bench.h>
6-
#include <chainparamsbase.h>
76
#include <kernel/cs_main.h>
87
#include <kernel/mempool_entry.h>
98
#include <rpc/mempool.h>

src/chainparams.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
#include <kernel/chainparams.h>
1010

11-
#include <chainparamsbase.h>
1211
#include <consensus/params.h>
1312
#include <netaddress.h>
1413
#include <primitives/block.h>

src/kernel/chainparams.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
#include <kernel/chainparams.h>
77

8-
#include <chainparamsbase.h>
98
#include <chainparamsseeds.h>
109
#include <consensus/amount.h>
1110
#include <consensus/merkle.h>

src/qt/networkstyle.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
#include <qt/guiconstants.h>
88

9-
#include <chainparamsbase.h>
109
#include <tinyformat.h>
1110
#include <util/chainname.h>
1211

src/rpc/external_signer.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#include <chainparamsbase.h>
65
#include <external_signer.h>
76
#include <rpc/server.h>
87
#include <rpc/util.h>

src/test/fuzz/coins_view.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

55
#include <chainparams.h>
6-
#include <chainparamsbase.h>
76
#include <coins.h>
87
#include <consensus/amount.h>
98
#include <consensus/tx_check.h>

src/test/fuzz/connman.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
#include <addrman.h>
66
#include <chainparams.h>
7-
#include <chainparamsbase.h>
87
#include <net.h>
98
#include <netaddress.h>
109
#include <protocol.h>

src/test/fuzz/key.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

55
#include <chainparams.h>
6-
#include <chainparamsbase.h>
76
#include <key.h>
87
#include <key_io.h>
98
#include <outputtype.h>

src/test/fuzz/net.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

55
#include <chainparams.h>
6-
#include <chainparamsbase.h>
76
#include <net.h>
87
#include <net_permissions.h>
98
#include <netaddress.h>

src/test/fuzz/script_sigcache.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

55
#include <chainparams.h>
6-
#include <chainparamsbase.h>
76
#include <key.h>
87
#include <pubkey.h>
98
#include <script/sigcache.h>

0 commit comments

Comments
 (0)