Skip to content

Commit 43247d2

Browse files
committed
fix build with parity-scale-codec 3.7.4
1 parent 34d6e80 commit 43247d2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

substrate/client/network/src/protocol/message.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,35 +79,48 @@ pub mod generic {
7979
#[derive(Debug, PartialEq, Eq, Clone, Encode, Decode)]
8080
pub enum Message<Header, Hash, Number, Extrinsic> {
8181
/// Status packet.
82+
#[codec(index = 0)]
8283
Status(Status<Hash, Number>),
8384
/// Block request.
85+
#[codec(index = 1)]
8486
BlockRequest(BlockRequest<Hash, Number>),
8587
/// Block response.
88+
#[codec(index = 2)]
8689
BlockResponse(BlockResponse<Header, Hash, Extrinsic>),
8790
/// Block announce.
91+
#[codec(index = 3)]
8892
BlockAnnounce(BlockAnnounce<Header>),
8993
/// Consensus protocol message.
9094
// NOTE: index is incremented by 1 due to transaction-related
9195
// message that was removed
9296
#[codec(index = 6)]
9397
Consensus(ConsensusMessage),
9498
/// Remote method call request.
99+
#[codec(index = 7)]
95100
RemoteCallRequest(RemoteCallRequest<Hash>),
96101
/// Remote method call response.
102+
#[codec(index = 8)]
97103
RemoteCallResponse(RemoteCallResponse),
98104
/// Remote storage read request.
105+
#[codec(index = 9)]
99106
RemoteReadRequest(RemoteReadRequest<Hash>),
100107
/// Remote storage read response.
108+
#[codec(index = 10)]
101109
RemoteReadResponse(RemoteReadResponse),
102110
/// Remote header request.
111+
#[codec(index = 11)]
103112
RemoteHeaderRequest(RemoteHeaderRequest<Number>),
104113
/// Remote header response.
114+
#[codec(index = 12)]
105115
RemoteHeaderResponse(RemoteHeaderResponse<Header>),
106116
/// Remote changes request.
117+
#[codec(index = 13)]
107118
RemoteChangesRequest(RemoteChangesRequest<Hash>),
108119
/// Remote changes response.
120+
#[codec(index = 14)]
109121
RemoteChangesResponse(RemoteChangesResponse<Number, Hash>),
110122
/// Remote child storage read request.
123+
#[codec(index = 15)]
111124
RemoteReadChildRequest(RemoteReadChildRequest<Hash>),
112125
/// Batch of consensus protocol messages.
113126
// NOTE: index is incremented by 2 due to finality proof related

0 commit comments

Comments
 (0)