mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 23:18:15 -05:00
**What type of PR is this?** Other **What does this PR do? Why is it needed?** - Added log prefix to the `genesis` package. - Added log prefix to the `params` package. - `WithGenesisValidatorsRoot`: Use camelCase for log field param. - Move `Origin checkpoint found in db` log from WARN to INFO, since it is the expected behaviour. **Other notes for review** Please read commit by commit **Acknowledgements** - [x] I have read [CONTRIBUTING.md](https://github.com/prysmaticlabs/prysm/blob/develop/CONTRIBUTING.md). - [x] I have included a uniquely named [changelog fragment file](https://github.com/prysmaticlabs/prysm/blob/develop/CONTRIBUTING.md#maintaining-changelogmd). - [x] I have added a description to this PR with sufficient context for reviewers to understand this PR.
15 lines
311 B
Go
15 lines
311 B
Go
package params
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
type Option func(*BeaconChainConfig)
|
|
|
|
func WithGenesisValidatorsRoot(gvr [32]byte) Option {
|
|
return func(cfg *BeaconChainConfig) {
|
|
cfg.GenesisValidatorsRoot = gvr
|
|
log.WithField("genesisValidatorsRoot", fmt.Sprintf("%#x", gvr)).Info("Setting genesis validators root")
|
|
}
|
|
}
|