Closed sideninja closed 1 month ago
The changes enhance the decodeBlockEvent
function in models/block.go
by introducing a fallback mechanism to handle legacy block events. A new helper function, decodeLegacyBlockEvent
, is added to decode legacy event payloads, ensuring compatibility with older formats. Additionally, a new type, blockEventPayloadV0
, is defined to structure legacy event data, allowing for proper mapping to the Block
type.
Files | Change Summary |
---|---|
models/block.go | Added decodeLegacyBlockEvent function and blockEventPayloadV0 type for handling legacy block events. |
In the code where events do flow,
A rabbit hops to make it glow.
With legacy paths now intertwined,
Old events and new, forever aligned.
Hooray for changes, let’s all cheer,
For backward steps, we hold so dear! 🐇✨
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?
Description
Decode legacy block event not including the prevrandao.
For contributor use:
master
branchFiles changed
in the Github PR explorerSummary by CodeRabbit
New Features
Bug Fixes