Skip to content

Commit 9716bbe

Browse files
committed
Refactor: Move LoadKey LegacyScriptPubKeyMan method definition
This commit does not change behavior.
1 parent 67be6b9 commit 9716bbe

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/wallet/scriptpubkeyman.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,11 @@ void LegacyScriptPubKeyMan::UpdateTimeFirstKey(int64_t nCreateTime)
398398
}
399399
}
400400

401+
bool LegacyScriptPubKeyMan::LoadKey(const CKey& key, const CPubKey &pubkey)
402+
{
403+
return AddKeyPubKeyInner(key, pubkey);
404+
}
405+
401406
bool LegacyScriptPubKeyMan::AddKeyPubKey(const CKey& secret, const CPubKey &pubkey)
402407
{
403408
WalletBatch batch(m_storage.GetDatabase());

src/wallet/scriptpubkeyman.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ class LegacyScriptPubKeyMan : public ScriptPubKeyMan, public FillableSigningProv
276276
//! Adds a key to the store, and saves it to disk.
277277
bool AddKeyPubKey(const CKey& key, const CPubKey &pubkey) override EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
278278
//! Adds a key to the store, without saving it to disk (used by LoadWallet)
279-
bool LoadKey(const CKey& key, const CPubKey &pubkey) { return AddKeyPubKeyInner(key, pubkey); }
279+
bool LoadKey(const CKey& key, const CPubKey &pubkey);
280280
//! Adds an encrypted key to the store, and saves it to disk.
281281
bool AddCryptedKey(const CPubKey &vchPubKey, const std::vector<unsigned char> &vchCryptedSecret);
282282
//! Adds an encrypted key to the store, without saving it to disk (used by LoadWallet)

0 commit comments

Comments
 (0)