message.proto 510 Bytes
Newer Older
1
package bitswap.message.pb;
2

3
message Message {
Jeromy's avatar
Jeromy committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18

  message Wantlist {

    message Entry {
      optional string block = 1; // the block key
      optional int32 priority = 2; // the priority (normalized). default to 1
      optional bool cancel = 3;  // whether this revokes an entry
    }

    repeated Entry entries = 1; // a list of wantlist entries
    optional bool full = 2;     // whether this is the full wantlist. default to false
  }

  optional Wantlist wantlist = 1;
  repeated bytes blocks = 2;
19
}