chore: improve nullify in registry#2345
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Mechanism: Each nullify has 16 proof accounts (pubkeys). Algorithm: Build a graph of all state nullifies. Guards: Pairing only if batch_size >= 2. |
new registry program instruction nullify2
if client sends 2 instructions in one txn, Solana will deduplicate any overlapping proof nodes between those two instructions, reducing overall txn size.
pr also adds pairing logic inside forester client for v1 state nullification