Code to boostrap the initial ledger.

This commit is contained in:
JoelKatz
2011-11-26 00:57:31 -08:00
parent 06a9bc5520
commit e87a027df2
3 changed files with 28 additions and 3 deletions

View File

@@ -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();
}