mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +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)
|
Json::Value RPCHandler::transactionSign (Json::Value jvRequest, bool bSubmit, bool bFailHard, ScopedLock& mlh)
|
||||||
{
|
{
|
||||||
mlh.unlock ();
|
|
||||||
|
|
||||||
Json::Value jvResult;
|
Json::Value jvResult;
|
||||||
RippleAddress naSeed;
|
RippleAddress naSeed;
|
||||||
RippleAddress raSrcAddressID;
|
RippleAddress raSrcAddressID;
|
||||||
@@ -108,6 +106,7 @@ Json::Value RPCHandler::transactionSign (Json::Value jvRequest, bool bSubmit, bo
|
|||||||
AccountState::pointer asSrc = bOffline
|
AccountState::pointer asSrc = bOffline
|
||||||
? AccountState::pointer () // Don't look up address if offline.
|
? AccountState::pointer () // Don't look up address if offline.
|
||||||
: mNetOps->getAccountState (mNetOps->getCurrentSnapshot (), raSrcAddressID);
|
: mNetOps->getAccountState (mNetOps->getCurrentSnapshot (), raSrcAddressID);
|
||||||
|
mlh.unlock();
|
||||||
|
|
||||||
if (!bOffline && !asSrc)
|
if (!bOffline && !asSrc)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user