X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fwalletdb.h;h=31d6463a5c84f5533b60c72e8e680dc2d4d6cc9f;hb=1c4fc9052a444c114d9c1501d2c6d1305de650d0;hp=7097e49c9195cb91e14447a3e93440185389be2f;hpb=dfd0524d74a0970a7cbcc110b3c1b42e89deb32f;p=novacoin.git diff --git a/src/walletdb.h b/src/walletdb.h index 7097e49..31d6463 100644 --- a/src/walletdb.h +++ b/src/walletdb.h @@ -7,6 +7,7 @@ #include "db.h" #include "base58.h" +#include "keystore.h" class CKeyPool; class CAccount; @@ -122,6 +123,12 @@ public: return Write(std::make_pair(std::string("cscript"), hash), redeemScript, false); } + bool WriteWatchOnly(const CScript &dest) + { + nWalletDBUpdated++; + return Write(std::make_pair(std::string("watchs"), dest), '1'); + } + bool WriteBestBlock(const CBlockLocator& locator) { nWalletDBUpdated++;