-
Notifications
You must be signed in to change notification settings - Fork 166
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
fix(torii-core): engine update cursor when world event #2300
Conversation
WalkthroughOhayo, sensei! The recent updates to the Changes
Sequence Diagram(s)sequenceDiagram
participant Engine
participant TransactionHandler
participant Logger
Engine->>TransactionHandler: process_transaction(transaction_hash, block_number, block_timestamp)
TransactionHandler->>Logger: Log pending transaction
Logger->>TransactionHandler: Confirm log
TransactionHandler->>Engine: Return Result<HasWorldEvent>
sequenceDiagram
participant Engine
participant BlockProcessor
participant Logger
Engine->>BlockProcessor: process_block(block_number)
BlockProcessor->>Logger: Log block processing
Logger->>BlockProcessor: Confirm log
BlockProcessor->>Engine: Return block processing result
Recent review detailsConfiguration used: .coderabbit.yaml Files selected for processing (1)
Files skipped from review as they are similar to previous changes (1)
TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2300 +/- ##
==========================================
- Coverage 69.60% 69.55% -0.05%
==========================================
Files 352 352
Lines 46031 46004 -27
==========================================
- Hits 32040 32000 -40
- Misses 13991 14004 +13 ☔ View full report in Codecov by Sentry. |
Thanks for addressing the comments @Larkooo. 👍 |
When we're in sync pending and update our pending txn cursor, we first check if that processed txn had a world event in it so that the sync range that uses the get_events API with the world address can catch it
Summary by CodeRabbit
New Features
Bug Fixes
Refactor