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

Method RemoveWatchOnly

src/wallet/wallet.cpp:393–404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

391}
392
393bool CWallet::RemoveWatchOnly(const CScript &dest)
394{
395 AssertLockHeld(cs_wallet);
396 if (!CCryptoKeyStore::RemoveWatchOnly(dest))
397 return false;
398 if (!HaveWatchOnly())
399 NotifyWatchonlyChanged(false);
400 if (!WalletBatch(*database).EraseWatchOnly(dest))
401 return false;
402
403 return true;
404}
405
406bool CWallet::LoadWatchOnly(const CScript &dest)
407{

Callers

nothing calls this directly

Calls 3

NotifyWatchonlyChangedFunction · 0.85
WalletBatchClass · 0.85
EraseWatchOnlyMethod · 0.80

Tested by

no test coverage detected