Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show First 20 Lines • Show All 741 Lines • ▼ Show 20 Lines | private: | ||||
* Mark a transaction (and its in-wallet descendants) as conflicting with a | * Mark a transaction (and its in-wallet descendants) as conflicting with a | ||||
* particular block. | * particular block. | ||||
*/ | */ | ||||
void MarkConflicted(const BlockHash &hashBlock, const TxId &txid); | void MarkConflicted(const BlockHash &hashBlock, const TxId &txid); | ||||
void SyncMetaData(std::pair<TxSpends::iterator, TxSpends::iterator>); | void SyncMetaData(std::pair<TxSpends::iterator, TxSpends::iterator>); | ||||
/** | /** | ||||
* Used by TransactionAddedToMemorypool/BlockConnected/Disconnected. | * Used by | ||||
* TransactionAddedToMemorypool/BlockConnected/Disconnected/ScanForWalletTransactions. | |||||
* Should be called with pindexBlock and posInBlock if this is for a | * Should be called with pindexBlock and posInBlock if this is for a | ||||
* transaction that is included in a block. | * transaction that is included in a block. | ||||
*/ | */ | ||||
void SyncTransaction(const CTransactionRef &tx, | void SyncTransaction(const CTransactionRef &tx, | ||||
const CBlockIndex *pindex = nullptr, | const CBlockIndex *pindex = nullptr, | ||||
int posInBlock = 0) | int posInBlock = 0, bool update_tx = true) | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); | EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); | ||||
/* the HD chain data model (external chain counters) */ | /* the HD chain data model (external chain counters) */ | ||||
CHDChain hdChain; | CHDChain hdChain; | ||||
/* HD derive new child key (on internal or external chain) */ | /* HD derive new child key (on internal or external chain) */ | ||||
void DeriveNewChildKey(WalletBatch &batch, CKeyMetadata &metadata, | void DeriveNewChildKey(WalletBatch &batch, CKeyMetadata &metadata, | ||||
CKey &secret, bool internal = false) | CKey &secret, bool internal = false) | ||||
▲ Show 20 Lines • Show All 719 Lines • Show Last 20 Lines |