Add JsonOptions enum class to contain options passed to getJSON methods

This commit is contained in:
Mo Morsi
2019-06-08 01:10:33 -04:00
committed by Manoj doshi
parent c2138c4e88
commit f8365f5009
77 changed files with 382 additions and 270 deletions

View File

@@ -227,10 +227,10 @@ static Json::Value checkPayment(
auto j = app.journal ("RPCHandler");
JLOG (j.debug())
<< "transactionSign: build_path: "
<< result.getJson (0);
<< result.getJson (JsonOptions::none);
if (! result.empty ())
tx_json[jss::Paths] = result.getJson (0);
tx_json[jss::Paths] = result.getJson (JsonOptions::none);
}
}
return Json::Value();
@@ -629,7 +629,7 @@ static Json::Value transactionFormatResultImpl (Transaction::pointer tpTrans)
Json::Value jvResult;
try
{
jvResult[jss::tx_json] = tpTrans->getJson (0);
jvResult[jss::tx_json] = tpTrans->getJson (JsonOptions::none);
jvResult[jss::tx_blob] = strHex (
tpTrans->getSTransaction ()->getSerializer ().peekData ());