mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
Make doTransactionEntry work against an open ledger.
This commit is contained in:
@@ -2649,6 +2649,9 @@ Json::Value RPCHandler::doTransactionEntry (Json::Value params, LoadType* loadTy
|
||||
if (!lpLedger)
|
||||
return jvResult;
|
||||
|
||||
if (lpLedger->isImmutable())
|
||||
masterLockHolder.unlock();
|
||||
|
||||
if (!params.isMember ("tx_hash"))
|
||||
{
|
||||
jvResult["error"] = "fieldNotFoundTransaction";
|
||||
@@ -2681,7 +2684,8 @@ Json::Value RPCHandler::doTransactionEntry (Json::Value params, LoadType* loadTy
|
||||
else
|
||||
{
|
||||
jvResult["tx_json"] = tpTrans->getJson (0);
|
||||
jvResult["metadata"] = tmTrans->getJson (0);
|
||||
if (tmTrans)
|
||||
jvResult["metadata"] = tmTrans->getJson (0);
|
||||
// 'accounts'
|
||||
// 'engine_...'
|
||||
// 'ledger_...'
|
||||
|
||||
Reference in New Issue
Block a user