X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fwallet.h;h=9dfc56eff52c822e7f149b8cc59197bce53e0226;hb=532b9005ab4fc02db3db424b4631fe395e0b9071;hp=607511869868f9b403d3a6abddaccb4cee47ccaa;hpb=48564f02c4769f26295bedfc04b796246ad0d0bc;p=novacoin.git diff --git a/src/wallet.h b/src/wallet.h index 6075118..9dfc56e 100644 --- a/src/wallet.h +++ b/src/wallet.h @@ -27,6 +27,14 @@ class CReserveKey; class COutput; class CCoinControl; +// Set of selected transactions +typedef std::set > CoinsSet; + +// Preloaded coins metadata +// (txid, vout.n) => ((txindex, (tx, vout.n)), (block, modifier)) +typedef std::map, std::pair >, std::pair > > MetaMap; + + /** (client) version numbers for particular wallet features */ enum WalletFeature { @@ -159,7 +167,7 @@ public: // Adds an encrypted key to the store, without saving it to disk (used by LoadWallet) bool LoadCryptedKey(const CPubKey &vchPubKey, const std::vector &vchCryptedSecret) { SetMinVersion(FEATURE_WALLETCRYPT); return CCryptoKeyStore::AddCryptedKey(vchPubKey, vchCryptedSecret); } bool AddCScript(const CScript& redeemScript); - bool LoadCScript(const CScript& redeemScript) { return CCryptoKeyStore::AddCScript(redeemScript); } + bool LoadCScript(const CScript& redeemScript); // Adds a watch-only address to the store, and saves it to disk. bool AddWatchOnly(const CScript &dest); @@ -214,7 +222,7 @@ public: void GetStakeStats(float &nKernelsRate, float &nCoinDaysRate); void GetStakeWeightFromValue(const int64_t& nTime, const int64_t& nValue, uint64_t& nWeight); - bool CreateCoinStake(const CKeyStore& keystore, unsigned int nBits, int64_t nSearchInterval, CTransaction& txNew, CKey& key); + bool CreateCoinStake(const CKeyStore& keystore, unsigned int nBits, uint32_t nSearchInterval, CTransaction& txNew, CKey& key); bool MergeCoins(const int64_t& nAmount, const int64_t& nMinValue, const int64_t& nMaxValue, std::list& listMerged); std::string SendMoney(CScript scriptPubKey, int64_t nValue, CWalletTx& wtxNew, bool fAskFee=false); @@ -320,7 +328,7 @@ public: unsigned int GetKeyPoolSize() { - return setKeyPool.size(); + return (unsigned int)(setKeyPool.size()); } bool GetTransaction(const uint256 &hashTx, CWalletTx& wtx);