mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
Code to boostrap the initial ledger.
This commit is contained in:
@@ -11,6 +11,9 @@ AccountState::AccountState(const std::vector<unsigned char>& v)
|
||||
mValid=true;
|
||||
}
|
||||
|
||||
AccountState::AccountState(const uint160& id) : mAccountID(id), mBalance(0), mAccountSeq(0), mValid(true)
|
||||
{ ; }
|
||||
|
||||
std::vector<unsigned char> AccountState::getRaw() const
|
||||
{ // 20-byte acct ID, 8-byte balance, 4-byte sequence
|
||||
Serializer s(32);
|
||||
@@ -19,3 +22,4 @@ std::vector<unsigned char> AccountState::getRaw() const
|
||||
s.add32(mAccountSeq);
|
||||
return s.getData();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user