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

downloader: dbg upgrade whitelist #213

Merged
merged 5 commits into from
Apr 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions downloader/downloader.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ package downloader;
service Downloader {
// Erigon "download once" - means restart/upgrade/downgrade will not download files (and will be fast)
// After "download once" - Erigon will produce and seed new files
// Downloader will able: seed new files (already existing on FS), download uncomplete parts of existing files (if Verify found some bad parts)
rpc ProhibitNewDownloads (ProhibitNewDownloadsRequest) returns (google.protobuf.Empty) {}
// After `Prohibit` call - downloader stil will able:
// - seed new (generated by Erigon) files
// - seed existing on Disk files
// - download uncomplete parts of existing on Disk files (if Verify found some bad parts)
// `Prohibit` has `whitelist` feature - based on file-type
rpc Prohibit (ProhibitRequest) returns (ProhibitReply) {}

// Adding new file to downloader: non-existing files it will download, existing - seed
rpc Add (AddRequest) returns (google.protobuf.Empty) {}
Expand Down Expand Up @@ -46,8 +50,12 @@ message VerifyRequest {
message StatsRequest {
}

message ProhibitNewDownloadsRequest {
string type = 1;
message ProhibitRequest {
repeated string whitelistAdd = 1; // nil - means "don't modify". non-nil - means "merge with current whitelist".
repeated string whitelistRemove = 2; // nil - means "don't modify"
}
message ProhibitReply {
repeated string whitelist = 1; // current whitelist
}

message StatsReply {
Expand Down
Loading