Previously destinations were encoded with EncodeDestination, which
depends on user configuration. WalletDB needs consistent encoding.
Base58 encoding is used for backward compatibility.
Tests for Purpose, Name and DestData in CWalletDB
Differential D745
Encode destination using Base58 in WalletDB dagurval on Dec 2 2017, 21:19. Authored by
Details
Previously destinations were encoded with EncodeDestination, which Base58 encoding is used for backward compatibility. Tests for Purpose, Name and DestData in CWalletDB added tests
Diff Detail
Event Timeline
Comment Actions I introduced WriteDstPair and EraseDstPair to avoid code repetition between WritePurpose and WriteName. Unfortunately WriteDestData creates its key in different way and cannot be generalized the same way. This change is introduced in a new commit. If it's deemed an improvement, I'll squash the commits together.
Comment Actions After exploring alternatives, they indeed did not look like improvements. Let's go with that. |