Skip to content

Commit 1647ed8

Browse files
committed
fixup! feat(prt): initial implementation of the PRT service
1 parent 579f2b0 commit 1647ed8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

internal/prt/prt.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,9 @@ func (s *Service) createTournament(
250250

251251
finalStatePtr = new(common.Hash)
252252
*finalStatePtr = finalState
253+
} else {
254+
s.Logger.Info("Found open "+level.String()+" tournament", "application", app.Name,
255+
"epoch", epoch.Index, "tournament_address", tournamentAddress.String())
253256
}
254257

255258
t := &Tournament{
@@ -448,6 +451,10 @@ func (s *Service) fetchTournamentData(
448451
s.Logger.Error("failed to check if "+level.String()+" tournament was finished", "application", app.Name,
449452
"epoch", epoch.Index, "tournament_address", tournamentAddress.String(), "error", err)
450453
}
454+
if t.FinishedAtBlock != 0 {
455+
s.Logger.Info(level.String()+" tournament was finished", "application", app.Name,
456+
"epoch", epoch.Index, "tournament_address", t.Address.String())
457+
}
451458
}
452459

453460
nextSearchBlock := max(epoch.LastBlock, app.LastTournamentCheckBlock+1)

0 commit comments

Comments
 (0)