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

[Merged by Bors] - optimistic filtering: add two more conditions #3741

Closed

Conversation

countvonzero
Copy link
Contributor

Motivation

Closes #3378

Changes

add two more conditions for enabling optimistic filtering for layer N

  • node is confidence about every layer i < N-hdist
  • node has hare output for every layer i such that N-hdist <= i <= N

these conditions are added to miner prior to recording its mesh hash for layer N-1 in its proposal.

note: this is done at proposal creation time instead of block creation time to prevent nodes from making different decisions on whether to do optimistic filtering and causing multiple blocks created for the same layer.

@countvonzero countvonzero changed the title optadd two more conditions for optimistic filtering optimistic filtering: add two more conditions Nov 11, 2022
@countvonzero
Copy link
Contributor Author

bors merge

bors bot pushed a commit that referenced this pull request Nov 11, 2022
## Motivation
<!-- Please mention the issue fixed by this PR or detailed motivation -->
Closes #3378
<!-- `Closes #XXXX, closes #XXXX, ...` links mentioned issues to this PR and automatically closes them when this it's merged -->

## Changes
<!-- Please describe in detail the changes made -->

add two more conditions for enabling optimistic filtering for layer N
- node is confidence about every layer i < N-hdist
- node has hare output for every layer i such that N-hdist <= i <= N

these conditions are added to miner prior to recording its mesh hash for layer N-1 in its proposal.

note: this is done at proposal creation time instead of block creation time to prevent nodes from making different decisions on whether to do optimistic filtering and causing multiple blocks created for the same layer.
@bors
Copy link

bors bot commented Nov 11, 2022

Build failed (retrying...):

bors bot pushed a commit that referenced this pull request Nov 11, 2022
## Motivation
<!-- Please mention the issue fixed by this PR or detailed motivation -->
Closes #3378
<!-- `Closes #XXXX, closes #XXXX, ...` links mentioned issues to this PR and automatically closes them when this it's merged -->

## Changes
<!-- Please describe in detail the changes made -->

add two more conditions for enabling optimistic filtering for layer N
- node is confidence about every layer i < N-hdist
- node has hare output for every layer i such that N-hdist <= i <= N

these conditions are added to miner prior to recording its mesh hash for layer N-1 in its proposal.

note: this is done at proposal creation time instead of block creation time to prevent nodes from making different decisions on whether to do optimistic filtering and causing multiple blocks created for the same layer.
@bors
Copy link

bors bot commented Nov 11, 2022

Pull request successfully merged into develop.

Build succeeded:

@bors bors bot changed the title optimistic filtering: add two more conditions [Merged by Bors] - optimistic filtering: add two more conditions Nov 11, 2022
@bors bors bot closed this Nov 11, 2022
@countvonzero countvonzero deleted the cautiously-optimistic branch January 20, 2023 01:43
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.

block: correct conditions for optimistic filtering
2 participants