Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/protocol.cpp
Show First 20 Lines • Show All 126 Lines • ▼ Show 20 Lines | bool GetAuthCookie(std::string *cookie_out) { | ||||
return true; | return true; | ||||
} | } | ||||
void DeleteAuthCookie() { | void DeleteAuthCookie() { | ||||
try { | try { | ||||
fs::remove(GetAuthCookieFile()); | fs::remove(GetAuthCookieFile()); | ||||
} catch (const fs::filesystem_error &e) { | } catch (const fs::filesystem_error &e) { | ||||
LogPrintf("%s: Unable to remove random auth cookie file: %s\n", | LogPrintf("%s: Unable to remove random auth cookie file: %s\n", | ||||
__func__, e.what()); | __func__, fsbridge::get_filesystem_error_message(e)); | ||||
} | } | ||||
} | } | ||||
std::vector<UniValue> JSONRPCProcessBatchReply(const UniValue &in, size_t num) { | std::vector<UniValue> JSONRPCProcessBatchReply(const UniValue &in, size_t num) { | ||||
if (!in.isArray()) { | if (!in.isArray()) { | ||||
throw std::runtime_error("Batch must be an array"); | throw std::runtime_error("Batch must be an array"); | ||||
} | } | ||||
std::vector<UniValue> batch(num); | std::vector<UniValue> batch(num); | ||||
Show All 13 Lines |