Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Add warning to --state-history-endpoint #6776

Merged
merged 3 commits into from
Feb 21, 2019
Merged

Conversation

tbfleming
Copy link
Contributor

@tbfleming tbfleming commented Feb 19, 2019

Change Description

The help message for --state-history-endpoint now includes a warning to only expose this port to private networks.

The default endpoint for the state history plugin has changed to 127.0.0.1:8080.

Consensus Changes

API Changes

Documentation Additions

@@ -512,7 +512,8 @@ void state_history_plugin::set_program_options(options_description& cli, options
options("trace-history", bpo::bool_switch()->default_value(false), "enable trace history");
options("chain-state-history", bpo::bool_switch()->default_value(false), "enable chain state history");
options("state-history-endpoint", bpo::value<string>()->default_value("0.0.0.0:8080"),
"the endpoint upon which to listen for incoming connections");
"the endpoint upon which to listen for incoming connections. Caution: only expose this port to "
"your internal network.");
Copy link
Contributor

Choose a reason for hiding this comment

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

Should the provided default be 127.0.0.1:8080 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It depends on if users normally run the fillers on the same or different machines

Copy link
Contributor

Choose a reason for hiding this comment

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

Should you change the default value on line 514 to 127.0.0.1:8080 since that will be the normal case?

@larryk85 larryk85 merged commit 8b22902 into develop Feb 21, 2019
@larryk85 larryk85 deleted the state-history-warning branch February 21, 2019 02:35
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.

4 participants