Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log when choosing validator #2320

Merged
merged 5 commits into from
May 22, 2024
Merged
Changes from 1 commit
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
5 changes: 5 additions & 0 deletions staker/block_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -1097,13 +1097,18 @@ func (v *BlockValidator) Initialize(ctx context.Context) error {
for _, root := range moduleRoots {
if v.redisValidator != nil && validator.SpawnerSupportsModule(v.redisValidator, root) {
v.chosenValidator[root] = v.redisValidator
log.Info("validator chosen", "WasmMosuleRoot", root, "chosen", "redis")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick:

Suggested change
log.Info("validator chosen", "WasmMosuleRoot", root, "chosen", "redis")
log.Info("validator chosen", "WasmModuleRoot", root, "chosen", "redis")

} else {
for _, spawner := range v.execSpawners {
if validator.SpawnerSupportsModule(spawner, root) {
v.chosenValidator[root] = spawner
log.Info("validator chosen", "WasmMosuleRoot", root, "chosen", spawner.Name())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick:

Suggested change
log.Info("validator chosen", "WasmMosuleRoot", root, "chosen", spawner.Name())
log.Info("validator chosen", "WasmModuleRoot", root, "chosen", spawner.Name())

break
}
}
if v.chosenValidator[root] == nil {
log.Error("validator not found", "WasmMosuleRoot", root)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick:

Suggested change
log.Error("validator not found", "WasmMosuleRoot", root)
log.Error("validator not found", "WasmModuleRoot", root)

}
}
}
return nil
Expand Down
Loading