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

[stateless_validation] validate incoming partial witness heights #11398

Merged
merged 3 commits into from
May 30, 2024

Commits on May 26, 2024

  1. [stateless_validation] validate incoming partial witness heights

    This adds logic to
    `PartialWitnessActor::validate_partial_encoded_state_witness()` that
    checks that the height is greater than the current final head height
    (as is done in `Client::process_chunk_state_witness()`), and
    not more than five ahead of the current head height, similar to what's
    done in `EncodedChunksCache::height_within_horizon()`
    
    For now we read the head and final head heights directlly from the
    database, but in the future this should be changed so that we make a
    request to the client for this info
    
    Related issue: near#11301
    marcelo-gonzalez committed May 26, 2024
    Configuration menu
    Copy the full SHA
    fa408df View commit details
    Browse the repository at this point in the history

Commits on May 29, 2024

  1. add link to draft PR

    marcelo-gonzalez committed May 29, 2024
    Configuration menu
    Copy the full SHA
    ce7fb89 View commit details
    Browse the repository at this point in the history

Commits on May 30, 2024

  1. Configuration menu
    Copy the full SHA
    4be1081 View commit details
    Browse the repository at this point in the history