Skip to content

Commit

Permalink
comments on BackfillStatus protobuf fields
Browse files Browse the repository at this point in the history
  • Loading branch information
kasey committed Oct 11, 2023
1 parent 84bacef commit d2dbaa5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions proto/dbval/dbval.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,20 @@ package ethereum.eth.dbval;

option go_package = "github.com/prysmaticlabs/prysm/v4/proto/dbval;dbval";

// BackfillStatus is a value used to keep track of the progress of the process of backfilling blocks leading up to
// the origin block used to checkpoint sync a node. There is only one BackfillStatus value in the database.
message BackfillStatus {
// low_slot is the slot of the last block that backfill will attempt to download and import.
// This is determined by MIN_EPOCHS_FOR_BLOCK_REQUESTS, or by a user-specified override.
uint64 low_slot = 1;
// low_slot is the root of the last block that backfill will attempt to download and import.
bytes low_root = 2;
// low_parent_root is the parent_root of the block at low_root. This enables the backfill service to check
// that a block is the direct ancestor of the block for low_root without an additional db lookup.
bytes low_parent_root = 3;
// origin_slot is the slot of the origin block, which is the block used to initiate a checkpoint sync.
// Backfill uses the origin block as the reference point to determine canonical ancestors.
uint64 origin_slot = 4;
// origin_root is the root of the origin block.
bytes origin_root = 6;
}

0 comments on commit d2dbaa5

Please sign in to comment.