X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fwallet.h;h=195a6ce56559075c54019d888e415bdbb1bd3cf6;hb=ca78b9e6a859e32fbe36e7afb12c9c9403e8a5b0;hp=f9a2983659629a6eaad4d0eefb738406a098a8b4;hpb=02d595020899b8fe9cfd12728ff17299bce12903;p=novacoin.git diff --git a/src/wallet.h b/src/wallet.h index f9a2983..195a6ce 100644 --- a/src/wallet.h +++ b/src/wallet.h @@ -80,6 +80,9 @@ private: // the maximum wallet format version: memory-only variable that specifies to what version this wallet may be upgraded int nWalletMaxVersion; + // selected coins metadata + map >, pair > > mapMeta; + public: mutable CCriticalSection cs_wallet; @@ -200,6 +203,7 @@ public: bool GetStakeWeight(const CKeyStore& keystore, uint64& nMinWeight, uint64& nMaxWeight, uint64& nWeight); void GetStakeWeightFromValue(const int64& nTime, const int64& nValue, uint64& nWeight); bool CreateCoinStake(const CKeyStore& keystore, unsigned int nBits, int64 nSearchInterval, CTransaction& txNew, CKey& key); + bool MergeCoins(const int64& nAmount, const int64& nMaxValue, const int64& nOutputValue, list& listMerged); std::string SendMoney(CScript scriptPubKey, int64 nValue, CWalletTx& wtxNew, bool fAskFee=false); std::string SendMoneyToDestination(const CTxDestination &address, int64 nValue, CWalletTx& wtxNew, bool fAskFee=false);