Merge pull request #6645

0a19785 rpc: fix loading rpc payment data from file (moneromooo-monero)
This commit is contained in:
luigi1111 2020-06-19 16:07:45 -05:00
commit 44e3875190
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

View File

@ -290,7 +290,7 @@ namespace cryptonote
TRY_ENTRY();
boost::lock_guard<boost::mutex> lock(mutex);
m_directory = std::move(directory);
std::string state_file_path = directory + "/" + RPC_PAYMENTS_DATA_FILENAME;
std::string state_file_path = m_directory + "/" + RPC_PAYMENTS_DATA_FILENAME;
MINFO("loading rpc payments data from " << state_file_path);
std::ifstream data;
data.open(state_file_path, std::ios_base::binary | std::ios_base::in);