Account state conversion from ledger to structure forms.

This commit is contained in:
JoelKatz
2011-11-23 12:48:45 -08:00
parent 6c7fd5f195
commit 9462cd6718
2 changed files with 29 additions and 0 deletions

View File

@@ -2,6 +2,12 @@
#define __ACCOUNTSTATE__
// An account's state in one or more accepted ledgers
#include <vector>
#include "boost/shared_ptr.hpp"
#include "types.h"
#include "uint256.h"
class AccountState
@@ -26,6 +32,8 @@ public:
bool charge(uint64 a) { mBalance+=a; }
bool credit(uint64 a) { mBalance-=a; }
void incSeq(void) { mAccountSeq++; }
std::vector<unsigned char> getRaw() const;
};
#endif