-
Notifications
You must be signed in to change notification settings - Fork 2
Add from_slot example & note #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughAdds documentation for a new from_slot parameter in SubscribeRequest to enable historical replay/backfill, updates README with decoding example for pump.fun create instruction, and introduces a new learning example script demonstrating historical replay using from_slot against a Geyser gRPC endpoint. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User as User
participant Script as Client Script
participant Geyser as Geyser gRPC
User->>Script: Run historical_replay_with_from_slot.py
Script->>Geyser: Ping (optional) to get current slot
alt Ping fails
Script->>Geyser: Temporary Subscribe to infer current slot
Geyser-->>Script: Current slot observed from stream
else Ping succeeds
Geyser-->>Script: Current slot
end
Script->>Script: Compute from_slot = current_slot - backshift
note right of Script: from_slot starts stream at a historical slot
Script->>Geyser: SubscribeRequest(from_slot, filters, commitment)
alt Historical window available
Geyser-->>Script: Stream historical responses
loop Until near current_slot
Script->>Script: Track first slot, count, progress
end
Script-->>User: Summary of covered slot range
else Requested slot too old
Geyser-->>Script: RpcError (oldest available slot in message)
Script-->>User: Guidance with oldest available slot
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. 📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (2)
✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit
New Features
Documentation
Tests/Examples