MCPcopy Create free account
hub / github.com/LUX-Core/lux / ParseDataFormat

Function ParseDataFormat

src/rest.cpp:71–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71static enum RetFormat ParseDataFormat(vector<string>& params, const string strReq)
72{
73 boost::split(params, strReq, boost::is_any_of("."));
74 if (params.size() > 1) {
75 for (unsigned int i = 0; i < ARRAYLEN(rf_names); i++)
76 if (params[1] == rf_names[i].name)
77 return rf_names[i].rf;
78 }
79
80 return rf_names[0].rf;
81}
82
83static string AvailableDataFormatsString()
84{

Callers 7

rest_headersFunction · 0.85
rest_blockFunction · 0.85
rest_chaininfoFunction · 0.85
rest_mempool_infoFunction · 0.85
rest_mempool_contentsFunction · 0.85
rest_txFunction · 0.85
rest_getutxosFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected