| 910 | } |
| 911 | |
| 912 | bool LegacyScriptPubKeyMan::AddWatchOnlyInMem(const CScript &dest) |
| 913 | { |
| 914 | LOCK(cs_KeyStore); |
| 915 | setWatchOnly.insert(dest); |
| 916 | CPubKey pubKey; |
| 917 | if (ExtractPubKey(dest, pubKey)) { |
| 918 | mapWatchKeys[pubKey.GetID()] = pubKey; |
| 919 | ImplicitlyLearnRelatedKeyScripts(pubKey); |
| 920 | } |
| 921 | return true; |
| 922 | } |
| 923 | |
| 924 | bool LegacyScriptPubKeyMan::AddWatchOnlyWithDB(WalletBatch &batch, const CScript& dest) |
| 925 | { |
nothing calls this directly
no test coverage detected