Commit Graph

30 Commits

Author SHA1 Message Date
JoelKatz
c2498de27e Cleanups. 2012-02-05 07:08:54 -08:00
JoelKatz
3740498b50 Some enhancements to this coded needed for the sync code to work. 2012-01-30 19:04:22 -08:00
JoelKatz
4f0a9a4ce5 Tie in transaction master. Some performance improvements and const fixes. 2012-01-27 11:33:54 -08:00
JoelKatz
f4e6a72e1c Logic to 'rebase' a ledger to a different previous ledger.
This code does not assume the new previous ledger is valid
or trusted.
1) Validate sequence numbers and basic information.
2) Create a new ledger based on the new previous ledger.
3) Compare the old previous ledger and the new previous
ledger.
4) Try to include any missing, valid transactions in
the current ledger.
5) Traverse the old ledger based on the old previous ledger,
try to import any transactions into the new ledger.
2012-01-24 21:30:27 -08:00
JoelKatz
6112a443cf Add "ledger" command to get ledger information. Make the command
work with no parameters. Fix a bug where the ledger's account/txn
hashes didn't get properly synchronized to the SHA maps. Add function
to get ledger as json object.
2012-01-23 13:31:39 -08:00
JoelKatz
2782c2dafe Begin work to track transactions involvings spends from local accounts. 2012-01-08 23:58:13 -08:00
JoelKatz
2e3a48dcea Small cleanups/fixes. 2012-01-05 16:54:55 -08:00
JoelKatz
c7f890ab47 Bugfixes. 2011-12-15 12:44:29 -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
5db7ba9d62 Some extra debug. An extra helper function. Remove dead code. 2011-12-13 12:17:14 -08:00
JoelKatz
ee51968820 Clean up the propose/avalanche phase. 2011-12-06 21:25:44 -08:00
JoelKatz
70ee793a07 Use 'peek' to indicate a reference to someone else's object. 2011-12-02 16:23:02 -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
badf382903 Note that 'insufficient funds' can occur when removing a transaction too, if
the funds have already been spent by another transaction. When removing a
transaction, any 'subsequent' dependent transactions must be removed first.
2011-11-25 21:51:30 -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
14988dec90 Updates 2011-11-15 10:48:52 -08:00
JoelKatz
e9ae645e3b Transaction Infrastructure Work:
Raw account class (address + public key)
Account State class (account + balance + ledgers valid)
Raw Hanko class
Low-level tranasaction class
Small wallet and key bits
Misc updates to the protocol.
Protocol addition to allow code to wait for replies, but that may not be a good idea.
2011-11-11 14:13:25 -08:00
JoelKatz
1d140e8829 Sync Linux tweaks. 2011-11-07 13:45:32 -08: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
fed4350ccc . 2011-10-25 16:56:15 -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