-
Notifications
You must be signed in to change notification settings - Fork 467
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
Conversation
staker/block_validator.go
Outdated
@@ -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") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick:
log.Info("validator chosen", "WasmMosuleRoot", root, "chosen", "redis") | |
log.Info("validator chosen", "WasmModuleRoot", root, "chosen", "redis") |
staker/block_validator.go
Outdated
} else { | ||
for _, spawner := range v.execSpawners { | ||
if validator.SpawnerSupportsModule(spawner, root) { | ||
v.chosenValidator[root] = spawner | ||
log.Info("validator chosen", "WasmMosuleRoot", root, "chosen", spawner.Name()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick:
log.Info("validator chosen", "WasmMosuleRoot", root, "chosen", spawner.Name()) | |
log.Info("validator chosen", "WasmModuleRoot", root, "chosen", spawner.Name()) |
staker/block_validator.go
Outdated
break | ||
} | ||
} | ||
if v.chosenValidator[root] == nil { | ||
log.Error("validator not found", "WasmMosuleRoot", root) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick:
log.Error("validator not found", "WasmMosuleRoot", root) | |
log.Error("validator not found", "WasmModuleRoot", root) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.