mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix issues in applying local transactions.
This commit is contained in:
@@ -277,8 +277,8 @@ void LocalAccount::syncLedger()
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
mLgrBalance=as->getBalance();
|
mLgrBalance=as->getBalance();
|
||||||
if( (mLgrBalance!=0) && (mAccountSeq==0) ) mAccountSeq=1;
|
if( (mLgrBalance!=0) && (mTxnSeq==0) ) mTxnSeq=1;
|
||||||
if(mAccountSeq<as->getSeq()) mAccountSeq=as->getSeq();
|
if(mTxnSeq<as->getSeq()) mTxnSeq=as->getSeq();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ protected:
|
|||||||
|
|
||||||
// family information
|
// family information
|
||||||
boost::shared_ptr<LocalAccountFamily> mFamily;
|
boost::shared_ptr<LocalAccountFamily> mFamily;
|
||||||
int mAccountSeq;
|
int mAccountFSeq;
|
||||||
|
|
||||||
// local usage tracking
|
// local usage tracking
|
||||||
uint64 mLgrBalance; // The balance, from the last ledger
|
uint64 mLgrBalance; // The balance, from the last ledger
|
||||||
@@ -36,7 +36,7 @@ public:
|
|||||||
bool updateBalance(); // writes changed balance/seq
|
bool updateBalance(); // writes changed balance/seq
|
||||||
|
|
||||||
const uint160& getAddress() const { return mAcctID; }
|
const uint160& getAddress() const { return mAcctID; }
|
||||||
int getAcctSeq() const { return mAccountSeq; }
|
int getAcctFSeq() const { return mAccountFSeq; }
|
||||||
|
|
||||||
std::string getLocalAccountName() const; // The name used locally to identify this account
|
std::string getLocalAccountName() const; // The name used locally to identify this account
|
||||||
std::string getAccountName() const; // The normal account name used to send to this account
|
std::string getAccountName() const; // The normal account name used to send to this account
|
||||||
|
|||||||
@@ -31,3 +31,8 @@ bool LocalTransaction::makeTransaction()
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void LocalTransaction::applyTransaction()
|
||||||
|
{
|
||||||
|
mTransaction=theApp->getOPs().processTransaction(mTransaction);
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user