From 6f52fc7773bf28f6382ca109cb90581966185f89 Mon Sep 17 00:00:00 2001 From: Deirdre Connolly Date: Tue, 26 Nov 2019 17:25:31 -0500 Subject: [PATCH] Add 'Other' opcode matching when parsing Reject messages --- zebra-network/src/protocol/codec.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/zebra-network/src/protocol/codec.rs b/zebra-network/src/protocol/codec.rs index ca016e27..3e6a17e3 100644 --- a/zebra-network/src/protocol/codec.rs +++ b/zebra-network/src/protocol/codec.rs @@ -472,6 +472,7 @@ impl Codec { 0x41 => RejectReason::Dust, 0x42 => RejectReason::InsufficientFee, 0x43 => RejectReason::Checkpoint, + 0x50 => RejectReason::Other, _ => return Err(Error::Parse("invalid RejectReason value in ccode field")), }, reason: reader.read_string()?,