MCPcopy Create free account
hub / github.com/LUX-Core/lux / AddWatchOnly

Method AddWatchOnly

src/wallet.cpp:409–418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

407}
408
409bool CWallet::AddWatchOnly(const CScript& dest)
410{
411 if (!CCryptoKeyStore::AddWatchOnly(dest))
412 return false;
413 nTimeFirstKey = 1; // No birthday information for watch-only keys.
414 NotifyWatchonlyChanged(true);
415 if (!fFileBacked)
416 return true;
417 return CWalletDB(strWalletFile).WriteWatchOnly(dest);
418}
419
420bool CWallet::RemoveWatchOnly(const CScript& dest)
421{

Callers 1

ImportScriptFunction · 0.45

Calls 3

NotifyWatchonlyChangedFunction · 0.85
CWalletDBClass · 0.85
WriteWatchOnlyMethod · 0.80

Tested by

no test coverage detected