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

[ProjectTracking]: Epoch Sync V4 #73

Open
20 of 28 tasks
Tracked by #82
robin-near opened this issue Aug 13, 2024 · 0 comments
Open
20 of 28 tasks
Tracked by #82

[ProjectTracking]: Epoch Sync V4 #73

robin-near opened this issue Aug 13, 2024 · 0 comments
Assignees

Comments

@robin-near
Copy link

robin-near commented Aug 13, 2024

Overview

Issues (ongoing list):

Critical tasks:

Tasks

  1. staffik

Nice-to-have tasks:

Deprioritized (unimportant) tasks

@robin-near robin-near self-assigned this Aug 13, 2024
@robin-near robin-near changed the title [ProjectTracking]: Epoch Sync [ProjectTracking]: Epoch Sync V4 Aug 20, 2024
github-merge-queue bot pushed a commit to near/nearcore that referenced this issue Aug 22, 2024
Remaining issues:

near/near-one-project-tracking#73

I still need to go through this one more time, but reviews can be done
in the meantime.
github-merge-queue bot pushed a commit to near/nearcore that referenced this issue Oct 18, 2024
Issue: #11932

Implements EpochSyncProof validation, according to:
- [design
doc](https://docs.google.com/document/d/14Itc9Hs7ewTRmcGANid9UCaYcJzaLzzM7FsvYYIFKDY/edit#heading=h.p2oiicluwd6o)
-
[`epoch_sync.rs`](https://github.com/near/nearcore/blob/d6d6e4782f7d57a7b7acc2894e1668355012ff74/core/primitives/src/epoch_sync.rs)

Summary:
- Move block merkle proof retrieval logic from `Chain` to a separate
trait (`MerkleProofAccess`). Make `Store` implements this trait so that
we can `get_block_proof` while serving `EpochSyncRequest` from a
separate thread and having no access to `Chain`.
- Refactor `verify_approval` and `compute_bp_hash` so that we can use it
for proof validation.
- Derive `first_block_info_in_epoch` from block header.
- Implement the validation logic.
- Add 2 more fields to the proof
  - `EpochSyncProofPastEpochData::protocol_version`
- `merkle_proof_for_first_block` generated at height of final block of
current epoch.
- Apparently, we need to add even more to enable generating
`merkle_proof_for_first_block` at the bootstrapped node. That will be
done as a follow-up issue:
#12255.
- Create a bunch of follow-up issues (added to the [tracking
issue](near/near-one-project-tracking#73)):
  - #12255
  - #12256
  - #12258
  - #12259
  - #12260
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant