From 987ef5114c98bdf5d1f2d326fce183f15ce26c3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20H=C3=A4ggblad?= Date: Sun, 9 Mar 2025 00:42:17 +0100 Subject: [PATCH] Always purge sender tags on startup --- .../client-core/surb-storage/src/backend/fs_backend/mod.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common/client-core/surb-storage/src/backend/fs_backend/mod.rs b/common/client-core/surb-storage/src/backend/fs_backend/mod.rs index 4914f6621f..503ef3bfb3 100644 --- a/common/client-core/surb-storage/src/backend/fs_backend/mod.rs +++ b/common/client-core/surb-storage/src/backend/fs_backend/mod.rs @@ -120,6 +120,13 @@ impl Backend { manager.delete_all_tags().await?; } + // We ran into a bug where the client was re-using the same sender tag while connected to + // different gateways. This does not work since changing the gateway changes the + // nym-addres. + // A stop-gap solution is to always purge the tags when the client is started. + // When writing this I'm not yet sure what the correct solution is. + manager.delete_all_tags().await?; + Ok(Backend { temporary_old_path: None, database_path: owned_path,