Skip to content

Commit

Permalink
log when choosing validator
Browse files Browse the repository at this point in the history
  • Loading branch information
tsahee committed May 21, 2024
1 parent 6485758 commit b3693be
Showing 1 changed file with 5 additions and 0 deletions.
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")
} else {
for _, spawner := range v.execSpawners {
if validator.SpawnerSupportsModule(spawner, root) {
v.chosenValidator[root] = spawner
log.Info("validator chosen", "WasmMosuleRoot", root, "chosen", spawner.Name())
break
}
}
if v.chosenValidator[root] == nil {
log.Error("validator not found", "WasmMosuleRoot", root)
}
}
}
return nil
Expand Down

0 comments on commit b3693be

Please sign in to comment.