|
CWalletDBWrapper & | GetDBHandle () |
| Get database handle used by this wallet. More...
|
|
std::string | GetName () const |
| Get a name for this wallet for logging/debugging purposes. More...
|
|
void | LoadKeyPool (int64_t nIndex, const CKeyPool &keypool) |
|
| CWallet () |
|
| CWallet (std::unique_ptr< CWalletDBWrapper > dbw_in) |
|
| ~CWallet () |
|
void | SetNull () |
|
const CWalletTx * | GetWalletTx (const uint256 &hash) const |
|
bool | CanSupportFeature (enum WalletFeature wf) const |
| check whether we are allowed to upgrade (or already support) to the named feature More...
|
|
void | AvailableCoins (std::vector< COutput > &vCoins, bool fOnlySafe=true, const CCoinControl *coinControl=nullptr, const CAmount &nMinimumAmount=1, const CAmount &nMaximumAmount=MAX_MONEY, const CAmount &nMinimumSumAmount=MAX_MONEY, const uint64_t &nMaximumCount=0, const int &nMinDepth=0, const int &nMaxDepth=9999999) const |
| populate vCoins with vector of available COutputs. More...
|
|
std::map< CTxDestination, std::vector< COutput > > | ListCoins () const |
| Return list of available coins and locked coins grouped by non-change output address. More...
|
|
const CTxOut & | FindNonChangeParentOutput (const CTransaction &tx, int output) const |
| Find non-change parent output. More...
|
|
bool | SelectCoinsMinConf (const CAmount &nTargetValue, int nConfMine, int nConfTheirs, uint64_t nMaxAncestors, std::vector< COutput > vCoins, std::set< CInputCoin > &setCoinsRet, CAmount &nValueRet) const |
| Shuffle and select coins until nTargetValue is reached while avoiding small change; This method is stochastic for some inputs and upon completion the coin set and corresponding actual target value is assembled. More...
|
|
bool | IsSpent (const uint256 &hash, unsigned int n) const |
| Outpoint is spent if any non-conflicted transaction spends it: More...
|
|
bool | IsLockedCoin (uint256 hash, unsigned int n) const |
|
void | LockCoin (const COutPoint &output) |
|
void | UnlockCoin (const COutPoint &output) |
|
void | UnlockAllCoins () |
|
void | ListLockedCoins (std::vector< COutPoint > &vOutpts) const |
|
void | AbortRescan () |
|
bool | IsAbortingRescan () |
|
bool | IsScanning () |
|
CPubKey | GenerateNewKey (CWalletDB &walletdb, bool internal=false) |
| keystore implementation Generate a new key More...
|
|
bool | AddKeyPubKey (const CKey &key, const CPubKey &pubkey) override |
| Adds a key to the store, and saves it to disk. More...
|
|
bool | AddKeyPubKeyWithDB (CWalletDB &walletdb, const CKey &key, const CPubKey &pubkey) |
|
bool | LoadKey (const CKey &key, const CPubKey &pubkey) |
| Adds a key to the store, without saving it to disk (used by LoadWallet) More...
|
|
bool | LoadKeyMetadata (const CTxDestination &pubKey, const CKeyMetadata &metadata) |
| Load metadata (used by LoadWallet) More...
|
|
bool | LoadMinVersion (int nVersion) |
|
void | UpdateTimeFirstKey (int64_t nCreateTime) |
| Update wallet first key creation time. More...
|
|
bool | AddCryptedKey (const CPubKey &vchPubKey, const std::vector< unsigned char > &vchCryptedSecret) override |
| Adds an encrypted key to the store, and saves it to disk. More...
|
|
bool | LoadCryptedKey (const CPubKey &vchPubKey, const std::vector< unsigned char > &vchCryptedSecret) |
| Adds an encrypted key to the store, without saving it to disk (used by LoadWallet) More...
|
|
bool | AddCScript (const CScript &redeemScript) override |
| Support for BIP 0013 : see https://github.com/fabcoin/bips/blob/master/bip-0013.mediawiki. More...
|
|
bool | LoadCScript (const CScript &redeemScript) |
|
bool | AddDestData (const CTxDestination &dest, const std::string &key, const std::string &value) |
| Adds a destination data tuple to the store, and saves it to disk. More...
|
|
bool | EraseDestData (const CTxDestination &dest, const std::string &key) |
| Erases a destination data tuple in the store and on disk. More...
|
|
bool | LoadDestData (const CTxDestination &dest, const std::string &key, const std::string &value) |
| Adds a destination data tuple to the store, without saving it to disk. More...
|
|
bool | GetDestData (const CTxDestination &dest, const std::string &key, std::string *value) const |
| Look up a destination data tuple in the store, return true if found false otherwise. More...
|
|
std::vector< std::string > | GetDestValues (const std::string &prefix) const |
| Get all destination values matching a prefix. More...
|
|
bool | AddWatchOnly (const CScript &dest, int64_t nCreateTime) |
| Adds a watch-only address to the store, and saves it to disk. More...
|
|
bool | RemoveWatchOnly (const CScript &dest) override |
|
bool | LoadWatchOnly (const CScript &dest) |
| Adds a watch-only address to the store, without saving it to disk (used by LoadWallet) More...
|
|
bool | Unlock (const SecureString &strWalletPassphrase) |
|
bool | ChangeWalletPassphrase (const SecureString &strOldWalletPassphrase, const SecureString &strNewWalletPassphrase) |
|
bool | EncryptWallet (const SecureString &strWalletPassphrase) |
|
void | GetKeyBirthTimes (std::map< CTxDestination, int64_t > &mapKeyBirth) const |
|
unsigned int | ComputeTimeSmart (const CWalletTx &wtx) const |
| Compute smart timestamp for a transaction being added to the wallet. More...
|
|
bool | LoadToken (const CTokenInfo &token) |
|
bool | LoadTokenTx (const CTokenTx &tokenTx) |
|
bool | LoadContractData (const std::string &address, const std::string &key, const std::string &value) |
| Adds a contract data tuple to the store, without saving it to disk. More...
|
|
int64_t | IncOrderPosNext (CWalletDB *pwalletdb=nullptr) |
| Increment the next transaction order id. More...
|
|
DBErrors | ReorderTransactions () |
|
bool | AccountMove (std::string strFrom, std::string strTo, CAmount nAmount, std::string strComment="") |
|
bool | GetAccountPubkey (CPubKey &pubKey, std::string strAccount, bool bForceNew=false) |
|
void | MarkDirty () |
|
bool | AddToWallet (const CWalletTx &wtxIn, bool fFlushOnClose=true) |
|
bool | LoadToWallet (const CWalletTx &wtxIn) |
|
void | TransactionAddedToMempool (const CTransactionRef &tx) override |
| Notifies listeners of a transaction having been added to mempool. More...
|
|
void | BlockConnected (const std::shared_ptr< const CBlock > &pblock, const CBlockIndex *pindex, const std::vector< CTransactionRef > &vtxConflicted) override |
| Notifies listeners of a block being connected. More...
|
|
void | BlockDisconnected (const std::shared_ptr< const CBlock > &pblock) override |
| Notifies listeners of a block being disconnected. More...
|
|
bool | AddToWalletIfInvolvingMe (const CTransactionRef &tx, const CBlockIndex *pIndex, int posInBlock, bool fUpdate) |
| Add a transaction to the wallet, or update it. More...
|
|
int64_t | RescanFromTime (int64_t startTime, bool update) |
| Scan active chain for relevant transactions after importing keys. More...
|
|
CBlockIndex * | ScanForWalletTransactions (CBlockIndex *pindexStart, bool fUpdate=false) |
| Scan the block chain (starting in pindexStart) for transactions from or to us. More...
|
|
void | ReacceptWalletTransactions () |
|
void | ResendWalletTransactions (int64_t nBestBlockTime, CConnman *connman) override |
| Tells listeners to broadcast their data. More...
|
|
std::vector< uint256 > | ResendWalletTransactionsBefore (int64_t nTime, CConnman *connman) |
|
CAmount | GetBalance () const |
|
CAmount | GetUnconfirmedBalance () const |
|
CAmount | GetImmatureBalance () const |
|
CAmount | GetWatchOnlyBalance () const |
|
CAmount | GetUnconfirmedWatchOnlyBalance () const |
|
CAmount | GetImmatureWatchOnlyBalance () const |
|
CAmount | GetLegacyBalance (const isminefilter &filter, int minDepth, const std::string *account) const |
|
CAmount | GetAvailableBalance (const CCoinControl *coinControl=nullptr) const |
|
bool | FundTransaction (CMutableTransaction &tx, CAmount &nFeeRet, int &nChangePosInOut, std::string &strFailReason, bool lockUnspents, const std::set< int > &setSubtractFeeFromOutputs, CCoinControl) |
| Insert additional inputs into the transaction by calling CreateTransaction();. More...
|
|
bool | SignTransaction (CMutableTransaction &tx) |
|
bool | CreateTransaction (const std::vector< CRecipient > &vecSend, CWalletTx &wtxNew, CReserveKey &reservekey, CAmount &nFeeRet, int &nChangePosInOut, std::string &strFailReason, const CCoinControl &coin_control, bool sign=true, CAmount nGasFee=0, bool hasSender=false) |
| Create a new transaction paying the recipients with a set of coins selected by SelectCoins(); Also create the change output, when needed. More...
|
|
bool | CommitTransaction (CWalletTx &wtxNew, CReserveKey &reservekey, CConnman *connman, CValidationState &state) |
| Call after CreateTransaction unless you want to abort. More...
|
|
void | ListAccountCreditDebit (const std::string &strAccount, std::list< CAccountingEntry > &entries) |
|
bool | AddAccountingEntry (const CAccountingEntry &) |
|
bool | AddAccountingEntry (const CAccountingEntry &, CWalletDB *pwalletdb) |
|
template<typename ContainerType > |
bool | DummySignTx (CMutableTransaction &txNew, const ContainerType &coins) const |
|
bool | NewKeyPool () |
| Mark old keypool keys as used, and generate all new keys. More...
|
|
size_t | KeypoolCountExternalKeys () |
|
bool | TopUpKeyPool (unsigned int kpSize=0) |
|
void | ReserveKeyFromKeyPool (int64_t &nIndex, CKeyPool &keypool, bool fRequestedInternal) |
|
void | KeepKey (int64_t nIndex) |
|
void | ReturnKey (int64_t nIndex, bool fInternal, const CPubKey &pubkey) |
|
bool | GetKeyFromPool (CPubKey &key, bool internal=false) |
|
int64_t | GetOldestKeyPoolTime () |
|
void | MarkReserveKeysAsUsed (int64_t keypool_id) |
| Marks all keys in the keypool up to and including reserve_key as used. More...
|
|
const std::map< CKeyID, int64_t > & | GetAllReserveKeys () const |
|
std::set< std::set< CTxDestination > > | GetAddressGroupings () |
|
std::map< CTxDestination, CAmount > | GetAddressBalances () |
|
std::set< CTxDestination > | GetAccountAddresses (const std::string &strAccount) const |
|
isminetype | IsMine (const CTxIn &txin) const |
|
CAmount | GetDebit (const CTxIn &txin, const isminefilter &filter) const |
| Returns amount of debit if the input matches the filter, otherwise returns 0. More...
|
|
isminetype | IsMine (const CTxOut &txout) const |
|
CAmount | GetCredit (const CTxOut &txout, const isminefilter &filter) const |
|
bool | IsChange (const CTxOut &txout) const |
|
CAmount | GetChange (const CTxOut &txout) const |
|
bool | IsMine (const CTransaction &tx) const |
|
bool | IsFromMe (const CTransaction &tx) const |
| should probably be renamed to IsRelevantToMe More...
|
|
CAmount | GetDebit (const CTransaction &tx, const isminefilter &filter) const |
|
bool | IsAllFromMe (const CTransaction &tx, const isminefilter &filter) const |
| Returns whether all of the inputs match the filter. More...
|
|
CAmount | GetCredit (const CTransaction &tx, const isminefilter &filter) const |
|
CAmount | GetChange (const CTransaction &tx) const |
|
void | SetBestChain (const CBlockLocator &loc) override |
| Notifies listeners of the new active block chain on-disk. More...
|
|
DBErrors | LoadWallet (bool &fFirstRunRet) |
|
DBErrors | ZapWalletTx (std::vector< CWalletTx > &vWtx) |
|
DBErrors | ZapSelectTx (std::vector< uint256 > &vHashIn, std::vector< uint256 > &vHashOut) |
|
bool | SetAddressBook (const CTxDestination &address, const std::string &strName, const std::string &purpose) |
|
bool | DelAddressBook (const CTxDestination &address) |
|
const std::string & | GetAccountName (const CScript &scriptPubKey) const |
|
bool | SetContractBook (const std::string &strAddress, const std::string &strName, const std::string &strAbi) |
|
bool | DelContractBook (const std::string &strAddress) |
|
void | Inventory (const uint256 &hash) override |
| Notifies listeners about an inventory item being seen on the network. More...
|
|
void | GetScriptForMining (std::shared_ptr< CReserveScript > &script) |
|
void | ResetRequestCount (const uint256 &hash) |
|
unsigned int | GetKeyPoolSize () |
|
bool | SetDefaultKey (const CPubKey &vchPubKey) |
|
bool | SetMinVersion (enum WalletFeature, CWalletDB *pwalletdbIn=nullptr, bool fExplicit=false) |
| signify that a particular wallet feature is now used. this may change nWalletVersion and nWalletMaxVersion if those are lower More...
|
|
bool | SetMaxVersion (int nVersion) |
| change which version we're allowed to upgrade to (note that this does not immediately imply upgrading to that format) More...
|
|
int | GetVersion () |
| get the current wallet format (the oldest client version guaranteed to understand this wallet) More...
|
|
std::set< uint256 > | GetConflicts (const uint256 &txid) const |
| Get wallet transactions that conflict with given transaction (spend same outputs) More...
|
|
bool | HasWalletSpend (const uint256 &txid) const |
| Check if a given transaction has any of its outputs spent by another transaction in the wallet. More...
|
|
void | Flush (bool shutdown=false) |
| Flush wallet (bitdb flush) More...
|
|
bool | GetBroadcastTransactions () const |
| Inquire whether this wallet broadcasts transactions. More...
|
|
void | SetBroadcastTransactions (bool broadcast) |
| Set whether this wallet broadcasts transactions. More...
|
|
bool | TransactionCanBeAbandoned (const uint256 &hashTx) const |
| Return whether transaction can be abandoned. More...
|
|
bool | AbandonTransaction (const uint256 &hashTx) |
|
bool | MarkReplaced (const uint256 &originalHash, const uint256 &newHash) |
| Mark a transaction as replaced by another transaction (e.g., BIP 125). More...
|
|
void | postInitProcess (CScheduler &scheduler) |
| Wallet post-init setup Gives the wallet a chance to register repetitive tasks and complete post-init tasks. More...
|
|
bool | BackupWallet (const std::string &strDest) |
|
bool | SetHDChain (const CHDChain &chain, bool memonly) |
|
const CHDChain & | GetHDChain () const |
|
bool | IsHDEnabled () const |
|
CPubKey | GenerateNewHDMasterKey () |
|
bool | SetHDMasterKey (const CPubKey &key) |
|
bool | AddTokenEntry (const CTokenInfo &token, bool fFlushOnClose=true) |
|
bool | AddTokenTxEntry (const CTokenTx &tokenTx, bool fFlushOnClose=true) |
|
bool | GetTokenTxDetails (const CTokenTx &wtx, uint256 &credit, uint256 &debit, std::string &tokenSymbol, uint8_t &decimals) const |
|
bool | IsTokenTxMine (const CTokenTx &wtx) const |
|
bool | RemoveTokenEntry (const uint256 &tokenHash, bool fFlushOnClose=true) |
|
| CCryptoKeyStore () |
|
bool | IsCrypted () const |
|
bool | IsLocked () const |
|
bool | Lock () |
|
bool | HaveKey (const CKeyID &address) const override |
| Check whether a key corresponding to a given address is present in the store. More...
|
|
bool | GetKey (const CKeyID &address, CKey &keyOut) const override |
|
bool | GetPubKey (const CKeyID &address, CPubKey &vchPubKeyOut) const override |
|
void | GetKeys (std::set< CKeyID > &setAddress) const override |
|
virtual bool | HaveCScript (const CScriptID &hash) const override |
|
virtual bool | GetCScript (const CScriptID &hash, CScript &redeemScriptOut) const override |
|
virtual bool | HaveWatchOnly (const CScript &dest) const override |
|
virtual bool | HaveWatchOnly () const override |
|
virtual | ~CKeyStore () |
|
virtual bool | AddKey (const CKey &key) |
|