Skip to content

Commit

Permalink
fix: do not print private key in log (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
irrun committed Jun 20, 2024
1 parent 37b0740 commit 519fdf3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ For the details of mev_params, here are some notices:
1. `make build`
2. `.build/sentry -config ./configs/config.toml`

Sentry settings are configured in the `config.toml` file. The following is an example of a `config.toml` file:
❗❗❗This is an important security notice: Please do not configure any validator's private key here.
Please create entirely new accounts as pay bid accounts.

config-example.toml:
```
[Service]
HTTPListenAddr = "localhost:8555" # The address to listen on for HTTP requests.
Expand Down
3 changes: 2 additions & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ func main() {

openPrometheusAndPprof(cfg.Debug.ListenAddr)

log.Infow("bsc mev-sentry start", "configPath", *configPath, "config", cfg)
log.Infow("bsc mev-sentry start", "configPath", *configPath,
"validator_count", len(cfg.Validators), "builder_count", len(cfg.Builders))

validators := make(map[string]node.Validator)
for _, v := range cfg.Validators {
Expand Down

0 comments on commit 519fdf3

Please sign in to comment.