提交 f43811a7 作者: Jeromy Johnson 提交者: GitHub

Merge pull request #3476 from ipfs/docs/bitswap-proto

update message.proto
...@@ -5,21 +5,21 @@ message Message { ...@@ -5,21 +5,21 @@ message Message {
message Wantlist { message Wantlist {
message Entry { message Entry {
optional string block = 1; // the block key optional string block = 1; // the block cid (cidV0 in bitswap 1.0.0, cidV1 in bitswap 1.1.0)
optional int32 priority = 2; // the priority (normalized). default to 1 optional int32 priority = 2; // the priority (normalized). default to 1
optional bool cancel = 3; // whether this revokes an entry optional bool cancel = 3; // whether this revokes an entry
} }
repeated Entry entries = 1; // a list of wantlist entries repeated Entry entries = 1; // a list of wantlist entries
optional bool full = 2; // whether this is the full wantlist. default to false optional bool full = 2; // whether this is the full wantlist. default to false
} }
message Block { message Block {
optional bytes prefix = 1; optional bytes prefix = 1; // CID prefix (cid version, multicodec and multihash prefix (type + length)
optional bytes data = 2; optional bytes data = 2;
} }
optional Wantlist wantlist = 1; optional Wantlist wantlist = 1;
repeated bytes blocks = 2; repeated bytes blocks = 2; // used to send Blocks in bitswap 1.0.0
repeated Block payload = 3; repeated Block payload = 3; // used to send Blocks in bitswap 1.1.0
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论