Skip to content

Commit

Permalink
Merge pull request #2320 from OffchainLabs/validator_names
Browse files Browse the repository at this point in the history
log when choosing validator
  • Loading branch information
PlasmaPower authored May 22, 2024
2 parents f8ae47c + 7f01724 commit e89ca9a
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", "WasmModuleRoot", root, "chosen", "redis")
} else {
for _, spawner := range v.execSpawners {
if validator.SpawnerSupportsModule(spawner, root) {
v.chosenValidator[root] = spawner
log.Info("validator chosen", "WasmModuleRoot", root, "chosen", spawner.Name())
break
}
}
if v.chosenValidator[root] == nil {
log.Error("validator not found", "WasmModuleRoot", root)
}
}
}
return nil
Expand Down

0 comments on commit e89ca9a

Please sign in to comment.