Update derive events hash test - #62
Conversation
WalkthroughThe recent changes introduce an Changes
Assessment against linked issues
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? 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 Configration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files ignored due to path filters (2)
go.modis excluded by!**/*.modgo.sumis excluded by!**/*.sum
Files selected for processing (5)
- access/access.go (6 hunks)
- state/convert.go (3 hunks)
- state/convert_test.go (3 hunks)
- state/process.go (2 hunks)
- testnet-clone.json (1 hunks)
Additional comments not posted (5)
testnet-clone.json (1)
21-28: The updates to the spork configuration look correct and align with the intended changes for spork ID37.state/convert_test.go (1)
16-18: The updates to the test configuration parameters and thecreateSporkfunction align with the new spork settings and are correctly implemented.Also applies to: 152-155
state/convert.go (1)
7-9: The introduction of new imports and thedecodePayloadfunction enhances the handling of different payload formats, aligning with the newEventEncodingVersion. This is a positive change for maintaining robustness in event data processing.Also applies to: 207-214
access/access.go (1)
168-170: The inclusion of theEventEncodingVersionfield in API calls is correctly implemented and essential for ensuring consistent event data handling across the system.Also applies to: 390-391, 411-413, 434-435, 460-461, 481-482
state/process.go (1)
Line range hint
307-324: Improved error handling and event hash comparison logic.The changes made to the event hash comparison logic and the addition of detailed error messages enhance the robustness of the function. This should help in identifying and debugging issues related to event hash mismatches more effectively.
| } | ||
| var execResult *entities.ExecutionResult | ||
|
|
||
| //TODO: ILLIA: chunk[0].EventCollection is empty! but should be equal to hash? |
There was a problem hiding this comment.
is this from the live network?
There was a problem hiding this comment.
Sorry, this is obsolete. I removed this comment. I noticed such a behavior only for the root block of a new spork.
Is it expected? You can resolve this thread and merge if so
Closes #56
This PR is made on top #53
Summary by CodeRabbit
New Features
Improvements
Bug Fixes
Configuration Updates