diff --git a/src/ripple_app/rpc/RPCHandler.cpp b/src/ripple_app/rpc/RPCHandler.cpp index 23da3fa7da..6b9f7daa13 100644 --- a/src/ripple_app/rpc/RPCHandler.cpp +++ b/src/ripple_app/rpc/RPCHandler.cpp @@ -1545,6 +1545,11 @@ Json::Value RPCHandler::doRipplePathFind (Json::Value params, Resource::Charge& } else { + loadType = Resource::feeHighBurdenRPC; + Ledger::pointer lSnapShot = boost::make_shared (boost::ref (*lpLedger), false); + + masterLockHolder.unlock (); // As long as we have a locked copy of the ledger, we can unlock. + Json::Value jvSrcCurrencies; if (params.isMember ("source_currencies")) @@ -1567,11 +1572,6 @@ Json::Value RPCHandler::doRipplePathFind (Json::Value params, Resource::Charge& } } - loadType = Resource::feeHighBurdenRPC; - Ledger::pointer lSnapShot = boost::make_shared (boost::ref (*lpLedger), false); - - masterLockHolder.unlock (); // As long as we have a locked copy of the ledger, we can unlock. - // Fill in currencies destination will accept Json::Value jvDestCur (Json::arrayValue);