X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fwallet.cpp;h=58139533c00e47f42daadcbcd3d5c18add237e35;hp=5c9395987518c2da7f716d7651ab66c30c55c716;hb=90fcea8a8ee743d9da20ebacbdcffa6155a4330c;hpb=41b2d07b7a3cb02dd8c1faffc7737f6c54f5b4c0 diff --git a/src/wallet.cpp b/src/wallet.cpp index 5c93959..5813953 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -205,6 +205,13 @@ bool CWallet::LoadKeyMetadata(const CMalleableKeyView &keyView, const CKeyMetada return true; } +bool CWallet::LoadMinVersion(int nVersion) +{ + nWalletVersion = nVersion; + nWalletMaxVersion = max(nWalletMaxVersion, nVersion); + return true; +} + bool CWallet::AddCScript(const CScript& redeemScript) { if (!CCryptoKeyStore::AddCScript(redeemScript)) @@ -839,6 +846,7 @@ isminetype CWallet::IsMine(const CTxIn &txin) const return MINE_NO; } + CWalletTx::CWalletTx() { Init(NULL); @@ -2723,6 +2731,16 @@ void CWallet::PrintWallet(const CBlock& block) printf("\n"); } +void CWallet::Inventory(const uint256 &hash) +{ + { + LOCK(cs_wallet); + auto mi = mapRequestCount.find(hash); + if (mi != mapRequestCount.end()) + (*mi).second++; + } +} + bool CWallet::GetTransaction(const uint256 &hashTx, CWalletTx& wtx) { {