mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-11 21:20:39 +02:00
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.
This commit is contained in:
@@ -1360,9 +1360,6 @@ public:
|
||||
// Used for duplicate key detection
|
||||
std::set<std::vector<unsigned char>> key_lookup;
|
||||
|
||||
// Track the global xpubs we have already seen. Just for sanity checking
|
||||
std::set<CExtPubKey> global_xpubs;
|
||||
|
||||
// Read global data
|
||||
bool found_sep = false;
|
||||
std::optional<CMutableTransaction> 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);
|
||||
|
||||
Reference in New Issue
Block a user