X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fwallet.h;h=c1b8f1a66ad3ab208f6ee6f0484154d7a287d4b7;hb=a51b421f76da8bfb88dedd159789eec0063d3087;hp=e838834d7d4b2825b381cba3acfcbf53997a2315;hpb=7ee562be0d193150f2e57787744175d017540f9e;p=novacoin.git diff --git a/src/wallet.h b/src/wallet.h index e838834..c1b8f1a 100644 --- a/src/wallet.h +++ b/src/wallet.h @@ -81,7 +81,7 @@ private: int nWalletMaxVersion; // selected coins metadata - map >, pair > > mapMeta; + std::map, std::pair >, std::pair > > mapMeta; public: mutable CCriticalSection cs_wallet; @@ -118,6 +118,7 @@ public: } std::map mapWallet; + std::vector vMintingWalletUpdated; int64 nOrderPosNext; std::map mapRequestCount; @@ -181,6 +182,7 @@ public: bool AddToWallet(const CWalletTx& wtxIn); bool AddToWalletIfInvolvingMe(const CTransaction& tx, const CBlock* pblock, bool fUpdate = false, bool fFindBlock = false); bool EraseFromWallet(uint256 hash); + void ClearOrphans(); void WalletUpdateSpent(const CTransaction& prevout, bool fBlock = false); int ScanForWalletTransactions(CBlockIndex* pindexStart, bool fUpdate = false); int ScanForWalletTransaction(const uint256& hashTx); @@ -203,7 +205,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& nMinValue, const int64& nMaxValue, list& listMerged); + bool MergeCoins(const int64& nAmount, const int64& nMinValue, const int64& nMaxValue, std::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);