Skip to content

Commit 519fdf3

Browse files
committed
fix: do not print private key in log (#12)
1 parent 37b0740 commit 519fdf3

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ For the details of mev_params, here are some notices:
2323
1. `make build`
2424
2. `.build/sentry -config ./configs/config.toml`
2525

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

29+
config-example.toml:
2830
```
2931
[Service]
3032
HTTPListenAddr = "localhost:8555" # The address to listen on for HTTP requests.

cmd/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ func main() {
3737

3838
openPrometheusAndPprof(cfg.Debug.ListenAddr)
3939

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

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

0 commit comments

Comments
 (0)