Files
bitcoin/src
Thomas 7c632c0e2a psbt: avoid duplicate global xpub keys when merging
The global xpubs are stored in a map of key origin to set of xpubs,
while the serialization writes one record per xpub, keyed by the xpub.
Merging two PSBTs origin-by-origin can store the same xpub under two
origins, which serializes as a PSBT with duplicate keys that the
deserializer (and BIP 174) reject. Notably, combinepsbt returned a
PSBT that no RPC could parse again when the combined PSBTs provide
different key origins for the same xpub.

Deduplicate by xpub when merging, keeping the origin that is already
present, and share the logic between combinepsbt and joinpsbts.
2026-07-06 09:50:34 +02:00
..
2026-06-26 09:56:01 -07:00
2026-07-03 18:26:26 +01:00
2026-07-02 13:04:33 -07:00
2026-06-23 09:25:49 +01:00
2026-07-03 18:26:26 +01:00
2026-06-04 21:58:56 +10:00
2026-06-04 21:58:56 +10:00
2026-06-23 16:13:03 -07:00