apollo_central_sync,apollo_starknet_client: collapse three feeder calls into one per block#14186
apollo_central_sync,apollo_starknet_client: collapse three feeder calls into one per block#14186dafnamatsry wants to merge 1 commit into
Conversation
PR SummaryHigh Risk Overview The sync loop merges the former block and state-diff pipelines into a single
Reviewed by Cursor Bugbot for commit 45aea34. Bugbot is set up for automated code reviews on this repo. Configure here. |
This stack of pull requests is managed by Graphite. Learn more about stacking. |
a60cbb8 to
b63e826
Compare
…ls into one per block
b63e826 to
45aea34
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 45aea34. Configure here.
| &mut self, | ||
| block_number: BlockNumber, | ||
| block_hash: BlockHash, | ||
| mut state_diff: StateDiff, |
There was a problem hiding this comment.
Stale marker read causes incorrect backward-compatibility classification
Medium Severity
The compiler_backward_compatibility_marker is read at line 435 (before the storage transaction), but is updated at line 495 (inside the transaction). In the old code, the header stream always ran ahead of the state diff stream, so the marker was already updated when store_state_diff read it. Now that both are combined, for a block N with old starknet version where the marker equals N, the check compiler_backward_compatibility_marker <= block_number is incorrectly TRUE, causing the block to be treated as backwards-compatible when it isn't. The stale comment at line 426–428 ("this stream is behind the header stream") confirms this ordering assumption was not updated.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 45aea34. Configure here.



No description provided.