You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wallet: route manager master fingerprint read through Store
resolveMasterFingerprint read the master HD public key with a direct
walletdb.View against the address manager during wallet load. The master
public key is public wallet metadata, so route it through Store.GetWallet
instead, removing the last direct walletdb transaction for public-metadata
reads from wallet/manager.go.
To serve the read, add MasterHDPubKey to the waddrmgr.AddrStore interface
(already implemented on *waddrmgr.Manager) and have kvdb's GetWallet fill
WalletInfo.MasterPubKey from it, tolerating ErrNoExist for shell, watch-only,
and pre-master-key wallets. The MasterHDPubKey read is extracted into a small
readMasterPubKey helper to keep GetWallet within the complexity limit.
The DBCreateWallet/DBLoadWallet create/load path is left as-is: kvdb's
Store.CreateWallet is unimplemented and the Store does not return the legacy
waddrmgr.Manager/wtxmgr.Store the runtime needs, so that remains justified
runtime-construction scope. Passphrase, private-key, and signer flows are
unchanged (deferred to ADR 0010).
TestManagerLoadSuccess now asserts the loaded wallet's cached master
fingerprint is non-zero and matches the create-time value, locking in the
Store-routed read.
0 commit comments