-
Notifications
You must be signed in to change notification settings - Fork 38.7k
chainparams: do not log signet startup messages for other chains #20048
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
Conversation
|
Seems odd for a constructor to log anyway. I'd say to remove them or move them elsewhere |
|
Makes sense, but I didn't move them because they are related to the values being set, and because the first message interrelates with the other |
|
Concept ACK Agree with MarcoFalke regarding removing them from the ctor. |
|
Concept ACK. |
kallewoof
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.
Concept and utACK
|
Removing is fine, but they're useful esp for custom signets since you need the magic for external software. |
|
The magic is logged unconditionally in the constructor. If needed, it can be logged unconditionally in the startup-sequence, e.g. init.cpp |
and move signet network magic logging from chainparams.cpp to init.cpp
8fdcadb to
6fccad7
Compare
|
Updated proposal: removed the first message and moved the signet network magic message to |
kallewoof
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.
utACK 6fccad7
hebasto
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.
ACK 6fccad7
Maybe also add testing for not appearing signet messages in the log if not on signet?
|
ACK 6fccad7 |
TBH was tempted but thought even the one added test might be overkill. |
I just tested this manually, and it seems unlikely and low-risk to regress |
The following signet startup messages are printed to the debug log immediately on node startup for all chains. This behavior occurs on master as a side effect after the merge of #20014. This PR removes the first message and moves the signet derived magic logging to
init.cpp.