GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Feat: Print websocket port on startup by aarjn · Pull Request #351 · magicblock-labs/magicblock-validator

Conversation

@aarjn

@aarjn aarjn commented Apr 28, 2025 •
edited by greptile-apps Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

PR for #320
Screenshot 2025-04-28 at 9 53 15 AM

Greptile Summary

Enhanced startup messaging to display both RPC and WebSocket endpoint information, improving clarity by showing the conventional WebSocket port (RPC port + 1) during validator initialization.

  • Added WS_PORT_OFFSET constant in /test-bins/src/rpc.rs to make port offset more maintainable
  • Implemented formatted startup message with visual separators and emoji indicators for better readability
  • Added clear endpoint URLs showing both HTTP RPC and WebSocket addresses with their respective ports
  • Added developer-friendly startup banner with "Magicblock Validator is running!" message

💡 (1/5) You can manually trigger the bot by mentioning @greptileai in a comment!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

notdanilo and greptile-apps[bot] reacted with thumbs up emoji
All reactions
  • 👍 2 reactions
aarjn added 2 commits April 21, 2025 16:12
@aarjn
feat: print websocket ports on startup
bf065a2
@aarjn
fix: removed slot time
4c9d714
greptile-apps[bot]
greptile-apps Bot reviewed Apr 28, 2025
View reviewed changes

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

1 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread test-bins/src/rpc.rs Outdated
Comment on lines +78 to +79
info!("📡 RPC endpoint: http://{:}:{}", rpc_host, rpc_port);
info!("🔌 WebSocket endpoint: ws://{}:{}", rpc_host, ws_port);

@greptile-apps greptile-apps Bot Apr 28, 2025

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

syntax: Inconsistent formatting between RPC and WebSocket endpoints - one uses {:} and the other uses {}

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@GabrielePicco GabrielePicco Apr 29, 2025

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Agreed, pleas use {} for uniformity.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

aarjn reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@aarjn aarjn mentioned this pull request Apr 28, 2025
Feat: Print websocket port on startup #320
Closed
greptile-apps[bot]
greptile-apps Bot reviewed Apr 28, 2025
View reviewed changes

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM

1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@GabrielePicco
Merge branch 'master' into master
1cd8428
GabrielePicco
GabrielePicco requested changes Apr 29, 2025
View reviewed changes

@GabrielePicco GabrielePicco left a comment

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Thanks for the contribution, LGTM! 🚀

Please address the comment and use the linter with make fmt and make lint and it's ready to be merged

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread test-bins/src/rpc.rs Outdated
Comment on lines +78 to +79
info!("📡 RPC endpoint: http://{:}:{}", rpc_host, rpc_port);
info!("🔌 WebSocket endpoint: ws://{}:{}", rpc_host, ws_port);

@GabrielePicco GabrielePicco Apr 29, 2025

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Agreed, pleas use {} for uniformity.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

aarjn reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
greptile-apps[bot]
greptile-apps Bot reviewed Apr 29, 2025
View reviewed changes

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

1 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread test-bins/src/rpc.rs Resolved

Uh oh!

There was an error while loading. Please reload this page.

@aarjn
format: {:} -> {}
b23161e
aarjn
aarjn commented Apr 29, 2025
View reviewed changes
Comment thread test-bins/src/rpc.rs Resolved

Uh oh!

There was an error while loading. Please reload this page.

@aarjn
fix: add offset for ws port
e70124c
@aarjn

aarjn commented Apr 30, 2025

Copy link
Copy Markdown
Contributor Author

Changes made:

  • Add WebSocket port offset
  • Changed {:} to {}
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@GabrielePicco
GabrielePicco changed the base branch from master to dev April 30, 2025 09:14
greptile-apps[bot]
greptile-apps Bot reviewed Apr 30, 2025
View reviewed changes

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM

1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@GabrielePicco

GabrielePicco commented Apr 30, 2025

Copy link
Copy Markdown
Collaborator

Thanks for the changes @4rjunc, LGTM! Merging into dev branch to run the CI

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@GabrielePicco
GabrielePicco merged commit d1a48bd into magicblock-labs:dev Apr 30, 2025
bmuddha pushed a commit that referenced this pull request Apr 30, 2025
@GabrielePicco @aarjn
Feat: Print websocket port on startup (#351) (#353)
c7609a9
PR for #320 by @4rjunc 

<img width="789" alt="Screenshot 2025-04-28 at 9 53 15 AM"
src="https://github.com/user-attachments/assets/38d168a8-70c4-46f2-bf1b-2566cc599f16"
/>


<!-- greptile_comment -->

## Greptile Summary

Enhanced startup messaging to display both RPC and WebSocket endpoint
information, improving clarity by showing the conventional WebSocket
port (RPC port + 1) during validator initialization.

- Added `WS_PORT_OFFSET` constant in `/test-bins/src/rpc.rs` for
maintainable port offset configuration
- Added formatted startup banner with visual separators and emoji
indicators
- Implemented clear endpoint display showing both HTTP RPC and WebSocket
URLs with respective ports
- Added developer-friendly welcome message "Magicblock Validator is
running!"



<!-- /greptile_comment -->

---------

Co-authored-by: Arjun C <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@GabrielePicco GabrielePicco GabrielePicco requested changes
+1 more reviewer
@greptile-apps greptile-apps[bot] greptile-apps[bot] left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@aarjn @GabrielePicco
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.