mirror of
https://github.com/monero-project/monero.git
synced 2025-12-17 15:24:06 -05:00
libwallet_api: some renamings
This commit is contained in:
parent
db3282cdf0
commit
8b0cb8caa4
4 changed files with 11 additions and 9 deletions
|
|
@ -60,6 +60,7 @@ TransactionHistoryImpl::~TransactionHistoryImpl()
|
|||
|
||||
int TransactionHistoryImpl::count() const
|
||||
{
|
||||
boost::lock_guard<boost::mutex> guarg(m_historyMutex);
|
||||
return m_history.size();
|
||||
}
|
||||
|
||||
|
|
@ -80,7 +81,7 @@ std::vector<TransactionInfo *> TransactionHistoryImpl::getAll() const
|
|||
void TransactionHistoryImpl::refresh()
|
||||
{
|
||||
// multithreaded access:
|
||||
boost::lock_guard<boost::mutex> guarg(m_refreshMutex);
|
||||
boost::lock_guard<boost::mutex> guarg(m_historyMutex);
|
||||
|
||||
// TODO: configurable values;
|
||||
uint64_t min_height = 0;
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ private:
|
|||
// TransactionHistory is responsible of memory management
|
||||
std::vector<TransactionInfo*> m_history;
|
||||
WalletImpl *m_wallet;
|
||||
boost::mutex m_refreshMutex;
|
||||
mutable boost::mutex m_historyMutex;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -201,7 +201,6 @@ bool WalletImpl::create(const std::string &path, const std::string &password, co
|
|||
bool keys_file_exists;
|
||||
bool wallet_file_exists;
|
||||
tools::wallet2::wallet_exists(path, keys_file_exists, wallet_file_exists);
|
||||
// TODO: figure out how to setup logger;
|
||||
LOG_PRINT_L3("wallet_path: " << path << "");
|
||||
LOG_PRINT_L3("keys_file_exists: " << std::boolalpha << keys_file_exists << std::noboolalpha
|
||||
<< " wallet_file_exists: " << std::boolalpha << wallet_file_exists << std::noboolalpha);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue