Commit Graph

13604 Commits

Author SHA1 Message Date
JoelKatz
c7f890ab47 Bugfixes. 2011-12-15 12:44:29 -08:00
JoelKatz
a58e2ec5ca Obsolete code.# deleted: TransactionBundle.h 2011-12-15 01:30:30 -08:00
JoelKatz
25b7f9b1f8 Missing helper function# 2011-12-15 01:21:51 -08:00
JoelKatz
639ba9dfcb NetworkOPs layer
Begin coding the 'NetworkOPs' layer. This will provide most of the
functions 'client' code will want to call such as functions to lookup
transactions, check on their status, get balances, and so on. Much of the
RPC layer will be a thin wrapper over these functions.

The purpose of this layer is to permit the node to support these functions
regardless of its operating mode or available data, as long as it's
connected to the network. If synchronized and tracking the current ledger,
it can do most functions locally. If not, it can ask for help from other
nodes. If hopeless, it can return an error code.
2011-12-15 01:19:50 -08:00
JoelKatz
0b25b9641f Fire up the initial ledgers and attach them to the application. 2011-12-13 21:54:17 -08:00
JoelKatz
7f9f5c5462 Some missing functions. 2011-12-13 20:16:10 -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
854df9d920 Convenience functions, cleanups, and avoid a copy. 2011-12-13 20:15:10 -08:00
JoelKatz
d5bc38f93e Convenience functions and avoid a copy.# 2011-12-13 20:13:00 -08:00
JoelKatz
b829f2ca16 Finish SQL read/write outer ledger functions. 2011-12-13 19:30:35 -08:00
JoelKatz
78fedc05b4 Missing from repo 2011-12-13 18:52:08 -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
80a6f7e5ad Mostly small cleanups and style fixes. 2011-12-13 18:04:43 -08:00
JoelKatz
a93d125fce Some cleanups and missing details. 2011-12-13 15:30:44 -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
2836efa104 Some cleanups to help suport M-of-N transactions 2011-12-13 12:18:39 -08:00
JoelKatz
ffadf48d67 Extra debug. 2011-12-13 12:18:25 -08:00
JoelKatz
724a74e9f1 Whitespace fix 2011-12-13 12:18:15 -08:00
JoelKatz
c01707b0f4 Cleanup. 2011-12-13 12:18:10 -08:00
JoelKatz
263fe6f515 Begin merging this code. 2011-12-13 12:17:51 -08:00
JoelKatz
5db7ba9d62 Some extra debug. An extra helper function. Remove dead code. 2011-12-13 12:17:14 -08:00
JoelKatz
58b727b3a7 Cleanups and some extra comments. 2011-12-13 12:16:54 -08:00
JoelKatz
664e1f9b7e New config parameters. 2011-12-13 12:16:40 -08:00
JoelKatz
91f0443e29 Tie application code to master ledger code. 2011-12-13 12:16:17 -08:00
JoelKatz
d8f608abff Needed for testing, will remove when done. 2011-12-13 12:15:54 -08:00
JoelKatz
8d4ccc712b Sometimes the simplest errors are the hardest to find. Local variable
shadowed class member.
2011-12-12 20:36:09 -08:00
JoelKatz
75c6528f27 Cleanups. 2011-12-12 15:52:53 -08:00
JoelKatz
f3c5b3f61e Whitespace fixes. 2011-12-12 15:52:31 -08:00
JoelKatz
8c677fd421 Some missing pieces for deterministic wallets. 2011-12-12 15:52:13 -08:00
JoelKatz
7253073cbd Code to support deterministic wallets and payphrases. 2011-12-12 15:47:57 -08:00
JoelKatz
09dea9995a Network status bitflags. 2011-12-09 14:46:22 -08:00
JoelKatz
2bf8e1d60b Made obsolete by the pubkey cache. 2011-12-09 14:31:02 -08:00
JoelKatz
14d8462692 Not needed. 2011-12-09 14:29:52 -08:00
JoelKatz
5cd97c2930 Bring up to date. 2011-12-06 21:40:26 -08:00
JoelKatz
618a773944 Whitespace fixes. 2011-12-06 21:26:01 -08:00
JoelKatz
ee51968820 Clean up the propose/avalanche phase. 2011-12-06 21:25:44 -08:00
JoelKatz
81fa075582 A place to track issues we know we need to address eventually, so we don't forget. 2011-12-06 21:25:19 -08:00
JoelKatz
b22aaaed1f Start sketching out the avalance tracking structures. 2011-12-06 20:39:02 -08:00
JoelKatz
c0cc975df6 Get rid of the binary format magic numbers spread though the code. 2011-12-06 14:46:55 -08:00
JoelKatz
e07acea505 Complete the transaction-specific part of the ledger comparison logic. 2011-12-06 11:57:47 -08:00
JoelKatz
7375c1d22b Small buglet. 2011-12-05 15:03:56 -08:00
JoelKatz
9dcda53e70 The algorithm to find all the differences between two trees of transactions
or accounts. This is definitely either genius or madness. I'm just not quite
sure which.
2011-12-05 15:01:01 -08:00
JoelKatz
fe13406ef8 Some missing helper functions. 2011-12-05 15:00:47 -08:00
JoelKatz
f7d1539df4 Identify which hashes we're using. 2011-12-05 13:21:52 -08:00
JoelKatz
c220e6bcfc Public key in transaction must match *from* account. 2011-12-05 13:19:36 -08:00
JoelKatz
696c841ea3 Tie into PubKeyCache. 2011-12-04 19:34:18 -08:00
JoelKatz
65c09f3ce9 Tie into PubKeyCache. 2011-12-04 19:34:10 -08:00
JoelKatz
c8d9902044 Add smart pointers to CKey objects. 2011-12-04 19:33:49 -08:00
JoelKatz
3ba41220c3 Code to store/retrieve transactions. Tie into PubKeyCache. 2011-12-04 19:33:06 -08:00
JoelKatz
b1d66a1a0f Fix some small defects in the SQL layout. 2011-12-04 19:32:40 -08:00