erigontech / erigontech/erigon

SnapsPanic on empty ChainName

Open
#13,019 0 comments 0 reactions 0 assignees View on GitHub
ErigonDB
Dominant language
Go
Stars
3.6k
Forks
1.5k
Avg merge
1d 16h
Merged PRs (30d)
455

Description

after https://github.com/erigontech/erigon/issues/13017

- add panic to:
```
if cfg.ChainName == "" {
log.Debug("[dbg] NewCaplinSnapshots created with empty ChainName", "stack", dbg.Stack())
}
```
or somehow avoid usage of ChainName by `KnownCfg` method

- add panic to:
```
func Seedable(networkName string, info snaptype.FileInfo) bool {
if networkName == "" {
return false
}
```

- same about
```
if cfg.ChainName == "" {
log.Debug("[dbg] newRoSnapshots created with empty ChainName", "stack", dbg.Stack())
}

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.