| 922 | } |
| 923 | |
| 924 | bool LegacyScriptPubKeyMan::AddWatchOnlyWithDB(WalletBatch &batch, const CScript& dest) |
| 925 | { |
| 926 | if (!AddWatchOnlyInMem(dest)) |
| 927 | return false; |
| 928 | const CKeyMetadata& meta = m_script_metadata[CScriptID(dest)]; |
| 929 | UpdateTimeFirstKey(meta.nCreateTime); |
| 930 | NotifyWatchonlyChanged(true); |
| 931 | if (batch.WriteWatchOnly(dest, meta)) { |
| 932 | m_storage.UnsetBlankWalletFlag(batch); |
| 933 | return true; |
| 934 | } |
| 935 | return false; |
| 936 | } |
| 937 | |
| 938 | bool LegacyScriptPubKeyMan::AddWatchOnlyWithDB(WalletBatch &batch, const CScript& dest, int64_t create_time) |
| 939 | { |
nothing calls this directly
no test coverage detected