File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -262,12 +262,12 @@ static bool rest_chaininfo(AcceptedConnection* conn,
262
262
{
263
263
vector<string> params;
264
264
const RetFormat rf = ParseDataFormat (params, strURIPart);
265
-
265
+
266
266
switch (rf) {
267
267
case RF_JSON: {
268
268
Array rpcParams;
269
269
Value chainInfoObject = getblockchaininfo (rpcParams, false );
270
-
270
+
271
271
string strJSON = write_string (chainInfoObject, false ) + " \n " ;
272
272
conn->stream () << HTTPReply (HTTP_OK, strJSON, fRun ) << std::flush;
273
273
return true ;
@@ -276,7 +276,7 @@ static bool rest_chaininfo(AcceptedConnection* conn,
276
276
throw RESTERR (HTTP_NOT_FOUND, " output format not found (available: json)" );
277
277
}
278
278
}
279
-
279
+
280
280
// not reached
281
281
return true ; // continue to process further HTTP reqs on this cxn
282
282
}
@@ -351,9 +351,9 @@ static bool rest_getutxos(AcceptedConnection* conn,
351
351
352
352
// parse/deserialize input
353
353
// input-format = output-format, rest/getutxos/bin requires binary input, gives binary output, ...
354
-
354
+
355
355
string strRequestMutable = strRequest; // convert const string to string for allowing hex to bin converting
356
-
356
+
357
357
switch (rf) {
358
358
case RF_HEX: {
359
359
// convert hex to bin, continue then with bin part
You can’t perform that action at this time.
0 commit comments