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

Method RemoveWatchOnly

src/wallet.cpp:420–432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

418}
419
420bool CWallet::RemoveWatchOnly(const CScript& dest)
421{
422 AssertLockHeld(cs_wallet);
423 if (!CCryptoKeyStore::RemoveWatchOnly(dest))
424 return false;
425 if (!HaveWatchOnly())
426 NotifyWatchonlyChanged(false);
427 if (fFileBacked)
428 if (!CWalletDB(strWalletFile).EraseWatchOnly(dest))
429 return false;
430
431 return true;
432}
433
434bool CWallet::LoadWatchOnly(const CScript& dest)
435{

Callers

nothing calls this directly

Calls 3

NotifyWatchonlyChangedFunction · 0.85
CWalletDBClass · 0.85
EraseWatchOnlyMethod · 0.80

Tested by

no test coverage detected