mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-13 15:39:05 +01:00
Remove unnecessary dependencies for bitcoin-cli
This commit removes all the unnecessary dependencies (key, core, netbase, sync, ...) from bitcoin-cli. To do this it shards the chain parameters into BaseParams, which contains just the RPC port and data directory (as used by utils and bitcoin-cli) and Params, with the rest.
This commit is contained in:
@@ -83,9 +83,9 @@ namespace Checkpoints
|
||||
};
|
||||
|
||||
const CCheckpointData &Checkpoints() {
|
||||
if (Params().NetworkID() == CChainParams::TESTNET)
|
||||
if (Params().NetworkID() == CBaseChainParams::TESTNET)
|
||||
return dataTestnet;
|
||||
else if (Params().NetworkID() == CChainParams::MAIN)
|
||||
else if (Params().NetworkID() == CBaseChainParams::MAIN)
|
||||
return data;
|
||||
else
|
||||
return dataRegtest;
|
||||
|
||||
Reference in New Issue
Block a user