Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.cpp
Show First 20 Lines • Show All 1,207 Lines • ▼ Show 20 Lines | |||||
void CWallet::transactionRemovedFromMempool(const CTransactionRef &ptx) { | void CWallet::transactionRemovedFromMempool(const CTransactionRef &ptx) { | ||||
LOCK(cs_wallet); | LOCK(cs_wallet); | ||||
auto it = mapWallet.find(ptx->GetId()); | auto it = mapWallet.find(ptx->GetId()); | ||||
if (it != mapWallet.end()) { | if (it != mapWallet.end()) { | ||||
it->second.fInMempool = false; | it->second.fInMempool = false; | ||||
} | } | ||||
} | } | ||||
void CWallet::blockConnected(const CBlock &block, | void CWallet::blockConnected(const CBlock &block, int height) { | ||||
const std::vector<CTransactionRef> &vtxConflicted, | |||||
int height) { | |||||
const BlockHash &block_hash = block.GetHash(); | const BlockHash &block_hash = block.GetHash(); | ||||
LOCK(cs_wallet); | LOCK(cs_wallet); | ||||
m_last_block_processed_height = height; | m_last_block_processed_height = height; | ||||
m_last_block_processed = block_hash; | m_last_block_processed = block_hash; | ||||
for (size_t index = 0; index < block.vtx.size(); index++) { | for (size_t index = 0; index < block.vtx.size(); index++) { | ||||
CWalletTx::Confirmation confirm(CWalletTx::Status::CONFIRMED, height, | CWalletTx::Confirmation confirm(CWalletTx::Status::CONFIRMED, height, | ||||
block_hash, index); | block_hash, index); | ||||
▲ Show 20 Lines • Show All 3,825 Lines • Show Last 20 Lines |