-
Notifications
You must be signed in to change notification settings - Fork 41
Added log if initial peers are invalid #1703
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: develop
Are you sure you want to change the base?
Conversation
OCaml Reference Validation ResultsRepository: https://github.com/MinaProtocol/mina.git Click to see full validation output |
✓ Code Reference Verification PassedAll code references in the documentation have been verified successfully! Total references checked: 1 The documentation is in sync with the codebase on the |
9033737 to
b7212dd
Compare
35f70b1 to
adf6fba
Compare
adf6fba to
e8a0d18
Compare
e8a0d18 to
6f9b84b
Compare
51216b4 to
38dc53f
Compare
38dc53f to
c25cfb5
Compare
|
Looking at it now. |
| crate::core::error!( | ||
| crate::core::log::system_time(); | ||
| summary = "Exiting", | ||
| error = "Invalid initial peers" |
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.
We are continuously printing on the stdout:
2025-12-04T16:42:16.552063Z ERROR node::reducer: time="1764866536552054251" summary="Exiting" error="Invalid initial peers"
2025-12-04T16:42:16.656957Z ERROR node::reducer: time="1764866536656948167" summary="Exiting" error="Invalid initial peers"
2025-12-04T16:42:16.761831Z ERROR node::reducer: time="1764866536761823042" summary="Exiting" error="Invalid initial peers"
2025-12-04T16:42:16.866726Z ERROR node::reducer: time="1764866536866719208" summary="Exiting" error="Invalid initial peers"
2025-12-04T16:42:16.971191Z ERROR node::reducer: time="1764866536971179084" summary="Exiting" error="Invalid initial peers"
2025-12-04T16:42:17.076161Z ERROR node::reducer: time="1764866537076153209" summary="Exiting" error="Invalid initial peers"
2025-12-04T16:42:17.181250Z ERROR node::reducer: time="1764866537181236750" summary="Exiting" error="Invalid initial peers"
2025-12-04T16:42:17.286159Z ERROR node::reducer: time="1764866537286148292" summary="Exiting" error="Invalid initial peers"
2025-12-04T16:42:17.391037Z ERROR node::reducer: time="1764866537391026792" summary="Exiting" error="Invalid initial peers"
2025-12-04T16:42:17.496219Z ERROR node::reducer: time="1764866537496203709" summary="Exiting" error="Invalid initial peers"
2025-12-04T16:42:17.601182Z ERROR node::reducer: time="1764866537601171959" summary="Exiting" error="Invalid initial peers"
2025-12-04T16:42:17.706175Z ERROR node::reducer: time="1764866537706161792" summary="Exiting" error="Invalid initial peers"
2025-12-04T16:42:17.811069Z ERROR node::reducer: time="1764866537811057709" summary="Exiting" error="Invalid initial peers"
However, it does not say which peers to remove. I know from the command I run for my test, but a user might be confused. Can you make it more explicit, please?
| RpcEffectful(RpcEffectfulAction), | ||
|
|
||
| WatchedAccounts(WatchedAccountsAction), | ||
| Exit(ExitAction), |
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.
There is no documentation for the others. Could you add a one-liner please?
Also, why do you call it Exit? By reading the code, I would have expected that it is an action to kill the node. But it is simply writing an error message. It is inconsistent with what we would expect by reading the code.
| if p2p.ready_peers().is_empty() && kad_state.has_bootstraped { | ||
| if let Some(tip) = &state.transition_frontier.best_tip_breadcrumb() { | ||
| // TODO: this might need to change in future | ||
| if tip.height() == 296372 { |
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.
Where does this value come from?
| Dashboard, documenting all endpoints and specific data fields used by the | ||
| frontend ([#1566](https://github.com/o1-labs/mina-rust/issues/1566)) | ||
|
|
||
| - **FEATURE**: Add logging if initial peers are invalid |
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.
| - **FEATURE**: Add logging if initial peers are invalid | |
| - **Feature**: Add logging if an initial peer is invalid |
FEATURE -> Feature: there is no need to capitalize the word.
Plural -> singular: one initial peer is enough to have a log.
| pub streams: StreamState<P2pNetworkKadStreamState>, | ||
| pub status: P2pNetworkKadStatus, | ||
| pub filter_addrs: bool, | ||
| pub has_bootstraped: bool, |
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.
Is it still related to the initial goal of this patch? I don't understand the link.
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.
I see, it is used in a condition above.
dannywillems
left a comment
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.
See comments
Issue #1641