Bugfixes and new code. Ledger unit test now successfully creates a local

account, creates an initial ledger, closes the initial ledger and opens a
new ledger, creates a second account, and adds a transaction to transfer
funds to the open ledger.
This commit is contained in:
JoelKatz
2011-11-30 12:19:48 -08:00
parent b301fe2846
commit f243286bc9
7 changed files with 135 additions and 72 deletions

View File

@@ -3,7 +3,7 @@
#include <string>
#include <boost/foreach.hpp>
LocalAccount::LocalAccount(bool)
LocalAccount::LocalAccount(bool) : mAmount(0), mSeqNum(0)
{
mPrivateKey.MakeNewKey();
mPublicKey.SetPubKey(mPrivateKey.GetPubKey());