Skip to content

Removed Deleted Policies from Policy Store #24

@kespinola

Description

@kespinola

Summary

The policy store currently seeds its cache from RPC and keeps policies updated by subscribing to account updates via Yellowstone Dragon’s Mouth gRPC. However, when a delete policy instruction is executed, the policy store does not remove the deleted policy from its cache.

This happens because it doesn’t currently:

  • Subscribe to the close instruction
  • Listen to the system program for account closing events

Goal

Ensure that the policy store automatically removes policies that are deleted on-chain.

Proposed Solution

  • Subscribe to Shield instructions.
  • Detect the close instruction.
  • When a close event is received, remove the corresponding policy from the cache.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions