Skip to content

Fix leaderboard definition lookup during score admission - #7

Open
raspi-user wants to merge 1 commit into
masterfrom
fix/leaderboard-definition-validation
Open

raspi-user wants to merge 1 commit into
masterfrom
fix/leaderboard-definition-validation

Conversation

@raspi-user

Copy link
Copy Markdown

Summary

  • read indexed leaderboard definitions directly from the in-process lookup service
  • stop treating LookupService.lookup output references as definition records
  • retain the network lookup fallback for older host runtimes

Root cause

The topic manager expected publisherPubKey on the result of LookupService.lookup. That API returns output references, so publisher-attested submissions were rejected as an unknown leaderboard even though the definition was indexed.

Validation

  • npm run build -w @leaderlib/backend
  • deployed the patch to a new CARS mainnet backend
  • seeded the existing peerjump:highscores definition
  • accepted and indexed score transaction bb1ff10b77b740ee141972ada49d969773724d0f46f46d984d8ddc9cc52dadbe

The deployment-specific CARS project entry is intentionally excluded from this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant