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

Share resources between empty and full nodes #14517

Merged
merged 9 commits into from
Nov 1, 2024
Merged

Share resources between empty and full nodes #14517

merged 9 commits into from
Nov 1, 2024

Conversation

potuz
Copy link
Contributor

@potuz potuz commented Oct 8, 2024

No description provided.

@potuz potuz requested a review from a team as a code owner October 8, 2024 16:26
@potuz potuz requested review from prestonvanloon, saolyn and terencechain and removed request for a team October 8, 2024 16:26
weight uint64 // weight of this node: the total balance including children
bestDescendant *Node // bestDescendant node of this node.
withheld bool // whether the builder sent a withheld message for this payload
full bool // wether the node represents full or empty forkchoice node
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
full bool // wether the node represents full or empty forkchoice node
full bool // whether the node represents full or empty forkchoice node

}
return primitives.PAYLOAD_PRESENT
return primitives.PAYLOAD_ABSENT
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this be PAYLOAD_WITHHELD? if not, where is withheld...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed withheld in this iteration, adjusting for the minimal Francesco's forkchoice.

- Share a block structure withing the forkchoice node. The surrounding
  envelope contains information about the payload presence and the
  children links, the inner structure contains the usual FFG and parent links.
- Reworked setOptimistictoInvalid
- Changed the PTC vote logic to have validity handled outside of
  forkchoice and have forkchoice only keep the total count of votes.
@potuz potuz force-pushed the shared_nodes branch 2 times, most recently from f28a5e2 to 4088ed6 Compare October 30, 2024 13:28
@potuz potuz merged commit 6637443 into epbs Nov 1, 2024
12 of 16 checks passed
@potuz potuz deleted the shared_nodes branch November 1, 2024 15:52
potuz added a commit that referenced this pull request Nov 1, 2024
* Share resources between empty and full nodes

- Share a block structure withing the forkchoice node. The surrounding
  envelope contains information about the payload presence and the
  children links, the inner structure contains the usual FFG and parent links.
- Reworked setOptimistictoInvalid
- Changed the PTC vote logic to have validity handled outside of
  forkchoice and have forkchoice only keep the total count of votes.

* Fix tests

* gazelle

* Update head twice pre-epbs

* only upadte best descendants without computing head

* skip forkchoice tests

* fix some blockchain tests

* Nil optimistic sync fix

* only count weight of empty nodes
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.

2 participants