Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

Commit

Permalink
lint roll
Browse files Browse the repository at this point in the history
  • Loading branch information
carver committed Mar 8, 2019
1 parent 20a612c commit bb8881a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 0 additions & 1 deletion tests/core/utils/test_root_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ def binary_parent(node):
st.integers(min_value=0, max_value=6),
min_size=3,
))
#@settings(max_examples=20000)
def test_prune_reinsert_root_tracking_binary_tree(element_flipping):
tracker = RootTracker()

Expand Down
11 changes: 11 additions & 0 deletions trinity/sync/common/headers.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,17 @@ async def new_sync_headers(
if False:
yield

@abstractmethod
async def clear_buffer(self) -> None:
"""
Whatever headers have been received until now, dump them all and restart.
This is a last resort, to be used only when a consumer seems to receive
headers out of other and decides they have no other option besides reset.
It wastes a lot of previously completed work.
"""
pass

@abstractmethod
def get_target_header_hash(self) -> Hash32:
pass
Expand Down

0 comments on commit bb8881a

Please sign in to comment.