Skip to content
This repository was archived by the owner on Jun 12, 2023. It is now read-only.

Disable p2p connections when the node is not running the chain #1801

Merged
merged 1 commit into from
Aug 17, 2022

Conversation

Vagabond
Copy link
Contributor

No description provided.

@Vagabond
Copy link
Contributor Author

This appears to be working well in real-world testing.

@Vagabond Vagabond force-pushed the adt/less-libp2p-for-hotspots branch from 31f8493 to 0df7867 Compare August 17, 2022 15:21
@evanmcc evanmcc merged commit 0b1e3c9 into master Aug 17, 2022
@evanmcc evanmcc deleted the adt/less-libp2p-for-hotspots branch August 17, 2022 16:50
@@ -77,7 +77,17 @@ init(_Opts) ->
case {MinerMode, GatewaysRunChain} of
{gateway, false} ->
lager:info("grpc gateway, not loading chain"),
application:set_env(blockchain, autoload, false);
application:set_env(blockchain, autoload, false),
case application:get_env(miner, gateway_and_mux_enable) of
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not use the 'mode' var here, which for gateways will be set to 'gateway' ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants