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

Open
wants to merge 2 commits into
base: epbs
Choose a base branch
from
Open

Share resources between empty and full nodes #14517

wants to merge 2 commits into from

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...

- 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.
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