Commit Graph

38 Commits

Author SHA1 Message Date
JoelKatz
a5da80d36d Fix issues in applying local transactions. 2012-01-18 14:14:23 -08:00
JoelKatz
b2b8caf6b9 Fix the account state bug. Rewrite the relationship between families and
accounts. Remove the LocalAccountEntry class and make some huge
simplifications.
 Ledger.cpp     |   14 +++++--
 LocalAccount.h |   80 +++++++++++++++------------------------------
 Wallet.cpp     |  101 +++++++++++++++++++--------------------------------------
2012-01-18 11:43:25 -08:00
JoelKatz
2e0d47f782 Work to fix the transaction source sequence buglet. 2012-01-18 09:57:48 -08:00
JoelKatz
93c7333c58 Cleanup/debug. 2012-01-17 20:39:16 -08:00
JoelKatz
b62139cdcc Sync ledger with wallet. 2012-01-17 19:19:00 -08:00
JoelKatz
c35ca834a7 Sync various bits of work. 2012-01-13 00:15:34 -08:00
JoelKatz
fa16bb430b Infrastructure for local transactions, wallet interface.
Transaction JSON code.
2012-01-08 22:18:03 -08:00
JoelKatz
fecd9042d2 Life gets easier if an account that exists in the ledger has a
defined sequence number of 1.
2012-01-08 21:24:20 -08:00
JoelKatz
5a38a71382 Missing startIterRows. 2011-12-30 18:48:29 -08:00
JoelKatz
91cbe75066 Separate the databases, give them their own connections and locks. 2011-12-29 20:55:03 -08:00
JoelKatz
5cec2e9a11 New wallet system. Still missing unit tests, ledger synchronization,
and SQL code. This uses some of the 'magic' properties of elliptic
curves to create related families of public and private keys.
Wallet encryption is not needed because the private keys do not
need to be stored.
2011-12-26 18:42:50 -08:00
JoelKatz
780f94798e Cleanups and fixes. 2011-12-20 22:01:06 -08:00
JoelKatz
8083b677e2 A better way to convert between uint160 and uint256 types. 2011-12-15 16:52:50 -08:00
JoelKatz
c7f890ab47 Bugfixes. 2011-12-15 12:44:29 -08:00
JoelKatz
d1b2d12a04 Tie the SHAMap code to the HashedObject code in a much simpler way.
Write out dirty nodes when we accept a ledger.
2011-12-13 20:15:36 -08:00
JoelKatz
b829f2ca16 Finish SQL read/write outer ledger functions. 2011-12-13 19:30:35 -08:00
JoelKatz
4b5bc85a0d More work on ledger sequencing:
Track whether ledger is accepted.
	Assert on modifications to an accepted ledger.
	Save accepted ledgers to DB.
	Load ledger by hash/index.
	Ledger history functions, ledger canonicalization.
	'Push' ledger to history.
2011-12-13 18:05:29 -08:00
JoelKatz
3d8dab3ae9 Don't use ScopedLock where the lighter recursive_mutex::ScopedLock will do. 2011-12-13 15:30:33 -08:00
JoelKatz
5db7ba9d62 Some extra debug. An extra helper function. Remove dead code. 2011-12-13 12:17:14 -08:00
JoelKatz
46d6ae415b Cleanup. 2011-12-02 16:22:54 -08:00
JoelKatz
f243286bc9 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.
2011-11-30 12:19:48 -08:00
JoelKatz
dc8cd59c1d Fix some small bugs in the Ledger code. Add a unit test. (Needs more tests.) 2011-11-29 16:43:32 -08:00
JoelKatz
11f9e111de Construct the next ledger from the existing ledger.
Close ledger logic.
2011-11-28 19:34:16 -08:00
JoelKatz
e87a027df2 Code to boostrap the initial ledger. 2011-11-26 00:57:31 -08:00
JoelKatz
d4030472e7 Cleanups. Function to fully remove/undo a transaction from a ledger. 2011-11-25 21:50:58 -08:00
JoelKatz
5fc9233fb5 More ledger functions, updateAccountState/addTransaction. 2011-11-23 12:50:51 -08:00
JoelKatz
6c7fd5f195 More work on core ledger and transaction processing code. 2011-11-22 15:42:03 -08:00
JoelKatz
73578d6313 Begin trying the ledger code in. 2011-11-21 13:09:47 -08:00
JoelKatz
1d140e8829 Sync Linux tweaks. 2011-11-07 13:45:32 -08:00
jed
7436a8deec . 2011-10-28 16:51:35 -07:00
jed
e68b0fb8d1 . 2011-10-27 16:59:42 -07:00
jed
7eae6e5886 added sqllite 2011-10-27 13:04:08 -07:00
jed
d26577ffd7 . 2011-10-26 20:49:04 -07:00
jed
880c763dea . 2011-10-26 16:10:43 -07:00
jed
11a964ffed . 2011-10-21 11:32:23 -07:00
jed
0416d64fdc . 2011-10-20 16:34:22 -07:00
jed
650ee74391 . 2011-10-20 13:34:49 -07:00
jed
a8e8613475 first 2011-10-14 11:39:06 -07:00