MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / UpdateTimeFirstKey

Method UpdateTimeFirstKey

src/wallet/wallet.cpp:343–353  ·  view source on GitHub ↗

* Update wallet first key creation time. This should be called whenever keys * are added to the wallet, with the oldest key creation time. */

Source from the content-addressed store, hash-verified

341 * are added to the wallet, with the oldest key creation time.
342 */
343void CWallet::UpdateTimeFirstKey(int64_t nCreateTime)
344{
345 AssertLockHeld(cs_wallet);
346 if (nCreateTime <= 1) {
347 // Cannot determine birthday information, so set the wallet birthday to
348 // the beginning of time.
349 nTimeFirstKey = 1;
350 } else if (!nTimeFirstKey || nCreateTime < nTimeFirstKey) {
351 nTimeFirstKey = nCreateTime;
352 }
353}
354
355bool CWallet::AddCScript(const CScript& redeemScript)
356{

Callers 4

importprivkeyFunction · 0.80
importwalletFunction · 0.80
rpcdump.cppFile · 0.80
LoadWalletMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected