![]() |
BSHA3
0.17.99
P2P Blockchain, based on Bitcoin
|
Functions | |
| CAmount | CWallet::GetBalance (const isminefilter &filter=ISMINE_SPENDABLE, const int min_depth=0) const |
| CAmount | CWallet::GetUnconfirmedBalance () const |
| CAmount | CWallet::GetImmatureBalance () const |
| CAmount | CWallet::GetUnconfirmedWatchOnlyBalance () const |
| CAmount | CWallet::GetImmatureWatchOnlyBalance () const |
| CAmount | CWallet::GetLegacyBalance (const isminefilter &filter, int minDepth) const |
| CAmount | CWallet::GetAvailableBalance (const CCoinControl *coinControl=nullptr) const |
| void | CWallet::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 EXCLUSIVE_LOCKS_REQUIRED(cs_main |
| populate vCoins with vector of available COutputs. More... | |
| std::map< CTxDestination, std::vector< COutput > > | CWallet::ListCoins () const EXCLUSIVE_LOCKS_REQUIRED(cs_main |
| Return list of available coins and locked coins grouped by non-change output address. More... | |
| const CTxOut & | CWallet::FindNonChangeParentOutput (const CTransaction &tx, int output) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
| Find non-change parent output. More... | |
| bool | CWallet::SelectCoinsMinConf (const CAmount &nTargetValue, const CoinEligibilityFilter &eligibility_filter, std::vector< OutputGroup > groups, std::set< CInputCoin > &setCoinsRet, CAmount &nValueRet, const CoinSelectionParams &coin_selection_params, bool &bnb_used) 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 | CWallet::SelectCoins (const std::vector< COutput > &vAvailableCoins, const CAmount &nTargetValue, std::set< CInputCoin > &setCoinsRet, CAmount &nValueRet, const CCoinControl &coin_control, CoinSelectionParams &coin_selection_params, bool &bnb_used) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
| Select a set of coins such that nValueRet >= nTargetValue and at least all coins from coinControl are selected; Never select unconfirmed coins if they are not ours. More... | |
| bool | CWallet::SignTransaction (CMutableTransaction &tx) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
| bool | CWallet::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... | |
| OutputType | CWallet::TransactionChangeType (OutputType change_type, const std::vector< CRecipient > &vecSend) |
| bool | CWallet::CreateTransaction (const std::vector< CRecipient > &vecSend, CTransactionRef &tx, CReserveKey &reservekey, CAmount &nFeeRet, int &nChangePosInOut, std::string &strFailReason, const CCoinControl &coin_control, bool sign=true) |
| Create a new transaction paying the recipients with a set of coins selected by SelectCoins(); Also create the change output, when needed. More... | |
| bool | CWallet::CommitTransaction (CTransactionRef tx, mapValue_t mapValue, std::vector< std::pair< std::string, std::string >> orderForm, CReserveKey &reservekey, CConnman *connman, CValidationState &state) |
| Call after CreateTransaction unless you want to abort. More... | |
| DBErrors | CWallet::LoadWallet (bool &fFirstRunRet) |
| DBErrors | CWallet::ZapSelectTx (std::vector< uint256 > &vHashIn, std::vector< uint256 > &vHashOut) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
| DBErrors | CWallet::ZapWalletTx (std::vector< CWalletTx > &vWtx) |
| bool | CWallet::SetAddressBook (const CTxDestination &address, const std::string &strName, const std::string &purpose) |
| bool | CWallet::DelAddressBook (const CTxDestination &address) |
| const std::string & | CWallet::GetLabelName (const CScript &scriptPubKey) const |
| bool | CWallet::NewKeyPool () |
| Mark old keypool keys as used, and generate all new keys. More... | |
| size_t | CWallet::KeypoolCountExternalKeys () EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
| void | CWallet::LoadKeyPool (int64_t nIndex, const CKeyPool &keypool) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
| bool | CWallet::TopUpKeyPool (unsigned int kpSize=0) |
| bool | CWallet::ReserveKeyFromKeyPool (int64_t &nIndex, CKeyPool &keypool, bool fRequestedInternal) |
| Reserves a key from the keypool and sets nIndex to its index. More... | |
| void | CWallet::KeepKey (int64_t nIndex) |
| void | CWallet::ReturnKey (int64_t nIndex, bool fInternal, const CPubKey &pubkey) |
| bool | CWallet::GetKeyFromPool (CPubKey &key, bool internal=false) |
| int64_t | CWallet::GetOldestKeyPoolTime () |
| std::map< CTxDestination, CAmount > | CWallet::GetAddressBalances () EXCLUSIVE_LOCKS_REQUIRED(cs_main) |
| std::set< std::set< CTxDestination > > | CWallet::GetAddressGroupings () EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
| std::set< CTxDestination > | CWallet::GetLabelAddresses (const std::string &label) const |
| bool | CReserveKey::GetReservedKey (CPubKey &pubkey, bool internal=false) |
| void | CReserveKey::KeepKey () |
| void | CReserveKey::ReturnKey () |
| void | CWallet::MarkReserveKeysAsUsed (int64_t keypool_id) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
| Marks all keys in the keypool up to and including reserve_key as used. More... | |
| void | CWallet::GetScriptForMining (std::shared_ptr< CReserveScript > &script) |
| void | CWallet::LockCoin (const COutPoint &output) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
| void | CWallet::UnlockCoin (const COutPoint &output) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
| void | CWallet::UnlockAllCoins () EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
| bool | CWallet::IsLockedCoin (uint256 hash, unsigned int n) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
| void | CWallet::ListLockedCoins (std::vector< COutPoint > &vOutpts) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
| void CWallet::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.
Definition at line 2151 of file wallet.cpp.
| bool CWallet::CommitTransaction | ( | CTransactionRef | tx, |
| mapValue_t | mapValue, | ||
| std::vector< std::pair< std::string, std::string >> | orderForm, | ||
| CReserveKey & | reservekey, | ||
| CConnman * | connman, | ||
| CValidationState & | state | ||
| ) |
Call after CreateTransaction unless you want to abort.
Definition at line 2958 of file wallet.cpp.
| bool CWallet::CreateTransaction | ( | const std::vector< CRecipient > & | vecSend, |
| CTransactionRef & | tx, | ||
| CReserveKey & | reservekey, | ||
| CAmount & | nFeeRet, | ||
| int & | nChangePosInOut, | ||
| std::string & | strFailReason, | ||
| const CCoinControl & | coin_control, | ||
| bool | sign = true |
||
| ) |
Create a new transaction paying the recipients with a set of coins selected by SelectCoins(); Also create the change output, when needed.
Definition at line 2561 of file wallet.cpp.
| bool CWallet::DelAddressBook | ( | const CTxDestination & | address | ) |
| const CTxOut & CWallet::FindNonChangeParentOutput | ( | const CTransaction & | tx, |
| int | output | ||
| ) | const |
Find non-change parent output.
Definition at line 2298 of file wallet.cpp.
| bool CWallet::FundTransaction | ( | CMutableTransaction & | tx, |
| CAmount & | nFeeRet, | ||
| int & | nChangePosInOut, | ||
| std::string & | strFailReason, | ||
| bool | lockUnspents, | ||
| const std::set< int > & | setSubtractFeeFromOutputs, | ||
| CCoinControl | coinControl | ||
| ) |
Insert additional inputs into the transaction by calling CreateTransaction();.
Definition at line 2479 of file wallet.cpp.
| std::map< CTxDestination, CAmount > CWallet::GetAddressBalances | ( | ) |
| std::set< std::set< CTxDestination > > CWallet::GetAddressGroupings | ( | ) |
| CAmount CWallet::GetAvailableBalance | ( | const CCoinControl * | coinControl = nullptr | ) | const |
Definition at line 2136 of file wallet.cpp.
| CAmount CWallet::GetBalance | ( | const isminefilter & | filter = ISMINE_SPENDABLE, |
| const int | min_depth = 0 |
||
| ) | const |
| CAmount CWallet::GetImmatureBalance | ( | ) | const |
| CAmount CWallet::GetImmatureWatchOnlyBalance | ( | ) | const |
| bool CWallet::GetKeyFromPool | ( | CPubKey & | key, |
| bool | internal = false |
||
| ) |
| std::set< CTxDestination > CWallet::GetLabelAddresses | ( | const std::string & | label | ) | const |
Definition at line 3524 of file wallet.cpp.
| const std::string & CWallet::GetLabelName | ( | const CScript & | scriptPubKey | ) | const |
| CAmount CWallet::GetLegacyBalance | ( | const isminefilter & | filter, |
| int | minDepth | ||
| ) | const |
Definition at line 2103 of file wallet.cpp.
| int64_t CWallet::GetOldestKeyPoolTime | ( | ) |
Definition at line 3373 of file wallet.cpp.
| bool CReserveKey::GetReservedKey | ( | CPubKey & | pubkey, |
| bool | internal = false |
||
| ) |
| void CWallet::GetScriptForMining | ( | std::shared_ptr< CReserveScript > & | script | ) |
Definition at line 3595 of file wallet.cpp.
| CAmount CWallet::GetUnconfirmedBalance | ( | ) | const |
| CAmount CWallet::GetUnconfirmedWatchOnlyBalance | ( | ) | const |
| bool CWallet::IsLockedCoin | ( | uint256 | hash, |
| unsigned int | n | ||
| ) | const |
Definition at line 3624 of file wallet.cpp.
| void CWallet::KeepKey | ( | int64_t | nIndex | ) |
Definition at line 3312 of file wallet.cpp.
| void CReserveKey::KeepKey | ( | ) |
Definition at line 3554 of file wallet.cpp.
| size_t CWallet::KeypoolCountExternalKeys | ( | ) |
Definition at line 3183 of file wallet.cpp.
| std::map< CTxDestination, std::vector< COutput > > CWallet::ListCoins | ( | ) | const |
Return list of available coins and locked coins grouped by non-change output address.
Definition at line 2260 of file wallet.cpp.
| void CWallet::ListLockedCoins | ( | std::vector< COutPoint > & | vOutpts | ) | const |
| void CWallet::LoadKeyPool | ( | int64_t | nIndex, |
| const CKeyPool & | keypool | ||
| ) |
| DBErrors CWallet::LoadWallet | ( | bool & | fFirstRunRet | ) |
Definition at line 3005 of file wallet.cpp.
| void CWallet::LockCoin | ( | const COutPoint & | output | ) |
| void CWallet::MarkReserveKeysAsUsed | ( | int64_t | keypool_id | ) |
Marks all keys in the keypool up to and including reserve_key as used.
Definition at line 3571 of file wallet.cpp.
| bool CWallet::NewKeyPool | ( | ) |
Mark old keypool keys as used, and generate all new keys.
Definition at line 3149 of file wallet.cpp.
| bool CWallet::ReserveKeyFromKeyPool | ( | int64_t & | nIndex, |
| CKeyPool & | keypool, | ||
| bool | fRequestedInternal | ||
| ) |
Reserves a key from the keypool and sets nIndex to its index.
| [out] | nIndex | the index of the key in keypool |
| [out] | keypool | the keypool the key was drawn from, which could be the the pre-split pool if present, or the internal or external pool |
| fRequestedInternal | true if the caller would like the key drawn from the internal keypool, false if external is preferred |
| std::runtime_error | if keypool read failed, key was invalid, was not found in the wallet, or was misclassified in the internal or external keypool |
Definition at line 3268 of file wallet.cpp.
| void CWallet::ReturnKey | ( | int64_t | nIndex, |
| bool | fInternal, | ||
| const CPubKey & | pubkey | ||
| ) |
Definition at line 3320 of file wallet.cpp.
| void CReserveKey::ReturnKey | ( | ) |
| bool CWallet::SelectCoins | ( | const std::vector< COutput > & | vAvailableCoins, |
| const CAmount & | nTargetValue, | ||
| std::set< CInputCoin > & | setCoinsRet, | ||
| CAmount & | nValueRet, | ||
| const CCoinControl & | coin_control, | ||
| CoinSelectionParams & | coin_selection_params, | ||
| bool & | bnb_used | ||
| ) | const |
Select a set of coins such that nValueRet >= nTargetValue and at least all coins from coinControl are selected; Never select unconfirmed coins if they are not ours.
Definition at line 2369 of file wallet.cpp.
| bool CWallet::SelectCoinsMinConf | ( | const CAmount & | nTargetValue, |
| const CoinEligibilityFilter & | eligibility_filter, | ||
| std::vector< OutputGroup > | groups, | ||
| std::set< CInputCoin > & | setCoinsRet, | ||
| CAmount & | nValueRet, | ||
| const CoinSelectionParams & | coin_selection_params, | ||
| bool & | bnb_used | ||
| ) | 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.
Definition at line 2315 of file wallet.cpp.
| bool CWallet::SetAddressBook | ( | const CTxDestination & | address, |
| const std::string & | strName, | ||
| const std::string & | purpose | ||
| ) |
Definition at line 3092 of file wallet.cpp.
| bool CWallet::SignTransaction | ( | CMutableTransaction & | tx | ) |
Definition at line 2456 of file wallet.cpp.
| bool CWallet::TopUpKeyPool | ( | unsigned int | kpSize = 0 | ) |
Definition at line 3210 of file wallet.cpp.
| OutputType CWallet::TransactionChangeType | ( | OutputType | change_type, |
| const std::vector< CRecipient > & | vecSend | ||
| ) |
Definition at line 2533 of file wallet.cpp.
| void CWallet::UnlockAllCoins | ( | ) |
Definition at line 3618 of file wallet.cpp.
| void CWallet::UnlockCoin | ( | const COutPoint & | output | ) |
Definition at line 3612 of file wallet.cpp.
| DBErrors CWallet::ZapSelectTx | ( | std::vector< uint256 > & | vHashIn, |
| std::vector< uint256 > & | vHashOut | ||
| ) |
Definition at line 3036 of file wallet.cpp.
1.8.14