Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show First 20 Lines • Show All 852 Lines • ▼ Show 20 Lines | public: | ||||
//! Holds a timestamp at which point the wallet is scheduled (externally) to | //! Holds a timestamp at which point the wallet is scheduled (externally) to | ||||
//! be relocked. Caller must arrange for actual relocking to occur via | //! be relocked. Caller must arrange for actual relocking to occur via | ||||
//! Lock(). | //! Lock(). | ||||
int64_t nRelockTime; | int64_t nRelockTime; | ||||
bool Unlock(const SecureString &strWalletPassphrase); | bool Unlock(const SecureString &strWalletPassphrase); | ||||
bool ChangeWalletPassphrase(const SecureString &strOldWalletPassphrase, | bool ChangeWalletPassphrase(const SecureString &strOldWalletPassphrase, | ||||
const SecureString &strNewWalletPassphrase); | const SecureString &strNewWalletPassphrase); | ||||
bool EncryptWallet(const SecureString &strWalletPassphrase); | bool EncryptWallet(const SecureString &strWalletPassphrase, | ||||
CKey *newSeed = nullptr); | |||||
void GetKeyBirthTimes(std::map<CTxDestination, int64_t> &mapKeyBirth) const; | void GetKeyBirthTimes(std::map<CTxDestination, int64_t> &mapKeyBirth) const; | ||||
unsigned int ComputeTimeSmart(const CWalletTx &wtx) const; | unsigned int ComputeTimeSmart(const CWalletTx &wtx) const; | ||||
/** | /** | ||||
* Increment the next transaction order id | * Increment the next transaction order id | ||||
* @return next transaction order id | * @return next transaction order id | ||||
*/ | */ | ||||
Show All 13 Lines | BlockConnected(const std::shared_ptr<const CBlock> &pblock, | ||||
const CBlockIndex *pindex, | const CBlockIndex *pindex, | ||||
const std::vector<CTransactionRef> &vtxConflicted) override; | const std::vector<CTransactionRef> &vtxConflicted) override; | ||||
void | void | ||||
BlockDisconnected(const std::shared_ptr<const CBlock> &pblock) override; | BlockDisconnected(const std::shared_ptr<const CBlock> &pblock) override; | ||||
bool AddToWalletIfInvolvingMe(const CTransactionRef &tx, | bool AddToWalletIfInvolvingMe(const CTransactionRef &tx, | ||||
const CBlockIndex *pIndex, int posInBlock, | const CBlockIndex *pIndex, int posInBlock, | ||||
bool fUpdate); | bool fUpdate); | ||||
CBlockIndex *ScanForWalletTransactions(CBlockIndex *pindexStart, | CBlockIndex *ScanForWalletTransactions(CBlockIndex *pindexStart, | ||||
bool fUpdate = false); | bool fUpdate = false, | ||||
int64_t forceAll = 0); | |||||
void ReacceptWalletTransactions(); | void ReacceptWalletTransactions(); | ||||
void ResendWalletTransactions(int64_t nBestBlockTime, | void ResendWalletTransactions(int64_t nBestBlockTime, | ||||
CConnman *connman) override; | CConnman *connman) override; | ||||
// ResendWalletTransactionsBefore may only be called if | // ResendWalletTransactionsBefore may only be called if | ||||
// fBroadcastTransactions! | // fBroadcastTransactions! | ||||
std::vector<uint256> ResendWalletTransactionsBefore(int64_t nTime, | std::vector<uint256> ResendWalletTransactionsBefore(int64_t nTime, | ||||
CConnman *connman); | CConnman *connman); | ||||
Amount GetBalance() const; | Amount GetBalance() const; | ||||
▲ Show 20 Lines • Show All 232 Lines • ▼ Show 20 Lines | public: | ||||
/* Set the HD chain model (chain child index counters) */ | /* Set the HD chain model (chain child index counters) */ | ||||
bool SetHDChain(const CHDChain &chain, bool memonly); | bool SetHDChain(const CHDChain &chain, bool memonly); | ||||
const CHDChain &GetHDChain() { return hdChain; } | const CHDChain &GetHDChain() { return hdChain; } | ||||
/* Returns true if HD is enabled */ | /* Returns true if HD is enabled */ | ||||
bool IsHDEnabled(); | bool IsHDEnabled(); | ||||
/* Generates a new HD master key (will not be activated) */ | /* Generates a new HD master key (will not be activated) */ | ||||
CPubKey GenerateNewHDMasterKey(); | CPubKey GenerateNewHDMasterKey(CKey *newSeed = nullptr); | ||||
/** | /** | ||||
* Set the current HD master key (will reset the chain child index counters) | * Set the current HD master key (will reset the chain child index counters) | ||||
* If possibleOldChain is provided, the parameters from the old chain | * If possibleOldChain is provided, the parameters from the old chain | ||||
* (version) will be preserved. | * (version) will be preserved. | ||||
*/ | */ | ||||
bool SetHDMasterKey(const CPubKey &key, | bool SetHDMasterKey(const CPubKey &key, | ||||
CHDChain *possibleOldChain = nullptr); | CHDChain *possibleOldChain = nullptr); | ||||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |