Commit Graph

  • 578ca1c748 Updates to this code. JoelKatz 2012-03-14 11:20:22 -07:00
  • c001251966 Use C++-style casts. JoelKatz 2012-03-14 11:13:52 -07:00
  • 30414aabca Merge branch 'master' into unl Arthur Britto 2012-03-12 23:17:25 -07:00
  • b9670ecc38 Merge branch 'master' of github.com:jedmccaleb/NewCoin Arthur Britto 2012-03-12 18:14:30 -07:00
  • 1aa2f0b85e Add support for ctags to scons. Arthur Britto 2012-03-12 18:08:31 -07:00
  • 66429ef054 Initial check in of valdiators.txt. Arthur Britto 2012-03-12 17:47:15 -07:00
  • 429af40139 Add headers for serialized objects and types. This is a table-driver serialized that can also serialized/deserialize to/from binary, text, and database formats. JoelKatz 2012-03-12 15:25:56 -07:00
  • e8c1f656ee SerializerIterator implementation. JoelKatz 2012-03-11 21:35:41 -07:00
  • 543c1af546 Variable-length and tagged list serializer functions. JoelKatz 2012-03-11 17:25:17 -07:00
  • 209ba8a8b9 Merge branch 'master' of github.com:jedmccaleb/NewCoin JoelKatz 2012-03-11 17:24:21 -07:00
  • 29ab1c3065 Also show the port for "peers". Arthur Britto 2012-03-10 19:15:41 -08:00
  • 2596cce905 Add RPC command peers. Arthur Britto 2012-03-10 19:06:05 -08:00
  • 481923f636 Merge branch 'master' of github.com:jedmccaleb/NewCoin JoelKatz 2012-03-07 15:27:13 -08:00
  • af929c7d49 Kudge protoc builder to work for us. Arthur Britto 2012-03-07 14:54:44 -08:00
  • d4107534bf Slots for the new transaction type handlers. JoelKatz 2012-03-07 09:14:50 -08:00
  • f08107cd03 Punish a peer that sends us unwanted ledger data. JoelKatz 2012-03-07 09:14:38 -08:00
  • efa2f90b34 Cleanup. JoelKatz 2012-03-07 09:14:22 -08:00
  • d810f5f9a5 Missing from previous commits. JoelKatz 2012-03-07 09:14:00 -08:00
  • 2e268d90a4 Remove obsolete Makefile. Arthur Britto 2012-03-06 23:06:08 -08:00
  • c57ba4976a Move newcoin.proto to src/ Arthur Britto 2012-03-06 22:54:19 -08:00
  • 99735d92fd Fix typo. Arthur Britto 2012-03-06 22:49:26 -08:00
  • 84505623da Remove unnecessary include from SConstruct. Arthur Britto 2012-03-06 22:47:14 -08:00
  • b8d23f9f98 Initial .gitignore. Arthur Britto 2012-03-06 22:45:53 -08:00
  • c513e45754 Move sources to src and build objs in obj. Arthur Britto 2012-03-06 22:43:06 -08:00
  • 82af29a21d Fix scons globing of foo.c~ Arthur Britto 2012-03-06 20:27:01 -08:00
  • 0f632fde02 Initial support for scons. Arthur Britto 2012-03-06 18:13:27 -08:00
  • 203a519ee5 Cleanups. JoelKatz 2012-02-21 09:05:30 -08:00
  • b89d95f83d Complete the handler for received ledger data. JoelKatz 2012-02-20 21:10:23 -08:00
  • ef09bf96e7 Various cleanups. JoelKatz 2012-02-20 20:26:10 -08:00
  • 214833078a More ledger acquire work. JoelKatz 2012-02-16 16:00:05 -08:00
  • b6946e40d6 Some helper functions to help adapt between vectors and strings. JoelKatz 2012-02-16 15:49:10 -08:00
  • 5d3fcdb8ac Whitespace cleanups. JoelKatz 2012-02-16 14:37:18 -08:00
  • dc0f0a6576 Do this the canonical way. JoelKatz 2012-02-16 14:37:13 -08:00
  • 370f969c7e LedgerAcquire functions. JoelKatz 2012-02-16 14:37:06 -08:00
  • dad3cee004 Type in previous commit. JoelKatz 2012-02-16 14:12:52 -08:00
  • 349bbcee4a Some missing LedgerAcquire functions. JoelKatz 2012-02-16 14:12:05 -08:00
  • 0b4cad2433 Change the way we track the state of a SHAMap so it makes more sense. JoelKatz 2012-02-14 19:47:11 -08:00
  • ccb7ed38e7 Ledger synch work. JoelKatz 2012-02-13 19:29:11 -08:00
  • 9524df694a Rename add1/get1 to add8/get8 to be consistent with other member functions. JoelKatz 2012-02-13 19:28:29 -08:00
  • db8763ef19 More work on peer to peer ledger sync. JoelKatz 2012-02-13 10:48:59 -08:00
  • b8b78b2c27 Header cleanup. JoelKatz 2012-02-13 10:48:11 -08:00
  • 3dbbda4b4a Security flaw. When we add transaction nodes to a synching tree, we must make sure the hash of the data equals the tag! JoelKatz 2012-02-08 21:39:40 -08:00
  • bb5f70cd73 Cleanups and optimizations. JoelKatz 2012-02-07 19:48:10 -08:00
  • 43c70696ce Cleanups and bug fix. JoelKatz 2012-02-07 17:30:06 -08:00
  • a5a4a373f7 Cleanups and bugfix. JoelKatz 2012-02-07 17:29:58 -08:00
  • 6a3a4a1c96 Cleanups. JoelKatz 2012-02-07 17:29:48 -08:00
  • 35b6cf58c8 Cleanups. JoelKatz 2012-02-07 17:29:44 -08:00
  • 250bb71e7e Add isZero/isNonZero to avoid !!hash constructs. JoelKatz 2012-02-07 17:26:49 -08:00
  • 104fa67d86 Bugfix. JoelKatz 2012-02-07 17:02:59 -08:00
  • 704eb22195 Cleanup JoelKatz 2012-02-07 17:02:53 -08:00
  • 29d24c0af8 Bugfixes and new unit test. JoelKatz 2012-02-07 16:54:59 -08:00
  • 60d403725c Cleanups. JoelKatz 2012-02-07 14:16:10 -08:00
  • ad61c7575f Bugfix. JoelKatz 2012-02-07 14:15:08 -08:00
  • 01983330d8 Complete the SHAMap rewrite. JoelKatz 2012-02-06 15:39:06 -08:00
  • 04cc08748e Half the new map diff implementation. This is the part that handles a branch that's either empty in the other tree or matched by only a leaf. JoelKatz 2012-02-05 21:22:20 -08:00
  • 4c1c53df87 Cleanups. JoelKatz 2012-02-05 07:18:35 -08:00
  • 3ec994f435 cleanups JoelKatz 2012-02-05 07:15:41 -08:00
  • ef0c9d036a cleanups. JoelKatz 2012-02-05 07:13:23 -08:00
  • c2498de27e Cleanups. JoelKatz 2012-02-05 07:08:54 -08:00
  • 30c9bf0ed2 Major rewrite of the SHAMap code. This code performs much better than the original version, particularly for smaller maps. JoelKatz 2012-02-05 06:54:44 -08:00
  • 41ce5fa7f9 Missing from previous commit. JoelKatz 2012-02-02 16:14:27 -08:00
  • fca8d4f8e9 Unordered maps perform better than regular ones. JoelKatz 2012-02-02 16:14:11 -08:00
  • 9b804c0c61 Optimizations. JoelKatz 2012-02-01 21:04:28 -08:00
  • 08d6b55fed Major optimization in the way we track SHAMaps. JoelKatz 2012-02-01 20:51:58 -08:00
  • 5888d19f2b SHAMap sync now passes its unit test with the "full below" optimization disabled. There's a logic error in the implementation. JoelKatz 2012-02-01 19:10:07 -08:00
  • 86687e2012 bugfixes. JoelKatz 2012-02-01 18:46:08 -08:00
  • ca3b614e29 A bug fix that's also a simplification. JoelKatz 2012-02-01 18:38:42 -08:00
  • f2130d4f6b Complete the SHAMapSync unit test. The test currently fails. Debug in progress JoelKatz 2012-02-01 14:22:34 -08:00
  • 443eef3a9b Complete the SHAMapSync code. Next step is to finish the testing harness. JoelKatz 2012-01-31 20:07:55 -08:00
  • bac03c31de Fixes and cleanups. JoelKatz 2012-01-31 18:44:59 -08:00
  • eec4bfddff Need a 'walkTo' function. That walks as far as possible to tree position. JoelKatz 2012-01-31 15:52:44 -08:00
  • ca26a22314 Map sync testing framework. JoelKatz 2012-01-31 12:29:18 -08:00
  • a7bdb81d3d Clean this up a bit. JoelKatz 2012-01-31 12:29:06 -08:00
  • 5a52d6fec3 More work on the ledger/SHAMap sync code. JoelKatz 2012-01-30 20:56:38 -08:00
  • 6e11bfbb81 More ledger acquire code. JoelKatz 2012-01-30 20:56:11 -08:00
  • 3740498b50 Some enhancements to this coded needed for the sync code to work. JoelKatz 2012-01-30 19:04:22 -08:00
  • 2116ce700d Implementations. JoelKatz 2012-01-30 18:00:27 -08:00
  • de1e8cdab7 The new code tracks responses by ledger hash, not by request sequence. JoelKatz 2012-01-30 17:58:49 -08:00
  • 895a51319d Do it the way everyone else does it -- more likely to work. JoelKatz 2012-01-30 17:58:29 -08:00
  • 94d61f67a8 Outline of the LedgerAcquire class and its tracking class. JoelKatz 2012-01-30 14:51:21 -08:00
  • e47cba3369 Code to track ledgers we're acquiring from remote node, allow callbacks to be attached to them, and trigger their state machines. JoelKatz 2012-01-30 12:56:43 -08:00
  • 7885439bb4 Tiny optimization. JoelKatz 2012-01-27 11:34:55 -08:00
  • 110a4a47f1 Use the transaction master. JoelKatz 2012-01-27 11:34:41 -08:00
  • 4f0a9a4ce5 Tie in transaction master. Some performance improvements and const fixes. JoelKatz 2012-01-27 11:33:54 -08:00
  • 0867986c35 Tie in transaction master code. JoelKatz 2012-01-27 11:33:36 -08:00
  • 1896348b7b Modify the ledger history code to use the tagged cache. JoelKatz 2012-01-25 16:32:27 -08:00
  • 8a0625a477 Bugfix. JoelKatz 2012-01-25 16:32:13 -08:00
  • 58d81ca937 Map/Cache to track objects by name and canonicalize references. Will be used for transactions and closed ledgers. JoelKatz 2012-01-25 15:27:14 -08:00
  • 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. JoelKatz 2012-01-24 21:30:27 -08:00
  • b5afbf52ec Protocol enhancements for network 'previous ledger' sync. JoelKatz 2012-01-24 21:29:54 -08:00
  • 7215f5b220 Add AccountState::addJson. Make RPC call "accountinfo <account>" work on non-local accounts and local account by account identifier. JoelKatz 2012-01-23 16:58:17 -08:00
  • f4c6865751 Add new commands to help. JoelKatz 2012-01-23 13:38:12 -08:00
  • 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. JoelKatz 2012-01-23 13:31:39 -08:00
  • 017a606f3b Support "tx <family> <seq>" RPC command. JoelKatz 2012-01-23 12:12:34 -08:00
  • fc0c57c723 Trivial change. JoelKatz 2012-01-23 12:12:24 -08:00
  • 70bc25e6d7 Trivial change. JoelKatz 2012-01-23 12:12:16 -08:00
  • e0abc4b35c Finish "txn <id>" RPC command. JoelKatz 2012-01-21 12:57:33 -08:00
  • ff4678c741 Make 'tx' RPC command with no parameteres work. It displays all "in progress" transactions that affect local accounts. JoelKatz 2012-01-20 17:44:28 -08:00
  • 5196be1645 Properly report unknown command errors so the command line tool can give help. JoelKatz 2012-01-20 17:44:06 -08:00
  • ba6d040266 Infrastructure for "tx" RPC command to track transactions. JoelKatz 2012-01-20 16:43:53 -08:00