I had a contact. He misplaced his wallet and so I added him again with a different xpub. The problem is that old addresses referenced by HDPath only, not by the index of the multiple XPubs, so now I get this:
Error: check fail: hdpath 'm/44'/5'/0'/1/1' for 'Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' derived 'Xyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'
Immediate Workaround
Open the ~/.config/dash/pay-wallets.json and give the new version of him a different name.
Codefix Workaround
Continue to iterate over the contact's wallets on error and only fail if no wallet matches
Future Solution
Use ULIDs to identify contacts and associate each hdpath with a ULID and Account Index. The ULID can represent either a wallet phrase + account index, or an xprv, or xpub.
I had a contact. He misplaced his wallet and so I added him again with a different xpub. The problem is that old addresses referenced by HDPath only, not by the index of the multiple XPubs, so now I get this:
Immediate Workaround
Open the
~/.config/dash/pay-wallets.jsonand give the new version of him a different name.Codefix Workaround
Continue to iterate over the contact's wallets on error and only fail if no wallet matches
Future Solution
Use
ULIDs to identify contacts and associate eachhdpathwith a ULID and Account Index. The ULID can represent either awallet phrase + account index, or anxprv, orxpub.