-
Notifications
You must be signed in to change notification settings - Fork 170
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
reword the 'round' definition #351
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is generally good. We could be more specific still.
The 4 key elements imo:
- a round is the period over which a leader election decision is made
- a round may yield no decision or multiple
- we move on to the next round after some time has elapsed or once a decision is made
- we move to the next height once a decision is made
We have the first 2, missing last 2. I would add them.
My inspiration is here. I think they’ve done a great job w it.
@laser want to take a stab at improving this further? |
May take a stab if you're ok with it @laser @dignifiedquire given conflicting requests in #357 (cc @whyrusleeping @pooja) |
@sternhenri - Please do! I would very much appreciate that. |
Ready to merge from my end. |
definitions.md
Outdated
`Height` refers to the number of `TipSets` that have passed between this `TipSet` and the genesis block (which starts at block height 0). If a `TipSet` contains multiple blocks, each block in the TipSet will have the same `height`. | ||
`Height` and `round` are synonymous and used interchangeably in this spec. | ||
|
||
`Height` refers to the number of tickets generated between this `TipSet` and the genesis block (height 0), counting only a single ticket per TipSet. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the last part of this sentence is still confusing at best, wrong at worst.
mining.md
Outdated
@@ -335,6 +334,7 @@ Heaviest tipset at H-1 is {B0} | |||
- New Round with M mining atop B4 | |||
|
|||
Anytime a miner receives new blocks, it should evaluate which is the heaviest TipSet it knows about and mine atop it. | |||
>>>>>>> ca3f93b3497b870b513332d3cfee381b7590e993 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merge conflict detected
Why is this PR needed?
The previous wording was confusing. It was not clear (to me) that the definition of "round" applied to a period of time in which leader election occurred but no leader was found.
What's in this PR?
I've added more words to the "round" definition in hopes of reducing ambiguity.