chainparams: do not log signet startup messages for other chains#20048
chainparams: do not log signet startup messages for other chains#20048maflcko merged 1 commit intobitcoin:masterfrom
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. |
|
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 |
|
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.