* Update wallet first key creation time. This should be called whenever keys * are added to the wallet, with the oldest key creation time. */
| 341 | * are added to the wallet, with the oldest key creation time. |
| 342 | */ |
| 343 | void 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 | |
| 355 | bool CWallet::AddCScript(const CScript& redeemScript) |
| 356 | { |
no outgoing calls
no test coverage detected