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

Final reindex algorithm #1430

Merged
merged 44 commits into from
Jan 27, 2021
Merged

Final reindex algorithm #1430

merged 44 commits into from
Jan 27, 2021

Conversation

michaelsutton
Copy link
Collaborator

@michaelsutton michaelsutton commented Jan 18, 2021

This is a deep fixup to the reachability reindex algorithm to make it suitable and resilient for attack scenarios. The new implementation uses reindex slacks in an improved way, such that large side chains are handled efficiently as well -- by a double-the-size allocation mechanism. The PR also includes reindex stretch tests, which use json baseline DAGs and add arbitrary blocks all over the DAG in a fuzzy manner.

@codecov
Copy link

codecov bot commented Jan 18, 2021

Codecov Report

Merging #1430 (4f3e669) into v0.9.0-dev (8d6e71d) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@        Coverage Diff         @@
##   v0.9.0-dev   #1430   +/-   ##
==================================
==================================

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8d6e71d...911ba35. Read the comment docs.

@svarogg svarogg changed the base branch from v0.8.5-dev to v0.8.6-dev January 18, 2021 12:54
domain/consensus/model/reachabilitydata.go Outdated Show resolved Hide resolved
domain/consensus/reindex_attack_test.go Outdated Show resolved Hide resolved
domain/consensus/reindex_attack_test.go Outdated Show resolved Hide resolved
domain/consensus/reindex_attack_test.go Outdated Show resolved Hide resolved
domain/consensus/reindex_attack_test.go Outdated Show resolved Hide resolved
domain/consensus/test_consensus.go Outdated Show resolved Hide resolved
someone235
someone235 previously approved these changes Jan 21, 2021
someone235
someone235 previously approved these changes Jan 26, 2021
@svarogg svarogg changed the base branch from v0.8.6-dev to v0.9.0-dev January 27, 2021 07:25
@svarogg svarogg dismissed someone235’s stale review January 27, 2021 07:25

The base branch was changed.

@someone235 someone235 merged commit c9b591f into v0.9.0-dev Jan 27, 2021
@someone235 someone235 deleted the sutton branch January 27, 2021 15:09
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.

4 participants