mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +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)
|
if(!!fromAccount && !toAccount)
|
||||||
{
|
{
|
||||||
toAccount=AccountState::pointer(new AccountState(trans->getToAccount()));
|
toAccount=AccountState::pointer(new AccountState(trans->getToAccount()));
|
||||||
|
toAccount->incSeq(); // an account in a ledger has a sequence of 1
|
||||||
updateAccountState(toAccount);
|
updateAccountState(toAccount);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user