diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-12-03 15:18:38 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-12-03 15:18:38 +0000 |
| commit | 8c9fcbcdc1f03df27e5ce9009bde56e7ddfebac2 (patch) | |
| tree | 820524659daa20242ec2aea9974b13ae7be7810c /src/http | |
| parent | e30dfd5e5abb96cdc89b80f1d085466e55c347e0 (diff) | |
flag NIP-77 negentropy support
Diffstat (limited to 'src/http')
| -rw-r--r-- | src/http/nip11.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/nip11.rs b/src/http/nip11.rs index e6a1e46..2a37385 100644 --- a/src/http/nip11.rs +++ b/src/http/nip11.rs | |||
| @@ -65,6 +65,7 @@ impl RelayInformationDocument { | |||
| 65 | 1, // NIP-01: Basic protocol flow | 65 | 1, // NIP-01: Basic protocol flow |
| 66 | 11, // NIP-11: Relay information document (this!) | 66 | 11, // NIP-11: Relay information document (this!) |
| 67 | 34, // NIP-34: Git repository announcements | 67 | 34, // NIP-34: Git repository announcements |
| 68 | 77, // NIP-77: Negentropy sync (reconciliation protocol) | ||
| 68 | ], | 69 | ], |
| 69 | software: "https://gitworkshop.dev/danconwaydev.com/ngit-grasp".to_string(), | 70 | software: "https://gitworkshop.dev/danconwaydev.com/ngit-grasp".to_string(), |
| 70 | version: match option_env!("GIT_COMMIT_SHORT") { | 71 | version: match option_env!("GIT_COMMIT_SHORT") { |
| @@ -115,6 +116,7 @@ mod tests { | |||
| 115 | assert!(doc.supported_nips.contains(&1)); | 116 | assert!(doc.supported_nips.contains(&1)); |
| 116 | assert!(doc.supported_nips.contains(&11)); | 117 | assert!(doc.supported_nips.contains(&11)); |
| 117 | assert!(doc.supported_nips.contains(&34)); | 118 | assert!(doc.supported_nips.contains(&34)); |
| 119 | assert!(doc.supported_nips.contains(&77)); | ||
| 118 | assert_eq!(doc.supported_grasps, vec!["GRASP-01"]); | 120 | assert_eq!(doc.supported_grasps, vec!["GRASP-01"]); |
| 119 | assert!(doc.repo_acceptance_criteria.contains("relay.example.com")); | 121 | assert!(doc.repo_acceptance_criteria.contains("relay.example.com")); |
| 120 | assert!(doc.curation.is_none()); | 122 | assert!(doc.curation.is_none()); |