From df1522c9f8d5437f586af3ce52dc044921ce4292 Mon Sep 17 00:00:00 2001 From: Bulat-Ziganshin Date: Tue, 13 Sep 2022 06:32:12 +0300 Subject: [PATCH] Fixed message.proto to match IPFS specs (#245) We incorrectly assigned code 2 to the payload field instead of code 3: Our code: https://github.com/status-im/nim-codex/blob/8c5939252607f74b60a49fee4570734ffa06b11c/codex/blockexchange/protobuf/message.proto#L50-L52 While original code: https://github.com/ipfs/go-bitswap/blob/0fa397581ca6197c6c4ca17842719370f6596e95/message/pb/message.proto#L43-L45 And [documentation](https://github.com/ipfs/specs/blob/main/BITSWAP.md#bitswap-120-wire-format). --- codex/blockexchange/protobuf/message.proto | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/codex/blockexchange/protobuf/message.proto b/codex/blockexchange/protobuf/message.proto index 48a4ea36..d1a15151 100644 --- a/codex/blockexchange/protobuf/message.proto +++ b/codex/blockexchange/protobuf/message.proto @@ -47,9 +47,9 @@ message Message { } Wantlist wantlist = 1; - repeated Block payload = 2; - repeated BlockPresence blockPresences = 3; - int32 pendingBytes = 4; - AccountMessage account = 5; - StateChannelUpdate payment = 6; + repeated Block payload = 3; + repeated BlockPresence blockPresences = 4; + int32 pendingBytes = 5; + AccountMessage account = 6; + StateChannelUpdate payment = 7; }