X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fwalletdb.cpp;h=32dc5950753aca38c955b04cb076bf9729bd1d45;hb=1c4fc9052a444c114d9c1501d2c6d1305de650d0;hp=1519ff37e5cd4613137523ad71b38755efb35cc4;hpb=5249b8a7060b3f59bdf4c710cfc20a99d3c164e9;p=novacoin.git diff --git a/src/walletdb.cpp b/src/walletdb.cpp index 1519ff3..32dc595 100644 --- a/src/walletdb.cpp +++ b/src/walletdb.cpp @@ -287,14 +287,14 @@ ReadKeyValue(CWallet* pwallet, CDataStream& ssKey, CDataStream& ssValue, wss.fAnyUnordered = true; } } - else if (strType == "watch") + else if (strType == "watchs") { - std::string strAddress; - ssKey >> strAddress; + CScript script; + ssKey >> script; char fYes; ssValue >> fYes; if (fYes == '1') - pwallet->LoadWatchOnly(CBitcoinAddress(strAddress).Get()); + pwallet->LoadWatchOnly(script); // Watch-only addresses have no birthday information for now, // so set the wallet birthday to the beginning of time.