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

log when choosing validator #2320

merged 5 commits into from
May 22, 2024

Conversation

tsahee
Copy link
Contributor

@tsahee tsahee commented May 21, 2024

No description provided.

@cla-bot cla-bot bot added the s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA. label May 21, 2024
diegoximenes
diegoximenes previously approved these changes May 21, 2024
@@ -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)

Copy link
Collaborator

@PlasmaPower PlasmaPower left a comment

Choose a reason for hiding this comment

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

LGTM

@PlasmaPower PlasmaPower enabled auto-merge May 22, 2024 03:12
@PlasmaPower PlasmaPower merged commit e89ca9a into master May 22, 2024
10 checks passed
@PlasmaPower PlasmaPower deleted the validator_names branch May 22, 2024 03:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants