Leadeboards discrepancies when blacklist is active

Hi there!
It seems like there’s a little bug when retrieving user entries in a leaderboard depending on the fact if that leaderboard is blacklisted or not.

if _, entries, _, _, err := nk.LeaderboardRecordsList(ctx, "some_lb", []string{playerID}, 10, "", 0); err == nil {
	if len(entries) > 0 {
		rank := entries[0].Rank
        ...
	}
}

Here the rank value will be 0 if the leaderboard is blacklisted and the rank otherwise

Is there anyway to know if a leaderboard is blacklisted at runtime?

@danim The leaderboard blacklist is intended to blacklist a leaderboard. This means it won’t be represented in the rank cache in memory on the server. This works exactly as designed as far as you’ve described.

https://heroiclabs.com/docs/install-configuration/#leaderboard

Is there anyway to know if a leaderboard is blacklisted at runtime?

The blacklist is configured as a startup configuration value for the server. You set it if you want to blacklist. There’s no scenario where you won’t know if a leaderboard is blacklisted or not. This is a parameter you control for your game.

Hope this helps.