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

Check for incorrect hash value on snapshot ingest#7427

Closed
sakridge wants to merge 1 commit intosolana-labs:masterfrom
sakridge:check-account-hashes-in-snapshot
Closed

Check for incorrect hash value on snapshot ingest#7427
sakridge wants to merge 1 commit intosolana-labs:masterfrom
sakridge:check-account-hashes-in-snapshot

Conversation

@sakridge
Copy link
Copy Markdown
Contributor

@sakridge sakridge commented Dec 11, 2019

Problem

No checking on snapshot ingestion that data which is hashed matches the hash value in the append vec.

Summary of Changes

Re-hash the account data and check for differences.

Part of #7167

Fixes #

@sakridge sakridge requested a review from ryoqun December 11, 2019 18:39
@sakridge
Copy link
Copy Markdown
Contributor Author

@ryoqun can you take over this PR actually?

@sakridge sakridge changed the title Check for incorrect hash value Check for incorrect hash value on snapshot ingest Dec 11, 2019
@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 11, 2019

Codecov Report

Merging #7427 into master will decrease coverage by 5.7%.
The diff coverage is 75%.

@@           Coverage Diff            @@
##           master   #7427     +/-   ##
========================================
- Coverage    80.6%   74.8%   -5.8%     
========================================
  Files         245     245             
  Lines       48439   52168   +3729     
========================================
- Hits        39048   39047      -1     
- Misses       9391   13121   +3730

@ryoqun
Copy link
Copy Markdown
Contributor

ryoqun commented Dec 12, 2019

@ryoqun can you take over this PR actually?

Yeah, I'll add a unit test and review you back. :)

@stale
Copy link
Copy Markdown

stale Bot commented Dec 19, 2019

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale Bot added the stale [bot only] Added to stale content; results in auto-close after a week. label Dec 19, 2019
@sakridge sakridge closed this Dec 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

stale [bot only] Added to stale content; results in auto-close after a week.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants