Skip to content

oracle: purge_submitter() has no corresponding "list active submitters" getter #636

Description

@Jaydbrown

Context
contracts/oracle/src/lib.rs line 290, purge_submitter(env: Env, caller: Address, feeder: Address) removes a submitter, implying there's a set of tracked active submitters — but no getter exposes that set (unlike role_members() for role-based membership).

Why it matters
An operator deciding whether to purge_submitter for inactivity or misbehavior has no on-chain way to see the current submitter roster to know who's even eligible for review, and must reconstruct the list from event history instead.

Suggested approach
If submitters are tracked via the Feeder role (check Role enum usage in this contract), this may already be coverable by the existing role_members()-equivalent for oracle roles — if so, just document that purge_submitter targets should be sourced from role_members(Role::Feeder); if submitters are tracked separately, add a dedicated getter.

Activity

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

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programenhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions