Advert-path uses correct identity for dedupe

This commit is contained in:
Jack Kingsman
2026-03-07 22:24:46 -08:00
parent 76d11b01a7
commit 48dab293ae
7 changed files with 218 additions and 12 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ CREATE TABLE IF NOT EXISTS contact_advert_paths (
first_seen INTEGER NOT NULL,
last_seen INTEGER NOT NULL,
heard_count INTEGER NOT NULL DEFAULT 1,
UNIQUE(public_key, path_hex),
UNIQUE(public_key, path_hex, path_len),
FOREIGN KEY (public_key) REFERENCES contacts(public_key)
);