[Access] Fix race condition with block collection indexing#8377
[Access] Fix race condition with block collection indexing#8377peterargue merged 3 commits intomasterfrom
Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
📝 WalkthroughWalkthroughlookupSubmittedTransactionResult now treats a storage Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
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 |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Co-authored-by: Leo Zhang <zhangchiqing@gmail.com>
Previously, the API required that the block/collection index exist if the tx/collection index did. These indices are store separately, so there is a race condition in which one may exists before the other.
This PR relaxes the check in the API to return a
NotFounderror in this case instead of throwing an exception.Summary by CodeRabbit
Bug Fixes
Tests
✏️ Tip: You can customize this high-level summary in your review settings.