Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,15 @@ docker build -f Dockerfile.ethpandaops -t ethpandaops/erigone:latest .
./erigon/build/bin/erigon --xatu.config /path/to/xatu-config.yaml --chain mainnet
```

`--xatu.config` takes an [execution-processor config](https://github.com/ethpandaops/execution-processor#configuration). `${VAR}` and `${VAR:-default}` placeholders in its values are replaced with environment variables after it is parsed, so credentials can be passed in the environment instead of written into the file:

```yaml
redis:
address: "redis://:${REDIS_PASSWORD}@localhost:6379"
```

Startup fails, naming the variable, if a `${VAR}` without a default is unset or empty. See [Environment Variables](https://github.com/ethpandaops/execution-processor#environment-variables) for the full rules.

## Scripts

| Script | Purpose |
Expand Down
3 changes: 1 addition & 2 deletions overlay/node/xatu/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ import (
"github.com/ethpandaops/execution-processor/pkg/state"
r "github.com/redis/go-redis/v9"
"github.com/sirupsen/logrus"
"gopkg.in/yaml.v3"

"github.com/erigontech/erigon/common/log/v3"
"github.com/erigontech/erigon/db/datadir"
Expand Down Expand Up @@ -136,7 +135,7 @@ func loadConfig(file string) (*config.Config, error) {

type plain config.Config

if err := yaml.Unmarshal(yamlFile, (*plain)(cfg)); err != nil {
if err := config.UnmarshalWithEnv(yamlFile, (*plain)(cfg)); err != nil {
return nil, err
}

Expand Down
2 changes: 1 addition & 1 deletion scripts/update-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fi

echo "Adding erigone-specific dependencies..."

go get github.com/ethpandaops/execution-processor@v0.5.1
go get github.com/ethpandaops/execution-processor@v0.6.1
go get github.com/creasty/defaults@v1.8.0
go get github.com/redis/go-redis/v9@v9.17.2
go get github.com/sirupsen/logrus@v1.9.3
Expand Down
Loading