-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
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
Labels
No labels