net: Add -networkactive option

The `setnetworkactive' RPC command is already present.
This new option allows to start the client with disabled p2p network
activity for testing or reindexing.
This commit is contained in:
Hennadii Stepanov
2020-07-09 10:07:47 +03:00
parent f7c19e829e
commit 62fe6aa87e
3 changed files with 6 additions and 3 deletions

View File

@@ -181,7 +181,7 @@ public:
}
}
CConnman(uint64_t seed0, uint64_t seed1);
CConnman(uint64_t seed0, uint64_t seed1, bool network_active = true);
~CConnman();
bool Start(CScheduler& scheduler, const Options& options);