node: Ignore messages from newer protocol versions
modified radicle-node/src/wire.rs
@@ -62,6 +62,8 @@ pub enum Error {
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
modified radicle-node/src/wire/frame.rs
@@ -4,9 +4,11 @@ use std::{fmt, io};
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -19,11 +21,18 @@ const CONTROL_EOF: u8 = 2;
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -32,7 +41,7 @@ impl wire::Decode for Version {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -197,7 +206,7 @@ impl Frame {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -206,7 +215,7 @@ impl Frame {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -215,7 +224,7 @@ impl Frame {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -306,6 +315,9 @@ impl wire::Encode for Control {
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
modified radicle-node/src/wire/protocol.rs
@@ -31,6 +31,7 @@ use crate::service;
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -812,6 +813,15 @@ where
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -1199,7 +1209,7 @@ mod test {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|