Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/scriptpubkeyman.cpp
Show First 20 Lines • Show All 346 Lines • ▼ Show 20 Lines | if (nCreateTime <= 1) { | ||||
// Cannot determine birthday information, so set the wallet birthday to | // Cannot determine birthday information, so set the wallet birthday to | ||||
// the beginning of time. | // the beginning of time. | ||||
nTimeFirstKey = 1; | nTimeFirstKey = 1; | ||||
} else if (!nTimeFirstKey || nCreateTime < nTimeFirstKey) { | } else if (!nTimeFirstKey || nCreateTime < nTimeFirstKey) { | ||||
nTimeFirstKey = nCreateTime; | nTimeFirstKey = nCreateTime; | ||||
} | } | ||||
} | } | ||||
bool LegacyScriptPubKeyMan::LoadKey(const CKey &key, const CPubKey &pubkey) { | |||||
return AddKeyPubKeyInner(key, pubkey); | |||||
} | |||||
bool LegacyScriptPubKeyMan::AddKeyPubKey(const CKey &secret, | bool LegacyScriptPubKeyMan::AddKeyPubKey(const CKey &secret, | ||||
const CPubKey &pubkey) { | const CPubKey &pubkey) { | ||||
WalletBatch batch(m_storage.GetDatabase()); | WalletBatch batch(m_storage.GetDatabase()); | ||||
return LegacyScriptPubKeyMan::AddKeyPubKeyWithDB(batch, secret, pubkey); | return LegacyScriptPubKeyMan::AddKeyPubKeyWithDB(batch, secret, pubkey); | ||||
} | } | ||||
bool LegacyScriptPubKeyMan::AddKeyPubKeyWithDB(WalletBatch &batch, | bool LegacyScriptPubKeyMan::AddKeyPubKeyWithDB(WalletBatch &batch, | ||||
const CKey &secret, | const CKey &secret, | ||||
▲ Show 20 Lines • Show All 955 Lines • Show Last 20 Lines |