aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-07-09 10:07:47 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-07-22 22:55:11 +0300
commit62fe6aa87e4cdd8b06207abc1387c68d7bfc04c1 (patch)
tree93b7d18a4ca1be760b3ba50eaaa727883d2b99c8 /src/net.h
parentf7c19e829eca10ce8b4acafc61264f8bb9b922f3 (diff)
downloadbitcoin-62fe6aa87e4cdd8b06207abc1387c68d7bfc04c1.tar.xz
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.
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.h b/src/net.h
index 3c23763954..487b1e98cd 100644
--- a/src/net.h
+++ b/src/net.h
@@ -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);