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

Fluffy state network refactor #2200

Merged
merged 2 commits into from
May 22, 2024
Merged

Conversation

web3-developer
Copy link
Contributor

@web3-developer web3-developer commented May 21, 2024

Summary of changes:

  • Removed unneeded object variant types.
  • Moved state_content code into separate files.
  • Added helper functions and encode/decode to state_content types.
  • Refactored/cleaned up state_network code.
  • Moved all recursive gossip code to a separate file state_gossip.

@web3-developer web3-developer changed the title Fluffy state content refactor Fluffy state network refactor May 21, 2024
@web3-developer web3-developer requested a review from kdeme May 21, 2024 08:02
Copy link
Contributor

@kdeme kdeme left a comment

Choose a reason for hiding this comment

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

Great refactor, looks much cleaner! :shipit:

logScope:
topics = "portal_state"

proc gossipOffer*(
Copy link
Contributor

Choose a reason for hiding this comment

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

gossipOffer is perhaps not the best name for this call? Perhaps just recursiveGossip as it is also named in https://github.com/ethereum/portal-network-specs/blob/master/state-network.md#gossip ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, I'll review the naming in my next change when I implement the full recursive gossip.

@web3-developer
Copy link
Contributor Author

Great refactor, looks much cleaner! :shipit:

Thanks!

@web3-developer web3-developer merged commit e566e89 into master May 22, 2024
12 checks passed
@web3-developer web3-developer deleted the fluffy-state-content-refactor branch May 22, 2024 01:22
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.

None yet

2 participants