Fail closed on corrupt peer records before content authentication

This commit is contained in:
archipelago
2026-10-06 06:40:59 -04:00
parent b8e512fed6
commit 1971aeb3e3
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -235,7 +235,8 @@ mod tests {
.unwrap_err();
// The corrupt identity store fails before the separate missing-FIPS
// route error. It reaches the payment caller's existing refund branch.
assert!(!error.to_string().contains("FIPS"));
assert!(error.to_string().contains("Invalid federation nodes"));
assert_eq!(tokio::fs::read(dir.path().join("federation/nodes.json")).await.unwrap(), b"invalid");
assert!(!dir.path().join("identity").exists());
}