Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Rework backup and clear function #10751

Merged
merged 1 commit into from
Jun 23, 2020
Merged

Conversation

sakridge
Copy link
Contributor

Problem

The validator will start to process shreds with an incorrect version when restarting with a hard fork creating invalid banks before the backup and clear function can remove those slots.

Summary of Changes

Move backup and clear to before blockstore is processed so that those slots do not get processed. Search for any incompatible shred versions and remove those from blockstore.

Fixes #

aeyakovenko
aeyakovenko previously approved these changes Jun 23, 2020
@codecov
Copy link

codecov bot commented Jun 23, 2020

Codecov Report

Merging #10751 into master will increase coverage by 0.0%.
The diff coverage is 89.7%.

@@           Coverage Diff           @@
##           master   #10751   +/-   ##
=======================================
  Coverage    81.8%    81.8%           
=======================================
  Files         302      302           
  Lines       70799    70820   +21     
=======================================
+ Hits        57934    57961   +27     
+ Misses      12865    12859    -6     

core/src/validator.rs Outdated Show resolved Hide resolved
core/src/validator.rs Outdated Show resolved Hide resolved
@mergify mergify bot dismissed aeyakovenko’s stale review June 23, 2020 20:10

Pull request has been modified.

@sakridge sakridge added the automerge Merge this Pull Request automatically once CI passes label Jun 23, 2020
@mergify mergify bot merged commit a1ef921 into solana-labs:master Jun 23, 2020
mergify bot pushed a commit that referenced this pull request Jun 23, 2020
mergify bot added a commit that referenced this pull request Jun 23, 2020
(cherry picked from commit a1ef921)

Co-authored-by: sakridge <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
automerge Merge this Pull Request automatically once CI passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants