You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// First message from the batcher is the protocol version
190
+
ifletSome(Ok(msg)) = ws_read.next().await{
191
+
match msg.into_data().try_into(){
192
+
Ok(data) => {
193
+
let current_protocol_version = u16::from_be_bytes(data);
194
+
if current_protocol_version > PROTOCOL_VERSION{
195
+
info!(
196
+
"You are running an old version of the client, update it running:\ncurl -L https://raw.githubusercontent.com/yetanotherco/aligned_layer/main/batcher/aligned/install_aligned.sh | bash\nClient version: {}, Expected version: {}",
197
+
PROTOCOL_VERSION, current_protocol_version
198
+
);
199
+
}
200
+
}
201
+
Err(_) => {
202
+
error!("Error while reading protocol version");
203
+
returnOk(());
204
+
}
205
+
}
206
+
}else{
207
+
error!("Batcher did not respond with the protocol version");
0 commit comments