Files
p2ns/includes/admin/admin-backend/routes
Raven Scott 0d23e296be ix: Prevent claim overwriting and improve domain removal safety
Fix critical bugs in domain claim management to ensure data integrity:

- Domain addition: Check for existing claims before adding to prevent duplicates
  - Update user's own claim if it exists instead of creating duplicates
  - Skip update if hash and SSL flag unchanged (idempotent)
  - Never touch other users' claims when updating own claim

- Domain removal: Add strict validation to prevent removing other users' claims
  - Only perform full cleanup (atomicDomainCleanup) when user is confirmed resolved claimant
  - Require consensus status 'resolved' AND resolvedClaimant matches localWriter
  - Improved logging to show which removal path is taken
  - Enhanced removeOwnClaimAndVotes with explicit vote key parsing

- Hash preferences cleanup: Fix module path resolution error
  - Correct require path from admin-backend/cache.js (../../core/core)
  - Add lazy require pattern with error handling to prevent crashes
  - Ensure cleanup runs after consensus updates and domain removals
2025-12-26 16:59:56 -05:00
..
2025-12-17 20:05:50 -05:00
2025-12-17 22:32:07 -05:00
2025-12-17 20:05:50 -05:00
2025-12-17 20:05:50 -05:00
2025-12-17 20:05:50 -05:00
2025-12-17 20:05:50 -05:00
2025-12-17 20:05:50 -05:00
2025-12-17 20:05:50 -05:00
2025-12-17 20:05:50 -05:00