From 0a19785e992bd31411e672ea30e036cc1223604b Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Fri, 5 Jun 2020 11:20:38 +0000 Subject: [PATCH] rpc: fix loading rpc payment data from file Got broken after making one of those micro optimizations requested on review.. --- src/rpc/rpc_payment.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpc/rpc_payment.cpp b/src/rpc/rpc_payment.cpp index 6cd52523f..1a8535114 100644 --- a/src/rpc/rpc_payment.cpp +++ b/src/rpc/rpc_payment.cpp @@ -290,7 +290,7 @@ namespace cryptonote TRY_ENTRY(); boost::lock_guard 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);