aboutsummaryrefslogtreecommitdiff
path: root/src/walletdb.cpp
diff options
context:
space:
mode:
authorCozz Lovan <cozzlovan@yahoo.com>2014-07-26 21:05:11 +0200
committerCozz Lovan <cozzlovan@yahoo.com>2014-10-03 04:29:51 +0200
commitccca27a788fe1ae13661308243c20a1d7a3d0074 (patch)
treeb862f0f1e0fe98fdd1957cc2236076fef899cc50 /src/walletdb.cpp
parent29f96e8bc652cb14c6fdefe5279ee983054faa2a (diff)
[Wallet] Watch-only fixes
Diffstat (limited to 'src/walletdb.cpp')
-rw-r--r--src/walletdb.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/walletdb.cpp b/src/walletdb.cpp
index 3e5a664a5d..a851db65cd 100644
--- a/src/walletdb.cpp
+++ b/src/walletdb.cpp
@@ -121,6 +121,12 @@ bool CWalletDB::WriteWatchOnly(const CScript &dest)
return Write(std::make_pair(std::string("watchs"), dest), '1');
}
+bool CWalletDB::EraseWatchOnly(const CScript &dest)
+{
+ nWalletDBUpdated++;
+ return Erase(std::make_pair(std::string("watchs"), dest));
+}
+
bool CWalletDB::WriteBestBlock(const CBlockLocator& locator)
{
nWalletDBUpdated++;