Skip to content

Commit

Permalink
Revert "downloader: dbg upgrade whitelist (#213)" (#214)
Browse files Browse the repository at this point in the history
This reverts commit 377c097.
  • Loading branch information
Giulio2002 authored May 1, 2024
1 parent 65c913b commit 0a68f98
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions downloader/downloader.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,8 @@ 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
// 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) {}
// 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) {}

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

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 ProhibitNewDownloadsRequest {
string type = 1;
}

message StatsReply {
Expand Down

0 comments on commit 0a68f98

Please sign in to comment.