fix(protocol): align terminal receipt conformance
Verify Protocol / verify (push) Canceled after 0s
Verify Protocol / module (push) Successful in 1m50s

This commit is contained in:
sechmachine
2026-07-30 14:20:48 +07:00
parent 021ecf425f
commit 30bb1a2fa3
12 changed files with 121 additions and 8 deletions
+3 -1
View File
@@ -143,10 +143,12 @@ fn classify_gateway_feedback(encoded: &str) -> &'static str {
1 => "invalid:length",
2 if valid_fec_status(body) => "valid",
2 => "invalid:field",
3 if body.is_empty() => "valid",
3 => "invalid:length",
_ => "invalid:type",
};
}
if kind == 1 || kind == 2 {
if kind == 1 || kind == 2 || kind == 3 {
return "invalid:direction";
}
match kind {