Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show First 20 Lines • Show All 1,053 Lines • ▼ Show 20 Lines | public: | ||||
//! @return true if wtx is changed and needs to be saved to disk, otherwise | //! @return true if wtx is changed and needs to be saved to disk, otherwise | ||||
//! false | //! false | ||||
using UpdateWalletTxFn = std::function<bool(CWalletTx &wtx, bool new_tx)>; | using UpdateWalletTxFn = std::function<bool(CWalletTx &wtx, bool new_tx)>; | ||||
CWalletTx *AddToWallet(CTransactionRef tx, | CWalletTx *AddToWallet(CTransactionRef tx, | ||||
const CWalletTx::Confirmation &confirm, | const CWalletTx::Confirmation &confirm, | ||||
const UpdateWalletTxFn &update_wtx = nullptr, | const UpdateWalletTxFn &update_wtx = nullptr, | ||||
bool fFlushOnClose = true); | bool fFlushOnClose = true); | ||||
void LoadToWallet(CWalletTx &wtxIn) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); | bool LoadToWallet(const TxId &txid, const UpdateWalletTxFn &fill_wtx) | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); | |||||
void transactionAddedToMempool(const CTransactionRef &tx) override; | void transactionAddedToMempool(const CTransactionRef &tx) override; | ||||
void blockConnected(const CBlock &block, int height) override; | void blockConnected(const CBlock &block, int height) override; | ||||
void blockDisconnected(const CBlock &block, int height) override; | void blockDisconnected(const CBlock &block, int height) override; | ||||
void updatedBlockTip() override; | void updatedBlockTip() override; | ||||
int64_t RescanFromTime(int64_t startTime, | int64_t RescanFromTime(int64_t startTime, | ||||
const WalletRescanReserver &reserver, bool update); | const WalletRescanReserver &reserver, bool update); | ||||
struct ScanResult { | struct ScanResult { | ||||
▲ Show 20 Lines • Show All 540 Lines • Show Last 20 Lines |