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(node): adding agent version #379

Merged
merged 3 commits into from
Sep 13, 2024
Merged

Conversation

guillaumemichel
Copy link
Contributor

At ProbeLab we are measuring the Celestia network and producing weekly reports. We would like to include numbers on light nodes, however we noticed that Lumina nodes don't advertise an agent version through the libp2p identify protocol. So we cannot distinguish Lumina nodes, and we would like to include them in our statistics.

I added just the basic user agent, feel free to complete the PR and add more information, such as version number, build etc. For inspiration celestia-node uses the following user agent format celestia-node/celestia/light/v0.16.0/6744f64.

@zvolin zvolin requested review from zvolin, oblique and fl0rek September 13, 2024 10:40
Signed-off-by: Yiannis Marangos <psyberbits@gmail.com>
Copy link
Member

@oblique oblique left a comment

Choose a reason for hiding this comment

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

LGTM. I added the crate version.

Copy link
Member

@fl0rek fl0rek left a comment

Choose a reason for hiding this comment

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

nice, thanks @guillaumemichel!

Copy link
Member

@zvolin zvolin left a comment

Choose a reason for hiding this comment

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

Added also network name so the pattern now is lumina/{network}/{version}

@zvolin zvolin enabled auto-merge (squash) September 13, 2024 13:18
@zvolin zvolin merged commit 0a0fbb3 into eigerco:main Sep 13, 2024
6 checks passed
@zvolin zvolin mentioned this pull request Sep 13, 2024
@guillaumemichel guillaumemichel deleted the agent-version branch September 17, 2024 08:41
zvolin added a commit to fl0rek/celestia-node-rs that referenced this pull request Sep 20, 2024
Signed-off-by: Yiannis Marangos <psyberbits@gmail.com>
Co-authored-by: Yiannis Marangos <psyberbits@gmail.com>
Co-authored-by: zvolin <mac.zwolinski@gmail.com>
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.

4 participants