From 6d387af562fc85eee003a269dbea10963e941985 Mon Sep 17 00:00:00 2001 From: Thomas Date: Fri, 12 Jun 2026 08:03:42 +0200 Subject: [PATCH] psbt: remove write-only global xpub tracking set The explicit duplicate global xpub check was replaced by the generic duplicate key check in 1e2d146b47, leaving the set unused. --- src/psbt.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/psbt.h b/src/psbt.h index 9a4c600eadd..32af27ab232 100644 --- a/src/psbt.h +++ b/src/psbt.h @@ -1360,9 +1360,6 @@ public: // Used for duplicate key detection std::set> key_lookup; - // Track the global xpubs we have already seen. Just for sanity checking - std::set global_xpubs; - // Read global data bool found_sep = false; std::optional tx; @@ -1465,7 +1462,6 @@ public: if (!xpub.pubkey.IsFullyValid()) { throw std::ios_base::failure("Invalid pubkey"); } - global_xpubs.insert(xpub); // Read in the keypath from stream KeyOriginInfo keypath; DeserializeHDKeypath(s, keypath);