mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Local accounts now have their balances and sequences managed from the active
ledger, not from the wallet.
This commit is contained in:
@@ -182,18 +182,6 @@ Ledger::pointer Ledger::closeLedger(uint64 timeStamp)
|
||||
return Ledger::pointer(new Ledger(*this, timeStamp)); // can't use make_shared, constructor is protected
|
||||
}
|
||||
|
||||
void LocalAccount::syncLedger()
|
||||
{
|
||||
AccountState::pointer as = theApp->getMasterLedger().getCurrentLedger()->getAccountState(getAddress());
|
||||
if(!as) mLgrBalance = 0;
|
||||
else
|
||||
{
|
||||
mLgrBalance = as->getBalance();
|
||||
if ( (mLgrBalance != 0) && (mTxnSeq == 0) ) mTxnSeq = 1;
|
||||
if (mTxnSeq < as->getSeq()) mTxnSeq = as->getSeq();
|
||||
}
|
||||
}
|
||||
|
||||
bool Ledger::unitTest()
|
||||
{
|
||||
#if 0
|
||||
|
||||
Reference in New Issue
Block a user