![]() |
PIVX Core
5.6.99
P2P Digital Currency
|
Functions | |
| Balance | CWallet::GetBalance (int min_depth=0) const |
| CAmount | CWallet::loopTxsBalance (const std::function< void(const uint256 &, const CWalletTx &, CAmount &)> &method) const |
| CAmount | CWallet::GetAvailableBalance (bool fIncludeDelegated=true, bool fIncludeShielded=true) const |
| CAmount | CWallet::GetAvailableBalance (isminefilter &filter, bool useCache=false, int minDepth=1) const |
| CAmount | CWallet::GetColdStakingBalance () const |
| CAmount | CWallet::GetStakingBalance (const bool fIncludeColdStaking=true) const |
| CAmount | CWallet::GetDelegatedBalance () const |
| CAmount | CWallet::GetLockedCoins () const |
| CAmount | CWallet::GetLockedShieldCoins () const |
| CAmount | CWallet::GetUnconfirmedBalance (isminetype filter=ISMINE_SPENDABLE_ALL) const |
| CAmount | CWallet::GetImmatureBalance () const |
| CAmount | CWallet::GetImmatureColdStakingBalance () const |
| CAmount | CWallet::GetImmatureDelegatedBalance () const |
| CAmount | CWallet::GetWatchOnlyBalance () const |
| CAmount | CWallet::GetUnconfirmedWatchOnlyBalance () const |
| CAmount | CWallet::GetImmatureWatchOnlyBalance () const |
| CAmount | CWallet::GetLegacyBalance (const isminefilter &filter, int minDepth) const |
| CAmount | CWallet::GetAvailableShieldedBalance (bool fUseCache=true) const |
| CAmount | CWallet::GetUnconfirmedShieldedBalance () const |
| void | CWallet::GetAvailableP2CSCoins (std::vector< COutput > &vCoins) const |
More... | |
| bool | CWallet::GetMasternodeVinAndKeys (CPubKey &pubKeyRet, CKey &keyRet, const COutPoint &collateralOut, bool fValidateCollateral, std::string &strError) |
| Get 10000 PIV output and keys which can be used for the Masternode. More... | |
| OutputAvailabilityResult | CWallet::CheckOutputAvailability (const CTxOut &output, const unsigned int outIndex, const uint256 &wtxid, const CCoinControl *coinControl, const bool fCoinsSelected, const bool fIncludeColdStaking, const bool fIncludeDelegated, const bool fIncludeLocked) const |
| bool | CWallet::AvailableCoins (std::vector< COutput > *pCoins, const CCoinControl *coinControl=nullptr, AvailableCoinsFilter coinsFilter=AvailableCoinsFilter()) const |
| populate vCoins with vector of available COutputs. More... | |
| std::map< CTxDestination, std::vector< COutput > > | CWallet::AvailableCoinsByAddress (bool fConfirmed, CAmount maxCoinValue, bool fIncludeColdStaking) |
| bool | CWallet::StakeableCoins (std::vector< CStakeableOutput > *pCoins=nullptr) |
More... | |
| bool | CWallet::SelectCoinsMinConf (const CAmount &nTargetValue, int nConfMine, int nConfTheirs, uint64_t nMaxAncestors, std::vector< COutput > vCoins, std::set< std::pair< const CWalletTx *, unsigned int > > &setCoinsRet, CAmount &nValueRet) const |
| Select coins until nTargetValue is reached. More... | |
| bool | CWallet::SelectCoinsToSpend (const std::vector< COutput > &vAvailableCoins, const CAmount &nTargetValue, std::set< std::pair< const CWalletTx *, unsigned int > > &setCoinsRet, CAmount &nValueRet, const CCoinControl *coinControl=nullptr) const |
More... | |
| std::map< std::pair< CTxDestination, Optional< CTxDestination > >, std::vector< COutput > > | CWallet::ListCoins () const |
| Return list of available coins and locked coins grouped by non-change output address. More... | |
| std::map< libzcash::SaplingPaymentAddress, std::vector< SaplingNoteEntry > > | CWallet::ListNotes () const |
| Return list of available shield notes and locked shield notes grouped by sapling address. More... | |
| bool | CWallet::CreateBudgetFeeTX (CTransactionRef &tx, const uint256 &hash, CReserveKey &keyChange, CAmount fee) |
| bool | CWallet::FundTransaction (CMutableTransaction &tx, CAmount &nFeeRet, bool overrideEstimatedFeeRate, const CFeeRate &specificFeeRate, int &nChangePosInOut, std::string &strFailReason, bool includeWatching, bool lockUnspents, const std::set< int > &setSubtractFeeFromOutputs, const CTxDestination &destChange=CNoDestination()) |
| std::vector< COutput > | CWallet::GetOutputsFromCoinControl (const CCoinControl *coinControl) |
| Return the selected known outputs. More... | |
| bool | CWallet::CreateTransaction (const std::vector< CRecipient > &vecSend, CTransactionRef &txRet, CReserveKey &reservekey, CAmount &nFeeRet, int &nChangePosInOut, std::string &strFailReason, const CCoinControl *coinControl=nullptr, bool sign=true, CAmount nFeePay=0, bool fIncludeDelegated=false, bool *fStakeDelegationVoided=nullptr, int nExtraSize=0, int nMinDepth=0) |
| 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::CreateTransaction (CScript scriptPubKey, const CAmount &nValue, CTransactionRef &tx, CReserveKey &reservekey, CAmount &nFeeRet, std::string &strFailReason, const CCoinControl *coinControl=nullptr, CAmount nFeePay=0, bool fIncludeDelegated=false, bool *fStakeDelegationVoided=nullptr, int nExtraSize=0, int nMinDepth=0) |
| int | CWallet::GetLastBlockHeightLockWallet () const |
| Get last block processed height locking the wallet. More... | |
| bool | CWallet::CreateCoinstakeOuts (const CPivStake &stakeInput, std::vector< CTxOut > &vout, CAmount nTotal) const |
| bool | CWallet::CreateCoinStake (const CBlockIndex *pindexPrev, unsigned int nBits, CMutableTransaction &txNew, int64_t &nTxNewTime, std::vector< CStakeableOutput > *availableCoins, bool stopOnNewBlock=true) const |
| bool | CWallet::SignCoinStake (CMutableTransaction &txNew) const |
| std::string | CWallet::CommitResult::ToString () const |
| CWallet::CommitResult | CWallet::CommitTransaction (CTransactionRef tx, CReserveKey &opReservekey, CConnman *connman) |
| CWallet::CommitResult | CWallet::CommitTransaction (CTransactionRef tx, CReserveKey *reservekey, CConnman *connman, mapValue_t *extraValues=nullptr) |
| Call after CreateTransaction unless you want to abort. More... | |
| DBErrors | CWallet::LoadWallet (bool &fFirstRunRet) |
| DBErrors | CWallet::ZapWalletTx (std::vector< CWalletTx > &vWtx) |
| static std::string | CWallet::ParseIntoAddress (const CWDestination &dest, const std::string &purpose) |
| bool | CWallet::SetAddressBook (const CWDestination &address, const std::string &strName, const std::string &purpose) |
| bool | CWallet::DelAddressBook (const CWDestination &address, const CChainParams::Base58Type addrType=CChainParams::PUBKEY_ADDRESS) |
| std::string | CWallet::GetPurposeForAddressBookEntry (const CWDestination &address) const |
| std::string | CWallet::GetNameForAddressBookEntry (const CWDestination &address) const |
| Optional< AddressBook::CAddressBookData > | CWallet::GetAddressBookEntry (const CWDestination &address) const |
| void | CWallet::LoadAddressBookName (const CWDestination &dest, const std::string &strName) |
| void | CWallet::LoadAddressBookPurpose (const CWDestination &dest, const std::string &strPurpose) |
| bool | CWallet::HasAddressBook (const CWDestination &address) const |
| bool | CWallet::HasDelegator (const CTxOut &out) const |
| size_t | CWallet::KeypoolCountExternalKeys () |
| bool | CWallet::TopUpKeyPool (unsigned int kpSize=0) |
| void | CWallet::KeepKey (int64_t nIndex) |
| void | CWallet::ReturnKey (int64_t nIndex, const bool internal=false, const bool staking=false) |
| bool | CWallet::GetKeyFromPool (CPubKey &key, const uint8_t &type=HDChain::ChangeType::EXTERNAL) |
| int64_t | CWallet::GetOldestKeyPoolTime () |
| std::map< CTxDestination, CAmount > | CWallet::GetAddressBalances () |
| std::set< std::set< CTxDestination > > | CWallet::GetAddressGroupings () |
| 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::LockCoin (const COutPoint &output) |
| void | CWallet::LockNote (const SaplingOutPoint &op) |
| void | CWallet::UnlockCoin (const COutPoint &output) |
| void | CWallet::UnlockNote (const SaplingOutPoint &op) |
| void | CWallet::UnlockAllCoins () |
| void | CWallet::UnlockAllNotes () |
| bool | CWallet::IsLockedCoin (const uint256 &hash, unsigned int n) const |
| bool | CWallet::IsLockedNote (const SaplingOutPoint &op) const |
| std::set< COutPoint > | CWallet::ListLockedCoins () |
| std::set< SaplingOutPoint > | CWallet::ListLockedNotes () |
| bool | CWallet::SetStakeSplitThreshold (const CAmount sst) |
| bool CWallet::AvailableCoins | ( | std::vector< COutput > * | pCoins, |
| const CCoinControl * | coinControl = nullptr, |
||
| AvailableCoinsFilter | coinsFilter = AvailableCoinsFilter() |
||
| ) | const |
populate vCoins with vector of available COutputs.
Definition at line 2555 of file wallet.cpp.
| std::map< CTxDestination, std::vector< COutput > > CWallet::AvailableCoinsByAddress | ( | bool | fConfirmed, |
| CAmount | maxCoinValue, | ||
| bool | fIncludeColdStaking | ||
| ) |
|
private |
| CWallet::CommitResult CWallet::CommitTransaction | ( | CTransactionRef | tx, |
| CReserveKey & | opReservekey, | ||
| CConnman * | connman | ||
| ) |
| CWallet::CommitResult CWallet::CommitTransaction | ( | CTransactionRef | tx, |
| CReserveKey * | reservekey, | ||
| CConnman * | connman, | ||
| mapValue_t * | extraValues = nullptr |
||
| ) |
Call after CreateTransaction unless you want to abort.
Definition at line 3518 of file wallet.cpp.
| bool CWallet::CreateBudgetFeeTX | ( | CTransactionRef & | tx, |
| const uint256 & | hash, | ||
| CReserveKey & | keyChange, | ||
| CAmount | fee | ||
| ) |
Definition at line 2944 of file wallet.cpp.
| bool CWallet::CreateCoinStake | ( | const CBlockIndex * | pindexPrev, |
| unsigned int | nBits, | ||
| CMutableTransaction & | txNew, | ||
| int64_t & | nTxNewTime, | ||
| std::vector< CStakeableOutput > * | availableCoins, | ||
| bool | stopOnNewBlock = true |
||
| ) | const |
Definition at line 3367 of file wallet.cpp.
| bool CWallet::CreateTransaction | ( | const std::vector< CRecipient > & | vecSend, |
| CTransactionRef & | txRet, | ||
| CReserveKey & | reservekey, | ||
| CAmount & | nFeeRet, | ||
| int & | nChangePosInOut, | ||
| std::string & | strFailReason, | ||
| const CCoinControl * | coinControl = nullptr, |
||
| bool | sign = true, |
||
| CAmount | nFeePay = 0, |
||
| bool | fIncludeDelegated = false, |
||
| bool * | fStakeDelegationVoided = nullptr, |
||
| int | nExtraSize = 0, |
||
| int | nMinDepth = 0 |
||
| ) |
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 3040 of file wallet.cpp.
| bool CWallet::CreateTransaction | ( | CScript | scriptPubKey, |
| const CAmount & | nValue, | ||
| CTransactionRef & | tx, | ||
| CReserveKey & | reservekey, | ||
| CAmount & | nFeeRet, | ||
| std::string & | strFailReason, | ||
| const CCoinControl * | coinControl = nullptr, |
||
| CAmount | nFeePay = 0, |
||
| bool | fIncludeDelegated = false, |
||
| bool * | fStakeDelegationVoided = nullptr, |
||
| int | nExtraSize = 0, |
||
| int | nMinDepth = 0 |
||
| ) |
| bool CWallet::DelAddressBook | ( | const CWDestination & | address, |
| const CChainParams::Base58Type | addrType = CChainParams::PUBKEY_ADDRESS |
||
| ) |
Definition at line 3659 of file wallet.cpp.
| bool CWallet::FundTransaction | ( | CMutableTransaction & | tx, |
| CAmount & | nFeeRet, | ||
| bool | overrideEstimatedFeeRate, | ||
| const CFeeRate & | specificFeeRate, | ||
| int & | nChangePosInOut, | ||
| std::string & | strFailReason, | ||
| bool | includeWatching, | ||
| bool | lockUnspents, | ||
| const std::set< int > & | setSubtractFeeFromOutputs, | ||
| const CTxDestination & | destChange = CNoDestination() |
||
| ) |
| std::map< CTxDestination, CAmount > CWallet::GetAddressBalances | ( | ) |
Definition at line 3762 of file wallet.cpp.
| Optional< AddressBook::CAddressBookData > CWallet::GetAddressBookEntry | ( | const CWDestination & | address | ) | const |
| std::set< std::set< CTxDestination > > CWallet::GetAddressGroupings | ( | ) |
Definition at line 3804 of file wallet.cpp.
| CAmount CWallet::GetAvailableBalance | ( | isminefilter & | filter, |
| bool | useCache = false, |
||
| int | minDepth = 1 |
||
| ) | const |
Definition at line 2177 of file wallet.cpp.
| void CWallet::GetAvailableP2CSCoins | ( | std::vector< COutput > & | vCoins | ) | const |
Available coins (P2CS)
Definition at line 2362 of file wallet.cpp.
Definition at line 2351 of file wallet.cpp.
| CWallet::Balance CWallet::GetBalance | ( | int | min_depth = 0 | ) | const |
Definition at line 2121 of file wallet.cpp.
| CAmount CWallet::GetColdStakingBalance | ( | ) | const |
Definition at line 2188 of file wallet.cpp.
| CAmount CWallet::GetDelegatedBalance | ( | ) | const |
Definition at line 2210 of file wallet.cpp.
| CAmount CWallet::GetImmatureBalance | ( | ) | const |
Definition at line 2266 of file wallet.cpp.
| CAmount CWallet::GetImmatureColdStakingBalance | ( | ) | const |
Definition at line 2273 of file wallet.cpp.
| CAmount CWallet::GetImmatureDelegatedBalance | ( | ) | const |
Definition at line 2280 of file wallet.cpp.
| CAmount CWallet::GetImmatureWatchOnlyBalance | ( | ) | const |
Definition at line 2303 of file wallet.cpp.
| bool CWallet::GetKeyFromPool | ( | CPubKey & | key, |
| const uint8_t & | type = HDChain::ChangeType::EXTERNAL |
||
| ) |
| std::set< CTxDestination > CWallet::GetLabelAddresses | ( | const std::string & | label | ) | const |
| int CWallet::GetLastBlockHeightLockWallet | ( | ) | const |
Get last block processed height locking the wallet.
Definition at line 3320 of file wallet.cpp.
| CAmount CWallet::GetLegacyBalance | ( | const isminefilter & | filter, |
| int | minDepth | ||
| ) | const |
Definition at line 2316 of file wallet.cpp.
| CAmount CWallet::GetLockedCoins | ( | ) | const |
Definition at line 2218 of file wallet.cpp.
| CAmount CWallet::GetLockedShieldCoins | ( | ) | const |
Definition at line 2236 of file wallet.cpp.
| bool CWallet::GetMasternodeVinAndKeys | ( | CPubKey & | pubKeyRet, |
| CKey & | keyRet, | ||
| const COutPoint & | collateralOut, | ||
| bool | fValidateCollateral, | ||
| std::string & | strError | ||
| ) |
Get 10000 PIV output and keys which can be used for the Masternode.
Definition at line 2437 of file wallet.cpp.
| std::string CWallet::GetNameForAddressBookEntry | ( | const CWDestination & | address | ) | const |
| int64_t CWallet::GetOldestKeyPoolTime | ( | ) |
|
private |
Return the selected known outputs.
Definition at line 3023 of file wallet.cpp.
| std::string CWallet::GetPurposeForAddressBookEntry | ( | const CWDestination & | address | ) | const |
| CAmount CWallet::GetUnconfirmedBalance | ( | isminetype | filter = ISMINE_SPENDABLE_ALL | ) | const |
| CAmount CWallet::GetUnconfirmedShieldedBalance | ( | ) | const |
| CAmount CWallet::GetUnconfirmedWatchOnlyBalance | ( | ) | const |
Definition at line 2295 of file wallet.cpp.
| CAmount CWallet::GetWatchOnlyBalance | ( | ) | const |
Definition at line 2287 of file wallet.cpp.
| bool CWallet::HasAddressBook | ( | const CWDestination & | address | ) | const |
| bool CWallet::HasDelegator | ( | const CTxOut & | out | ) | const |
Definition at line 3715 of file wallet.cpp.
| bool CWallet::IsLockedCoin | ( | const uint256 & | hash, |
| unsigned int | n | ||
| ) | const |
| bool CWallet::IsLockedNote | ( | const SaplingOutPoint & | op | ) | const |
| void CReserveKey::KeepKey | ( | ) |
| void CWallet::KeepKey | ( | int64_t | nIndex | ) |
Definition at line 3739 of file wallet.cpp.
| size_t CWallet::KeypoolCountExternalKeys | ( | ) |
| std::map< std::pair< CTxDestination, Optional< CTxDestination > >, std::vector< COutput > > CWallet::ListCoins | ( | ) | const |
Return list of available coins and locked coins grouped by non-change output address.
PIVX: group coins by pair <CTxDestination, Optional<CTxDestination>>. The optional destination is reserved for the staker address in case of P2CS.
Definition at line 2909 of file wallet.cpp.
| std::set< COutPoint > CWallet::ListLockedCoins | ( | ) |
| std::set< SaplingOutPoint > CWallet::ListLockedNotes | ( | ) |
| std::map< libzcash::SaplingPaymentAddress, std::vector< SaplingNoteEntry > > CWallet::ListNotes | ( | ) | const |
Return list of available shield notes and locked shield notes grouped by sapling address.
Definition at line 2939 of file wallet.cpp.
| void CWallet::LoadAddressBookName | ( | const CWDestination & | dest, |
| const std::string & | strName | ||
| ) |
| void CWallet::LoadAddressBookPurpose | ( | const CWDestination & | dest, |
| const std::string & | strPurpose | ||
| ) |
| DBErrors CWallet::LoadWallet | ( | bool & | fFirstRunRet | ) |
Definition at line 3584 of file wallet.cpp.
| void CWallet::LockCoin | ( | const COutPoint & | output | ) |
| void CWallet::LockNote | ( | const SaplingOutPoint & | op | ) |
|
static |
Definition at line 3630 of file wallet.cpp.
| void CReserveKey::ReturnKey | ( | ) |
Definition at line 3744 of file wallet.cpp.
| bool CWallet::SelectCoinsMinConf | ( | const CAmount & | nTargetValue, |
| int | nConfMine, | ||
| int | nConfTheirs, | ||
| uint64_t | nMaxAncestors, | ||
| std::vector< COutput > | vCoins, | ||
| std::set< std::pair< const CWalletTx *, unsigned int > > & | setCoinsRet, | ||
| CAmount & | nValueRet | ||
| ) | const |
Select coins until nTargetValue is reached.
Return the actual value and the corresponding coin set.
Definition at line 2754 of file wallet.cpp.
| bool CWallet::SelectCoinsToSpend | ( | const std::vector< COutput > & | vAvailableCoins, |
| const CAmount & | nTargetValue, | ||
| std::set< std::pair< const CWalletTx *, unsigned int > > & | setCoinsRet, | ||
| CAmount & | nValueRet, | ||
| const CCoinControl * | coinControl = nullptr |
||
| ) | const |
Available coins (spending)
Definition at line 2845 of file wallet.cpp.
| bool CWallet::SetAddressBook | ( | const CWDestination & | address, |
| const std::string & | strName, | ||
| const std::string & | purpose | ||
| ) |
Definition at line 3642 of file wallet.cpp.
| bool CWallet::SetStakeSplitThreshold | ( | const CAmount | sst | ) |
Definition at line 4010 of file wallet.cpp.
| bool CWallet::SignCoinStake | ( | CMutableTransaction & | txNew | ) | const |
| bool CWallet::StakeableCoins | ( | std::vector< CStakeableOutput > * | pCoins = nullptr | ) |
Available coins (staking)
Definition at line 2709 of file wallet.cpp.
| bool CWallet::TopUpKeyPool | ( | unsigned int | kpSize = 0 | ) |
| std::string CWallet::CommitResult::ToString | ( | ) | const |
Definition at line 3489 of file wallet.cpp.
| void CWallet::UnlockAllCoins | ( | ) |
| void CWallet::UnlockAllNotes | ( | ) |
| void CWallet::UnlockCoin | ( | const COutPoint & | output | ) |
| void CWallet::UnlockNote | ( | const SaplingOutPoint & | op | ) |