Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert state changes. #25

Merged
merged 3 commits into from
Oct 23, 2024
Merged

Convert state changes. #25

merged 3 commits into from
Oct 23, 2024

Conversation

cristure
Copy link

No description provided.

@cristure cristure changed the base branch from main to feat/hyperblock September 23, 2024 13:50
}

message StateChange {
string Type = 1;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should think of having enum for Type instead of string

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also in mx-chain-go

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

modified.

Comment on lines 420 to 421
s := &hyperOutportBlocks.StateChanges{StateChanges: ss}
shardStateChanges[key] = s
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please avoid single letter variable here, maybe set it directly

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think state changes has to be covered also for meta outport block

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is also covered. but since the structure is the same the metaOutportBlock object will be casted automatically. The handler function is strictly for the shardOutportBlocks.

],
"highestFinalBlockNonce": 0,
"stateChanges": {
"M�hᎧ\u001fG\u0006�f�鼖+:bg⾩�1,�\u0015^��\t\u0018": {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we have the hashes encoded as hex or erd? and decode it in tests if needed

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the state changes were taken with the state changes collector available in the node. This change should be relflected there as well.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed.

@cristure
Copy link
Author

Need to take this PRs into consideration:
multiversx/mx-chain-core-go#324
multiversx/mx-chain-go#6495

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use smaller file here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed content from it.

@cristure cristure requested a review from ssd04 September 26, 2024 11:26
}

enum ActionType {
Read = 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the firehose integration we need to make sure that we configure the node to only collect write operations, otherwise there will be too much data.

@cristure cristure merged commit ffe985a into feat/hyperblock Oct 23, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants