Closed sideninja closed 3 months ago
The recent change improves the BloomsForBlockRange
method in the Receipts
struct by adding a check to skip processing of empty bloom data, enhancing robustness and preventing the storage of unnecessary empty values. This modification serves as a temporary workaround while further investigation into the root cause is planned.
Files | Change Summary |
---|---|
storage/pebble/receipts.go |
Added import statement for bytes and conditional check in BloomsForBlockRange to skip empty bloom data. |
đ In fields where blooms once danced so bright,
A check was addedâwhat a sight!
No more empty blooms in the night,
With each new change, our code takes flight!
Hooray for fixes, letâs all delight! đŒ
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Don't decode empty blooms. For some reason empty blooms were indexed (possibly due to a past bug). This skips decoding to avoid internal error. This should be further investigated so it doesn't keep appearing, and we shouldn't index empty bloms.
Summary by CodeRabbit