X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fwallet.h;h=056f553805723d5d67b3344fd2ec8eef7a560596;hb=3176e0f244d929669aa3e1d81e0787d82d9150d3;hp=c7380e30eeee46d7979cb61c74e331526515de0d;hpb=2ced0cb33591a845f9609f981e0615775d5e5f0e;p=novacoin.git diff --git a/src/wallet.h b/src/wallet.h index c7380e3..056f553 100644 --- a/src/wallet.h +++ b/src/wallet.h @@ -118,7 +118,7 @@ public: // keystore implementation // Generate a new key - std::vector GenerateNewKey(); + std::vector GenerateNewKey(bool bCompressed); // Adds a key to the store, and saves it to disk. bool AddKey(const CKey& key); // Adds a key to the store, without saving it to disk (used by LoadWallet) @@ -152,7 +152,7 @@ public: int64 GetNewMint() const; bool CreateTransaction(const std::vector >& vecSend, CWalletTx& wtxNew, CReserveKey& reservekey, int64& nFeeRet); bool CreateTransaction(CScript scriptPubKey, int64 nValue, CWalletTx& wtxNew, CReserveKey& reservekey, int64& nFeeRet); - bool CreateCoinStake(const CKeyStore& keystore, unsigned int nBits, CTransaction& txNew); + bool CreateCoinStake(const CKeyStore& keystore, unsigned int nBits, int64 nSearchInterval, CTransaction& txNew); bool CommitTransaction(CWalletTx& wtxNew, CReserveKey& reservekey); std::string SendMoney(CScript scriptPubKey, int64 nValue, CWalletTx& wtxNew, bool fAskFee=false); std::string SendMoneyToBitcoinAddress(const CBitcoinAddress& address, int64 nValue, CWalletTx& wtxNew, bool fAskFee=false); @@ -276,8 +276,7 @@ public: // get the current wallet format (the oldest client version guaranteed to understand this wallet) int GetVersion() { return nWalletVersion; } - bool CheckSpentCoins(int& nMismatchSpent, int64& nBalanceInQuestion); - void FixSpentCoins(int& nMismatchSpent, int64& nBalanceInQuestion); + void FixSpentCoins(int& nMismatchSpent, int64& nBalanceInQuestion, bool fCheckOnly = false); void DisableTransaction(const CTransaction &tx); };