-
Notifications
You must be signed in to change notification settings - Fork 3
Feat: Print websocket port on startup #351
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
base: master
Are you sure you want to change the base?
Conversation
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
test-bins/src/rpc.rs
Outdated
info!("📡 RPC endpoint: http://{:}:{}", rpc_host, rpc_port); | ||
info!("🔌 WebSocket endpoint: ws://{}:{}", rpc_host, ws_port); |
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 {}
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.
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
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
test-bins/src/rpc.rs
Outdated
info!("📡 RPC endpoint: http://{:}:{}", rpc_host, rpc_port); | ||
info!("🔌 WebSocket endpoint: ws://{}:{}", rpc_host, ws_port); |
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.
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
info!(""); | ||
info!("🧙 Magicblock Validator is running!"); | ||
info!("-----------------------------------"); | ||
info!("📡 RPC endpoint: http://{}:{}", rpc_host, rpc_port); |
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.
changed {:} -> {}
PR for #320

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.
/test-bins/src/rpc.rs
(RPC port + 1)💡 (1/5) You can manually trigger the bot by mentioning @greptileai in a comment!