Skip to content

Conversation

@AgeManning
Copy link
Member

Overview

There are forked chains which get referenced by blocks and attestations on a network. Typically if these chains are very long, we stop looking up the chain and downvote the peer. In extreme circumstances, many peers are on many chains, the chains can be very deep and become time consuming performing lookups.

This PR adds a cache to known failed chain lookups. This prevents us from starting a parent-lookup (or stopping one half way through) if we have attempted the chain lookup in the past.

@AgeManning
Copy link
Member Author

bors r+

bors bot pushed a commit that referenced this pull request Aug 18, 2020
## Overview

There are forked chains which get referenced by blocks and attestations on a network. Typically if these chains are very long, we stop looking up the chain and downvote the peer. In extreme circumstances, many peers are on many chains, the chains can be very deep and become time consuming performing lookups. 

This PR adds a cache to known failed chain lookups. This prevents us from starting a parent-lookup (or stopping one half way through) if we have attempted the chain lookup in the past.
@bors
Copy link

bors bot commented Aug 18, 2020

@bors bors bot changed the title Keep track of failed head chains and prevent re-lookups [Merged by Bors] - Keep track of failed head chains and prevent re-lookups Aug 18, 2020
@bors bors bot closed this Aug 18, 2020
@AgeManning AgeManning deleted the parent-lookup-dupes branch August 18, 2020 12:19
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