Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.cpp
Show First 20 Lines • Show All 4,837 Lines • ▼ Show 20 Lines | |||||
void CWallet::postInitProcess() { | void CWallet::postInitProcess() { | ||||
auto locked_chain = chain().lock(); | auto locked_chain = chain().lock(); | ||||
LOCK(cs_wallet); | LOCK(cs_wallet); | ||||
// Add wallet transactions that aren't already in a block to mempool. | // Add wallet transactions that aren't already in a block to mempool. | ||||
// Do this here as mempool requires genesis block to be loaded. | // Do this here as mempool requires genesis block to be loaded. | ||||
ReacceptWalletTransactions(*locked_chain); | ReacceptWalletTransactions(*locked_chain); | ||||
// Update wallet transactions with current mempool transactions. | |||||
chain().requestMempoolTransactions(*this); | |||||
} | } | ||||
bool CWallet::BackupWallet(const std::string &strDest) { | bool CWallet::BackupWallet(const std::string &strDest) { | ||||
return database->Backup(strDest); | return database->Backup(strDest); | ||||
} | } | ||||
CKeyPool::CKeyPool() { | CKeyPool::CKeyPool() { | ||||
nTime = GetTime(); | nTime = GetTime(); | ||||
▲ Show 20 Lines • Show All 140 Lines • Show Last 20 Lines |