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

Validator connection display #17

Open
DimitrisSar opened this issue May 16, 2022 · 0 comments
Open

Validator connection display #17

DimitrisSar opened this issue May 16, 2022 · 0 comments

Comments

@DimitrisSar
Copy link
Contributor

New feature request (not very important since you can't do much with this info): Add your current connection info to the validator
(gRPC over http/2 on outbound tcp/8080). Include: IP Address + Port and P2P address (67.211.223.5:8080, 112vvCWKx3s3JrHqxan4fAqNAoezsNXAGyFvZchZmV6mCfwmMcvA) from example below:

Also: not much info you can extract from the api on https://api.helium.io/v1/validators/112vvCWKx3s3JrHqxan4fAqNAoezsNXAGyFvZchZmV6mCfwmMcvA
https://explorer.helium.com/validators/112vvCWKx3s3JrHqxan4fAqNAoezsNXAGyFvZchZmV6mCfwmMcvA/activity

Example log contents to be processed:

2022-05-16 05:18:22.653 7 [info] <0.1822.0>@miner_poc_grpc_client_statem:init:{174,5} starting miner_poc_grpc_client_statem
2022-05-16 05:18:29.518 7 [info] <0.1822.0>@miner_poc_grpc_client_statem:setup:{219,13} *** connecting to validator with ip: "67.211.223.5", port: 8080, addr: "/p2p/112vvCWKx3s3JrHqxan4fAqNAoezsNXAGyFvZchZmV6mCfwmMcvA"
2022-05-16 05:18:29.766 7 [info] <0.1822.0>@miner_poc_grpc_client_statem:connect_validator:{514,17} successfully connected to validator via connection #{client => http2_client,host => <<"67.211.223.5">>,http_connection => <0.1854.0>,scheme => <<"http">>}

The challenge will be to detect the current validator connection. In theory, it may change over time (after initial boot up of the miner)

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

No branches or pull requests

1 participant