Changeset View
Changeset View
Standalone View
Standalone View
src/rest.cpp
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | struct CCoin { | ||||
inline void SerializationOp(Stream &s, Operation ser_action) { | inline void SerializationOp(Stream &s, Operation ser_action) { | ||||
uint32_t nTxVerDummy = 0; | uint32_t nTxVerDummy = 0; | ||||
READWRITE(nTxVerDummy); | READWRITE(nTxVerDummy); | ||||
READWRITE(nHeight); | READWRITE(nHeight); | ||||
READWRITE(out); | READWRITE(out); | ||||
} | } | ||||
}; | }; | ||||
extern UniValue mempoolInfoToJSON(); | |||||
extern UniValue mempoolToJSON(bool fVerbose = false); | |||||
static bool RESTERR(HTTPRequest *req, enum HTTPStatusCode status, | static bool RESTERR(HTTPRequest *req, enum HTTPStatusCode status, | ||||
std::string message) { | std::string message) { | ||||
req->WriteHeader("Content-Type", "text/plain"); | req->WriteHeader("Content-Type", "text/plain"); | ||||
req->WriteReply(status, message + "\r\n"); | req->WriteReply(status, message + "\r\n"); | ||||
return false; | return false; | ||||
} | } | ||||
static enum RetFormat ParseDataFormat(std::string ¶m, | static enum RetFormat ParseDataFormat(std::string ¶m, | ||||
▲ Show 20 Lines • Show All 631 Lines • Show Last 20 Lines |