We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd45dd7 commit b57f792Copy full SHA for b57f792
libsigner/src/v0/messages.rs
@@ -1330,7 +1330,9 @@ impl StacksMessageCodec for RejectReason {
1330
}
1331
1332
fn consensus_deserialize<R: Read>(fd: &mut R) -> Result<Self, CodecError> {
1333
- let type_prefix_byte = read_next::<u8, _>(fd)?;
+ let Ok(type_prefix_byte) = read_next::<u8, _>(fd) else {
1334
+ return Ok(RejectReason::NotRejected);
1335
+ };
1336
let type_prefix = RejectReasonPrefix::from(type_prefix_byte);
1337
let code = match type_prefix {
1338
RejectReasonPrefix::ValidationFailed => RejectReason::ValidationFailed(
0 commit comments