Add 'Other' opcode matching when parsing Reject messages

This commit is contained in:
Deirdre Connolly 2019-11-26 17:25:31 -05:00 committed by Deirdre Connolly
parent dd042cf4d8
commit 6f52fc7773
1 changed files with 1 additions and 0 deletions

View File

@ -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()?,