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
This commit is contained in:
@@ -4,7 +4,7 @@ window.updateMap = {
|
||||
'update-peers': ['peers'],
|
||||
'update-certs': ['certs'],
|
||||
'update-interfaces': ['interfaces'],
|
||||
'update-local-dns': ['local-dns', 'dns-conflicts'],
|
||||
'update-local-dns': ['local-dns', 'dns-conflicts', 'p2p-domain-conflicts'],
|
||||
'update-holesail': [],
|
||||
'update-holesail-clients': [],
|
||||
'update-settings': ['settings'],
|
||||
|
||||
Reference in New Issue
Block a user