Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.cpp
Show First 20 Lines • Show All 4,812 Lines • ▼ Show 20 Lines | if (tip_height && *tip_height != rescan_height) { | ||||
} | } | ||||
} | } | ||||
} | } | ||||
chain.loadWallet(interfaces::MakeWallet(walletInstance)); | chain.loadWallet(interfaces::MakeWallet(walletInstance)); | ||||
// Register with the validation interface. It's ok to do this after rescan | // Register with the validation interface. It's ok to do this after rescan | ||||
// since we're still holding locked_chain. | // since we're still holding locked_chain. | ||||
walletInstance->m_chain_notifications_handler = | walletInstance->handleNotifications(); | ||||
chain.handleNotifications(*walletInstance); | |||||
walletInstance->SetBroadcastTransactions( | walletInstance->SetBroadcastTransactions( | ||||
gArgs.GetBoolArg("-walletbroadcast", DEFAULT_WALLETBROADCAST)); | gArgs.GetBoolArg("-walletbroadcast", DEFAULT_WALLETBROADCAST)); | ||||
walletInstance->WalletLogPrintf("setKeyPool.size() = %u\n", | walletInstance->WalletLogPrintf("setKeyPool.size() = %u\n", | ||||
walletInstance->GetKeyPoolSize()); | walletInstance->GetKeyPoolSize()); | ||||
walletInstance->WalletLogPrintf("mapWallet.size() = %u\n", | walletInstance->WalletLogPrintf("mapWallet.size() = %u\n", | ||||
walletInstance->mapWallet.size()); | walletInstance->mapWallet.size()); | ||||
walletInstance->WalletLogPrintf("mapAddressBook.size() = %u\n", | walletInstance->WalletLogPrintf("mapAddressBook.size() = %u\n", | ||||
walletInstance->mapAddressBook.size()); | walletInstance->mapAddressBook.size()); | ||||
return walletInstance; | return walletInstance; | ||||
} | } | ||||
void CWallet::handleNotifications() { | |||||
m_chain_notifications_handler = m_chain->handleNotifications(*this); | |||||
} | |||||
void CWallet::postInitProcess() { | void CWallet::postInitProcess() { | ||||
// 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(); | ReacceptWalletTransactions(); | ||||
} | } | ||||
bool CWallet::BackupWallet(const std::string &strDest) { | bool CWallet::BackupWallet(const std::string &strDest) { | ||||
return database->Backup(strDest); | return database->Backup(strDest); | ||||
▲ Show 20 Lines • Show All 144 Lines • Show Last 20 Lines |