Skip to content

Conversation

@michaelsproul
Copy link
Member

Proposed Changes

To mitigate the impact of minority forks on RAM and disk usage, this change rejects blocks whose parent lies more than 320 slots (10 epochs, ~1 hour) in the past. The behaviour is configurable via lighthouse bn --max-skip-slots N, and can be turned off entirely using --max-skip-slots none.

@michaelsproul michaelsproul added the ready-for-review The code is ready for review label Aug 17, 2020
Copy link
Member

@paulhauner paulhauner left a comment

Choose a reason for hiding this comment

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

Nice!

@paulhauner
Copy link
Member

bors r+

bors bot pushed a commit that referenced this pull request Aug 17, 2020
## Proposed Changes

To mitigate the impact of minority forks on RAM and disk usage, this change rejects blocks whose parent lies more than 320 slots (10 epochs, ~1 hour) in the past. The behaviour is configurable via `lighthouse bn --max-skip-slots N`, and can be turned off entirely using `--max-skip-slots none`.
@paulhauner
Copy link
Member

paulhauner commented Aug 17, 2020

bors cancel

bors abort

@paulhauner
Copy link
Member

bors r-

@bors
Copy link

bors bot commented Aug 17, 2020

Canceled.

Copy link
Member

@paulhauner paulhauner left a comment

Choose a reason for hiding this comment

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

bors r+

@bors
Copy link

bors bot commented Aug 17, 2020

Canceled.

@paulhauner
Copy link
Member

bors r+

@bors
Copy link

bors bot commented Aug 17, 2020

Merge conflict.

@paulhauner
Copy link
Member

bors r+

bors bot pushed a commit that referenced this pull request Aug 17, 2020
## Proposed Changes

To mitigate the impact of minority forks on RAM and disk usage, this change rejects blocks whose parent lies more than 320 slots (10 epochs, ~1 hour) in the past. The behaviour is configurable via `lighthouse bn --max-skip-slots N`, and can be turned off entirely using `--max-skip-slots none`.

Co-authored-by: Paul Hauner <paul@paulhauner.com>
@bors
Copy link

bors bot commented Aug 17, 2020

@bors bors bot changed the title Ignore blocks that skip a large distance from their parent [Merged by Bors] - Ignore blocks that skip a large distance from their parent Aug 17, 2020
@bors bors bot closed this Aug 17, 2020
@michaelsproul michaelsproul deleted the max-skip-slots branch August 17, 2020 12:51
bors bot pushed a commit that referenced this pull request Aug 18, 2020
## Issue Addressed

NA

## Proposed Changes

- Fixes a mistake I made in #1530 which resulted us in *not* rejecting attestations that we intended to reject.
- Adds skip-slot checks for blocks earlier in import process, so it rejects gossip and RPC blocks.

## Additional Info

NA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review The code is ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants