diff --git a/src/rpc.cpp b/src/rpc.cpp index 894faa9..0e1cc0e 100644 --- a/src/rpc.cpp +++ b/src/rpc.cpp @@ -453,7 +453,7 @@ void RPC::refreshTransactions() { getTransactions([=] (json reply) { for (auto& it : reply.get()) { double fee = 0; - if (std::find(it.begin(), it.end(), "fee") != it.end()) { + if (it.find("fee") != it.end()) { fee = it["fee"].get(); }