Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Expose http debug page #2952

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

feat: Expose http debug page #2952

wants to merge 13 commits into from

Conversation

brunoffranca
Copy link
Member

@brunoffranca brunoffranca commented Sep 24, 2024

What ❔

Exposes the consensus http debug on port 5000.
Fixes BFT-508

@brunoffranca brunoffranca marked this pull request as ready for review September 26, 2024 16:47
pompon0
pompon0 previously approved these changes Sep 26, 2024
@@ -41,10 +41,12 @@ pub fn get_consensus_config(

let public_addr = SocketAddr::new(CONSENSUS_PUBLIC_ADDRESS_HOST, ports.consensus_port);
let server_addr = SocketAddr::new(CONSENSUS_SERVER_ADDRESS_HOST, ports.consensus_port);
let debug_page_addr = SocketAddr::new(IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)), 5000);
Copy link
Contributor

Choose a reason for hiding this comment

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

You shouldn't set a fixed port for the debug page. Please consult @Deniallugo on how to set it up correctly.

Copy link
Contributor

Choose a reason for hiding this comment

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

exactly, it's better to introduce this port to the configs, otherwise, we will meet the port overlap

Copy link
Member Author

Choose a reason for hiding this comment

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

To here?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'd rather at it at least to the consensus config files

Copy link
Member Author

Choose a reason for hiding this comment

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

ConsensusConfig is what is output from this function.

Copy link
Contributor

Choose a reason for hiding this comment

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

oh, ok than yes

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

Successfully merging this pull request may close these issues.

3 participants