-
Notifications
You must be signed in to change notification settings - Fork 4
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
fix: do not print private key in log #12
Conversation
node/validator.go
Outdated
PayAccountAddress string | ||
SentryAccountMode account.Mode | ||
// SentryPrivateKey private key of sentry wallet | ||
SentryPrivateKey string |
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.
Please dont do such modification, it is a breaking change to external validators.
If they upgrade to the latest release, then they have to change the configures, if they dont, there is no error log to info them at all.
cmd/main.go
Outdated
@@ -37,7 +37,8 @@ func main() { | |||
|
|||
openPrometheusAndPprof(cfg.Debug.ListenAddr) | |||
|
|||
log.Infow("bsc mev-sentry start", "configPath", *configPath, "config", cfg) | |||
hidedCfg, _ := cfg.HidePrivateKey() | |||
log.Infow("bsc mev-sentry start", "configPath", *configPath, "config", hidedCfg) |
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 dont think it is necessary to print the whole setting in the log. ( Do not see similar logic in other repo like BSC, opBNB)
Description
add a description of your changes here...
Rationale
tell us why we need these changes...
Example
add an example CLI or API response...
Changes
Notable changes: