Commit Graph

12780 Commits

Author SHA1 Message Date
JoelKatz
8ef1b5133c Cleanups. 2011-12-29 20:55:14 -08:00
JoelKatz
91cbe75066 Separate the databases, give them their own connections and locks. 2011-12-29 20:55:03 -08:00
JoelKatz
8c5918b576 More wallet work and RPC work. The first real newcoin RPC "createfamily"
(to create a family of accounts) works.
2011-12-29 02:02:30 -08:00
JoelKatz
ca33205b83 Cleanups. 2011-12-27 20:48:44 -08:00
JoelKatz
4b88113a51 More work on the new wallet code. 2011-12-27 19:18:42 -08:00
JoelKatz
67a5544458 Include unit test, Wallet<->SQL updates. 2011-12-26 21:37:43 -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
d4276bfbec Style changes. 2011-12-20 16:54:47 -08:00
JoelKatz
1fae19edf2 Tiny fixes. 2011-12-19 20:34:45 -08:00
JoelKatz
c5509b8b00 Finish modifying this code to use the JsonCpp library. 2011-12-19 08:02:16 -08:00
JoelKatz
0421268daa Add 'zero' method to zero a uint. 2011-12-18 01:24:08 -08:00
JoelKatz
170eb9c4b0 Begin to bring some sanity to the RPC code. 2011-12-18 01:23:58 -08:00
JoelKatz
d9e2f1ebfa Cleanups.# modified: Peer.cpp 2011-12-17 21:24:04 -08:00
JoelKatz
80b2ac8ee2 This is a way to do deterministic keys that fits in better. 2011-12-17 21:12:05 -08:00
JoelKatz
aad4696a46 Comment out non-working code. 2011-12-17 13:33:32 -08:00
JoelKatz
1fb12e9883 Fix include paths. 2011-12-17 13:32:56 -08:00
JoelKatz
1460069dc7 The json spirit code used by bitcoin performs horribly because it uses a
very generic parser (and it has been a huge problem for bitcoin). This is a
much saner JSON library. The sooner we switch, the less pain.
2011-12-17 13:29:43 -08:00
JoelKatz
0b8aaf691f Get this exactly right. 2011-12-16 22:14:09 -08:00
JoelKatz
715bff43ef Micro-optimizations. 2011-12-16 21:51:05 -08:00
JoelKatz
ad8dcaa473 Comments. 2011-12-16 20:19:19 -08:00
JoelKatz
9214b44be9 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2011-12-16 20:16:10 -08:00
JoelKatz
da5579f9fe Bugfixes and some copy avoidance. 2011-12-16 20:15:51 -08:00
JoelKatz
8083b677e2 A better way to convert between uint160 and uint256 types. 2011-12-15 16:52:50 -08:00
jed
e2c3ef9d1c update windows project 2011-12-15 12:57:05 -08:00
JoelKatz
56484476a9 More bugfixes. 2011-12-15 12:53:56 -08:00
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