mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-23 12:35:50 +00:00
Fix a bug that causes a crash on getCurrentSnapshot.
This commit is contained in:
@@ -64,8 +64,6 @@ RPCHandler::RPCHandler (NetworkOPs* netOps, InfoSub::pointer infoSub) : mNetOps
|
||||
|
||||
Json::Value RPCHandler::transactionSign (Json::Value jvRequest, bool bSubmit, bool bFailHard, ScopedLock& mlh)
|
||||
{
|
||||
mlh.unlock ();
|
||||
|
||||
Json::Value jvResult;
|
||||
RippleAddress naSeed;
|
||||
RippleAddress raSrcAddressID;
|
||||
@@ -108,6 +106,7 @@ Json::Value RPCHandler::transactionSign (Json::Value jvRequest, bool bSubmit, bo
|
||||
AccountState::pointer asSrc = bOffline
|
||||
? AccountState::pointer () // Don't look up address if offline.
|
||||
: mNetOps->getAccountState (mNetOps->getCurrentSnapshot (), raSrcAddressID);
|
||||
mlh.unlock();
|
||||
|
||||
if (!bOffline && !asSrc)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user