rpc: fix loading rpc payment data from file

Got broken after making one of those micro optimizations requested on review..
This commit is contained in:
moneromooo-monero 2020-06-05 11:20:38 +00:00
parent 25419b4bfb
commit 0a19785e99
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3

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);