Commit Graph

  • 983f4560f3 Get the databases up and running. JoelKatz 2011-12-30 16:08:25 -08:00
  • 86ce1e39d8 Missing pieces. JoelKatz 2011-12-30 15:10:48 -08:00
  • 28c459cc8a Don't use system sqlite, use the included amalgamation. JoelKatz 2011-12-30 15:10:21 -08:00
  • 7087cb4ffa Missing from previous commit. JoelKatz 2011-12-29 21:32:47 -08:00
  • e6631bd4f1 Bump to verions 3.7.9 JoelKatz 2011-12-29 21:26:21 -08:00
  • 8ef1b5133c Cleanups. JoelKatz 2011-12-29 20:55:14 -08:00
  • 91cbe75066 Separate the databases, give them their own connections and locks. JoelKatz 2011-12-29 20:55:03 -08:00
  • 8c5918b576 More wallet work and RPC work. The first real newcoin RPC "createfamily" (to create a family of accounts) works. JoelKatz 2011-12-29 02:02:30 -08:00
  • ca33205b83 Cleanups. JoelKatz 2011-12-27 20:48:44 -08:00
  • 4b88113a51 More work on the new wallet code. JoelKatz 2011-12-27 19:18:42 -08:00
  • 67a5544458 Include unit test, Wallet<->SQL updates. JoelKatz 2011-12-26 21:37:43 -08:00
  • 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. JoelKatz 2011-12-26 18:42:50 -08:00
  • 780f94798e Cleanups and fixes. JoelKatz 2011-12-20 22:01:06 -08:00
  • d4276bfbec Style changes. JoelKatz 2011-12-20 16:54:47 -08:00
  • 1fae19edf2 Tiny fixes. JoelKatz 2011-12-19 20:34:45 -08:00
  • c5509b8b00 Finish modifying this code to use the JsonCpp library. JoelKatz 2011-12-19 08:02:16 -08:00
  • 0421268daa Add 'zero' method to zero a uint. JoelKatz 2011-12-18 01:24:08 -08:00
  • 170eb9c4b0 Begin to bring some sanity to the RPC code. JoelKatz 2011-12-18 01:23:58 -08:00
  • d9e2f1ebfa Cleanups.# modified: Peer.cpp JoelKatz 2011-12-17 21:24:04 -08:00
  • 80b2ac8ee2 This is a way to do deterministic keys that fits in better. JoelKatz 2011-12-17 21:12:05 -08:00
  • aad4696a46 Comment out non-working code. JoelKatz 2011-12-17 13:33:32 -08:00
  • 1fb12e9883 Fix include paths. JoelKatz 2011-12-17 13:32:56 -08:00
  • 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. JoelKatz 2011-12-17 13:29:43 -08:00
  • 0b8aaf691f Get this exactly right. JoelKatz 2011-12-16 22:14:09 -08:00
  • 715bff43ef Micro-optimizations. JoelKatz 2011-12-16 21:51:05 -08:00
  • ad8dcaa473 Comments. JoelKatz 2011-12-16 20:19:19 -08:00
  • 9214b44be9 Merge branch 'master' of github.com:jedmccaleb/NewCoin JoelKatz 2011-12-16 20:16:10 -08:00
  • da5579f9fe Bugfixes and some copy avoidance. JoelKatz 2011-12-16 20:15:51 -08:00
  • 8083b677e2 A better way to convert between uint160 and uint256 types. JoelKatz 2011-12-15 16:52:50 -08:00
  • e2c3ef9d1c update windows project jed 2011-12-15 12:57:05 -08:00
  • 56484476a9 More bugfixes. JoelKatz 2011-12-15 12:53:56 -08:00
  • c7f890ab47 Bugfixes. JoelKatz 2011-12-15 12:44:29 -08:00
  • a58e2ec5ca Obsolete code.# deleted: TransactionBundle.h JoelKatz 2011-12-15 01:30:30 -08:00
  • 25b7f9b1f8 Missing helper function# JoelKatz 2011-12-15 01:21:51 -08:00
  • 639ba9dfcb NetworkOPs layer JoelKatz 2011-12-15 01:19:50 -08:00
  • 0b25b9641f Fire up the initial ledgers and attach them to the application. JoelKatz 2011-12-13 21:54:17 -08:00
  • 7f9f5c5462 Some missing functions. JoelKatz 2011-12-13 20:16:10 -08:00
  • d1b2d12a04 Tie the SHAMap code to the HashedObject code in a much simpler way. Write out dirty nodes when we accept a ledger. JoelKatz 2011-12-13 20:15:36 -08:00
  • 854df9d920 Convenience functions, cleanups, and avoid a copy. JoelKatz 2011-12-13 20:15:10 -08:00
  • d5bc38f93e Convenience functions and avoid a copy.# JoelKatz 2011-12-13 20:13:00 -08:00
  • b829f2ca16 Finish SQL read/write outer ledger functions. JoelKatz 2011-12-13 19:30:35 -08:00
  • 78fedc05b4 Missing from repo JoelKatz 2011-12-13 18:52:08 -08:00
  • 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. JoelKatz 2011-12-13 18:05:29 -08:00
  • 80a6f7e5ad Mostly small cleanups and style fixes. JoelKatz 2011-12-13 18:04:43 -08:00
  • a93d125fce Some cleanups and missing details. JoelKatz 2011-12-13 15:30:44 -08:00
  • 3d8dab3ae9 Don't use ScopedLock where the lighter recursive_mutex::ScopedLock will do. JoelKatz 2011-12-13 15:30:33 -08:00
  • 2836efa104 Some cleanups to help suport M-of-N transactions JoelKatz 2011-12-13 12:18:39 -08:00
  • ffadf48d67 Extra debug. JoelKatz 2011-12-13 12:18:25 -08:00
  • 724a74e9f1 Whitespace fix JoelKatz 2011-12-13 12:18:15 -08:00
  • c01707b0f4 Cleanup. JoelKatz 2011-12-13 12:18:10 -08:00
  • 263fe6f515 Begin merging this code. JoelKatz 2011-12-13 12:17:51 -08:00
  • 5db7ba9d62 Some extra debug. An extra helper function. Remove dead code. JoelKatz 2011-12-13 12:17:14 -08:00
  • 58b727b3a7 Cleanups and some extra comments. JoelKatz 2011-12-13 12:16:54 -08:00
  • 664e1f9b7e New config parameters. JoelKatz 2011-12-13 12:16:40 -08:00
  • 91f0443e29 Tie application code to master ledger code. JoelKatz 2011-12-13 12:16:17 -08:00
  • d8f608abff Needed for testing, will remove when done. JoelKatz 2011-12-13 12:15:54 -08:00
  • 8d4ccc712b Sometimes the simplest errors are the hardest to find. Local variable shadowed class member. JoelKatz 2011-12-12 20:36:09 -08:00
  • 75c6528f27 Cleanups. JoelKatz 2011-12-12 15:52:53 -08:00
  • f3c5b3f61e Whitespace fixes. JoelKatz 2011-12-12 15:52:31 -08:00
  • 8c677fd421 Some missing pieces for deterministic wallets. JoelKatz 2011-12-12 15:52:13 -08:00
  • 7253073cbd Code to support deterministic wallets and payphrases. JoelKatz 2011-12-12 15:47:57 -08:00
  • 09dea9995a Network status bitflags. JoelKatz 2011-12-09 14:46:22 -08:00
  • 2bf8e1d60b Made obsolete by the pubkey cache. JoelKatz 2011-12-09 14:31:02 -08:00
  • 14d8462692 Not needed. JoelKatz 2011-12-09 14:29:52 -08:00
  • 5cd97c2930 Bring up to date. JoelKatz 2011-12-06 21:40:26 -08:00
  • 618a773944 Whitespace fixes. JoelKatz 2011-12-06 21:26:01 -08:00
  • ee51968820 Clean up the propose/avalanche phase. JoelKatz 2011-12-06 21:25:44 -08:00
  • 81fa075582 A place to track issues we know we need to address eventually, so we don't forget. JoelKatz 2011-12-06 21:25:19 -08:00
  • b22aaaed1f Start sketching out the avalance tracking structures. JoelKatz 2011-12-06 20:39:02 -08:00
  • c0cc975df6 Get rid of the binary format magic numbers spread though the code. JoelKatz 2011-12-06 14:46:55 -08:00
  • e07acea505 Complete the transaction-specific part of the ledger comparison logic. JoelKatz 2011-12-06 11:57:47 -08:00
  • 7375c1d22b Small buglet. JoelKatz 2011-12-05 15:03:56 -08:00
  • 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. JoelKatz 2011-12-05 15:01:01 -08:00
  • fe13406ef8 Some missing helper functions. JoelKatz 2011-12-05 15:00:47 -08:00
  • f7d1539df4 Identify which hashes we're using. JoelKatz 2011-12-05 13:21:52 -08:00
  • c220e6bcfc Public key in transaction must match *from* account. JoelKatz 2011-12-05 13:19:36 -08:00
  • 696c841ea3 Tie into PubKeyCache. JoelKatz 2011-12-04 19:34:18 -08:00
  • 65c09f3ce9 Tie into PubKeyCache. JoelKatz 2011-12-04 19:34:10 -08:00
  • c8d9902044 Add smart pointers to CKey objects. JoelKatz 2011-12-04 19:33:49 -08:00
  • 3ba41220c3 Code to store/retrieve transactions. Tie into PubKeyCache. JoelKatz 2011-12-04 19:33:06 -08:00
  • b1d66a1a0f Fix some small defects in the SQL layout. JoelKatz 2011-12-04 19:32:40 -08:00
  • c891df0ef8 Complete public key cache logic and tie to application object. JoelKatz 2011-12-04 19:32:16 -08:00
  • c52512e5e7 Consistent case. JoelKatz 2011-12-03 22:20:31 -08:00
  • 604c9721e9 The cache of IDs<->PubKeys. Also handles storing them to the SQL db. JoelKatz 2011-12-03 22:19:50 -08:00
  • 2dfb920db0 Some missing fields. JoelKatz 2011-12-03 21:49:35 -08:00
  • 7374943b13 Some fixes to the SQL statements. JoelKatz 2011-12-03 21:49:27 -08:00
  • 40054b5431 Make it easier for loaders/synchers to wait for replies. JoelKatz 2011-12-02 16:24:34 -08:00
  • e236671ccc The length logic was backwards. JoelKatz 2011-12-02 16:24:24 -08:00
  • d61c8ae013 Add static has function to save a copy. Use <0 for 'whole object', not 0. JoelKatz 2011-12-02 16:23:46 -08:00
  • 150a3165c4 Store hashes in hex form. It just makes things easier. JoelKatz 2011-12-02 16:23:31 -08:00
  • e575fea243 Whitespace. JoelKatz 2011-12-02 16:23:21 -08:00
  • 70ee793a07 Use 'peek' to indicate a reference to someone else's object. JoelKatz 2011-12-02 16:23:02 -08:00
  • 46d6ae415b Cleanup. JoelKatz 2011-12-02 16:22:54 -08:00
  • 70d3ea2495 Storage for objects retrieved by hash. Implement SQL set/get logic. JoelKatz 2011-12-02 16:22:38 -08:00
  • eaf4bc1b41 Small updates. JoelKatz 2011-12-02 16:22:25 -08:00
  • 089687152e The database is not reentrant, so we need a ScopedLock to gate it. JoelKatz 2011-12-02 16:22:10 -08:00
  • 26171e6dec Whitespace changes. JoelKatz 2011-12-02 16:21:59 -08:00
  • f3ed8b7ec9 Updates, working to get the network code going. JoelKatz 2011-11-30 21:29:38 -08:00
  • 284445a7fa Start cleaning up the peer code. JoelKatz 2011-11-30 14:57:44 -08:00
  • 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. JoelKatz 2011-11-30 12:19:48 -08:00