Fixed message.proto to match IPFS specs (#245)

We incorrectly assigned code 2 to the payload field instead of code 3:

Our code: 8c59392526/codex/blockexchange/protobuf/message.proto (L50-L52)

While original code: 0fa397581c/message/pb/message.proto (L43-L45)

And [documentation](https://github.com/ipfs/specs/blob/main/BITSWAP.md#bitswap-120-wire-format).
This commit is contained in:
Bulat-Ziganshin 2022-09-13 06:32:12 +03:00 committed by GitHub
parent 6b2adb7017
commit df1522c9f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -47,9 +47,9 @@ message Message {
} }
Wantlist wantlist = 1; Wantlist wantlist = 1;
repeated Block payload = 2; repeated Block payload = 3;
repeated BlockPresence blockPresences = 3; repeated BlockPresence blockPresences = 4;
int32 pendingBytes = 4; int32 pendingBytes = 5;
AccountMessage account = 5; AccountMessage account = 6;
StateChannelUpdate payment = 6; StateChannelUpdate payment = 7;
} }