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

Add reorg method and update HLCR to use termini #2

Open
wants to merge 4 commits into
base: bottom-up
Choose a base branch
from

Conversation

alanorwick
Copy link

No description provided.

kiltsonfire and others added 4 commits February 9, 2023 17:13
… in zones:

This is a departure from the top-down picking originally proposed by HLCR. Only zones
have sufficient information to make decisions in which block to keep mining.  The
hierarchical constraint is now statistically enforced by setting subordinate Tds to
dominant values on coincident blocks.  Note that this is a statistical enforcement
and not a strict enforcement as previously proposed. This appears to create a much
more robust head pick that never stalls or seperates.

Coordinate updates coerce the ph pick to the result of the coordinate coincident
dom head choice.  The dom and its head choice is neccassarily the correct choice
because the the dom is always shared.
currTermini := sl.hc.GetTerminiByHash(sl.hc.CurrentHeader().Hash())
fmt.Println("New Termini", newTermini)
fmt.Println("Curr Termini", currTermini)
if(nodeCtx != common.PRIME_CTX && currTermini[TerminusIndex] != newTermini[TerminusIndex]) {

Choose a reason for hiding this comment

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

This is already accomplished recursively by passing reorg from the dom.

@gameofpointers gameofpointers force-pushed the bottom-up branch 7 times, most recently from 00f368c to 8e832c9 Compare February 14, 2023 21:37
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