mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-19 18:45:52 +00:00
Life gets easier if an account that exists in the ledger has a
defined sequence number of 1.
This commit is contained in:
@@ -154,6 +154,7 @@ Ledger::TransResult Ledger::applyTransaction(Transaction::pointer trans)
|
||||
if(!!fromAccount && !toAccount)
|
||||
{
|
||||
toAccount=AccountState::pointer(new AccountState(trans->getToAccount()));
|
||||
toAccount->incSeq(); // an account in a ledger has a sequence of 1
|
||||
updateAccountState(toAccount);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user