X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fwallet.h;h=c1a987ea04846b991b52f54dd3f3e4e97e155cac;hp=ce5f205493d3812f06c73cf968af1bf97634181b;hb=056f3b1ef51d160dad763ed43cacc151735999de;hpb=c6444ebc7248037fccd5ff6e66f0b180f84a6302 diff --git a/src/wallet.h b/src/wallet.h index ce5f205..c1a987e 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 { @@ -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);