Commit Graph

  • 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
  • 50e23112e3 Fix applying transactions with a local destination to the wallet. JoelKatz 2012-01-20 13:43:07 -08:00
  • 5d08754104 Spurious parse errors caused by missing 'break's. JoelKatz 2012-01-20 13:28:31 -08:00
  • 27e8d12fab Sorry, wrong function.# database/shell.c JoelKatz 2012-01-19 19:39:58 -08:00
  • 416695f64e Report a resolver error to the RPC caller. JoelKatz 2012-01-19 18:44:06 -08:00
  • 82375c30b4 We need to detach on all errors or the Peer structure will stay in memory forever. JoelKatz 2012-01-19 18:43:51 -08:00
  • 78ad27e6aa Be consistent in how we include boost headers. JoelKatz 2012-01-19 18:43:32 -08:00
  • b93613e835 Fix crash on bad resolve. Fix peer shutdown logic. Fix peer tracking logic. JoelKatz 2012-01-19 18:38:31 -08:00
  • 7049d036d9 Actually, I think this code is okay. JoelKatz 2012-01-19 18:24:55 -08:00
  • 95a74ee904 Bugfixes. JoelKatz 2012-01-19 16:14:47 -08:00
  • 06d69888fd Complete initial implementation of transaction relaying. JoelKatz 2012-01-19 15:56:06 -08:00
  • 0b69be862f Slot for IPv4 port JoelKatz 2012-01-19 14:25:45 -08:00
  • e39a2ddbb3 Ignore a spurious error JoelKatz 2012-01-19 14:25:35 -08:00
  • 10f7d3247d Fill in some fields in the Hello packet, and report them on reception. JoelKatz 2012-01-19 14:25:20 -08:00
  • 1c01d7dc8d Let's not use message type 0 JoelKatz 2012-01-19 14:16:09 -08:00
  • 5f394e9bb7 Whitespace. JoelKatz 2012-01-19 14:11:26 -08:00
  • b9326d2454 Cleanups, add debug. JoelKatz 2012-01-19 14:11:15 -08:00
  • 7d26c47035 Fire up the I/O engine on an outbound connection. JoelKatz 2012-01-19 14:10:39 -08:00
  • cabbfffbdf Remove debug we don't need. JoelKatz 2012-01-19 14:10:14 -08:00
  • 92f6ad6d37 getting connections working jed 2012-01-19 12:32:41 -08:00
  • 239e26a56e Update with current RPC commands. Fix help logic. JoelKatz 2012-01-19 10:26:21 -08:00
  • 4ec389f0e6 Remove test.cpp, switch Makefile to use main.cpp JoelKatz 2012-01-19 10:26:01 -08:00
  • d31a85fe3a Merge branch 'master' of github.com:jedmccaleb/NewCoin JoelKatz 2012-01-19 10:14:20 -08:00
  • 61f72e2141 Remove old code. JoelKatz 2012-01-19 10:04:48 -08:00
  • ef24377d08 'connect' RPC command JoelKatz 2012-01-19 10:03:57 -08:00
  • 969ef6540e Implement 'connectTo'. JoelKatz 2012-01-19 10:03:04 -08:00
  • 805990618e Remove some functionality that belongs in ConnectionPool JoelKatz 2012-01-19 10:02:34 -08:00
  • 315db73ddd build on windows jed 2012-01-19 09:51:01 -08:00
  • 94e4e1d04b Handle all the weird edge cases, such as: A remote transaction is received *from* a local account. We neeed to update our balance and sequence tracking. A local transaction loses to a conflict. JoelKatz 2012-01-18 15:33:58 -08:00
  • 60dcb8ac35 Trivial changes. JoelKatz 2012-01-18 14:19:04 -08:00
  • e9928ecc20 Change name of mAccountSeq to make it clear that it's the family sequence not the transaction sequence JoelKatz 2012-01-18 14:17:28 -08:00
  • 0df4957b28 Cleanups and two small bugfixes. (Wrong SQL, wrong sequence in signature) JoelKatz 2012-01-18 14:16:44 -08:00
  • 7a84e5e54f Cleanup JoelKatz 2012-01-18 14:15:22 -08:00
  • 702a592b9c Process local Txns. JoelKatz 2012-01-18 14:15:00 -08:00
  • efb9fd7e1f Extra debug JoelKatz 2012-01-18 14:14:46 -08:00
  • 1277ffd91c Apply local Txns. JoelKatz 2012-01-18 14:14:34 -08:00
  • a5da80d36d Fix issues in applying local transactions. JoelKatz 2012-01-18 14:14:23 -08:00
  • ff2cc0aee4 Create more funds in initial ledger. JoelKatz 2012-01-18 14:13:48 -08:00
  • 88ff8767bb Some extra debug help. JoelKatz 2012-01-18 11:44:47 -08:00
  • b2b8caf6b9 Fix the account state bug. Rewrite the relationship between families and accounts. Remove the LocalAccountEntry class and make some huge simplifications. Ledger.cpp | 14 +++++-- LocalAccount.h | 80 +++++++++++++++------------------------------ Wallet.cpp | 101 +++++++++++++++++++-------------------------------------- JoelKatz 2012-01-18 11:43:25 -08:00
  • 2e0d47f782 Work to fix the transaction source sequence buglet. JoelKatz 2012-01-18 09:57:48 -08:00
  • 7fa8f43c59 Bugfix in 'unlock'. JoelKatz 2012-01-18 09:40:38 -08:00
  • f1052e0706 Cleanup, debug, extra JSON info. JoelKatz 2012-01-17 20:39:41 -08:00
  • 93c7333c58 Cleanup/debug. JoelKatz 2012-01-17 20:39:16 -08:00
  • 5ba945b8e3 New version of the code to generate the initial ledger. This version puts all the money in ["This is my payphrase."] JoelKatz 2012-01-17 20:38:32 -08:00
  • deb0dc6d65 Cleanup format. Fix bug where account erroneously had a 0 sequence. JoelKatz 2012-01-17 20:38:16 -08:00
  • 66f8741398 Cleanup. JoelKatz 2012-01-17 19:20:06 -08:00
  • 55d0704438 Structures needed for network broadcasts. JoelKatz 2012-01-17 19:19:52 -08:00
  • 0272730476 Tiny cleanup. JoelKatz 2012-01-17 19:19:41 -08:00
  • b62139cdcc Sync ledger with wallet. JoelKatz 2012-01-17 19:19:00 -08:00
  • c35ca834a7 Sync various bits of work. JoelKatz 2012-01-13 00:15:34 -08:00
  • 2782c2dafe Begin work to track transactions involvings spends from local accounts. JoelKatz 2012-01-08 23:58:13 -08:00
  • fa16bb430b Infrastructure for local transactions, wallet interface. Transaction JSON code. JoelKatz 2012-01-08 22:18:03 -08:00
  • f87d1bfcb7 A class to track a local transaction through its life cycle. JoelKatz 2012-01-08 21:38:24 -08:00
  • fecd9042d2 Life gets easier if an account that exists in the ledger has a defined sequence number of 1. JoelKatz 2012-01-08 21:24:20 -08:00
  • c65b9ecf83 Finish moving Json code. JoelKatz 2012-01-07 15:53:31 -08:00
  • 7935889f00 Make the Json code more logical, avoid duplication in RPC calls. JoelKatz 2012-01-07 14:32:47 -08:00
  • 79808e9835 Cleanups. JoelKatz 2012-01-07 14:32:29 -08:00
  • 3d8e7027e4 Helper function to parse families. Code to issue new accounts. JoelKatz 2012-01-07 13:58:52 -08:00
  • 89495d2047 Add some helper functions to simplify parameter parsing. JoelKatz 2012-01-07 13:15:21 -08:00
  • 3843efe7d3 Cleanup JoelKatz 2012-01-07 13:15:14 -08:00
  • 528454bdab Trivial change. JoelKatz 2012-01-07 13:14:52 -08:00
  • 2e3a48dcea Small cleanups/fixes. JoelKatz 2012-01-05 16:54:55 -08:00
  • c1213b20c6 Some missing lock logic. JoelKatz 2012-01-05 16:53:31 -08:00
  • a532bfb402 Add 'accountinfo' RPC command. Change 'info' to 'familyinfo'. Spec out 'sendto'. JoelKatz 2012-01-03 20:31:11 -08:00
  • d5208e6d92 Add some LocalAccount helper functions. Add parseAccount. JoelKatz 2012-01-03 20:30:36 -08:00
  • ea73656a21 Cleanup of RPC names. JoelKatz 2012-01-03 20:30:26 -08:00
  • 285cf1aabd Support key types other than families. JoelKatz 2012-01-03 20:30:07 -08:00
  • 7a0dde60ad More work on the wallet/key scheme. Call the public generator a public generator rather than a public key. Ignore private sub-keys greater than the EC group Bugfixes. When we create a new key family, validate the first 500 keys, just out of paranoia. JoelKatz 2012-01-02 23:05:04 -08:00
  • 82a88671dd Finish 'info' RPC call. JoelKatz 2012-01-01 07:45:34 -08:00
  • a24e7a4c27 Fix some database issues. JoelKatz 2012-01-01 07:45:13 -08:00
  • d4a79d7c7f Most of the "info" RPC command. Prefix private generators with a 'P' so they don't get confused with other thigns. JoelKatz 2012-01-01 02:58:42 -08:00
  • 3de74d1eb2 Cleanups. JoelKatz 2012-01-01 02:58:30 -08:00
  • 0a8b9056b6 Bugfix. JoelKatz 2012-01-01 02:58:12 -08:00
  • fb3d128268 Updates. JoelKatz 2012-01-01 02:58:05 -08:00
  • 4351b406b6 Missing ; JoelKatz 2012-01-01 02:57:38 -08:00
  • cc4db24956 Load the wallet, setup the root ledger. JoelKatz 2012-01-01 02:57:11 -08:00
  • 26bcde4d37 Helper functions. JoelKatz 2011-12-31 18:10:30 -08:00
  • a01d8ca705 Use C++-style cast JoelKatz 2011-12-31 18:10:22 -08:00
  • fe5cb25ffe Close small memory leak. JoelKatz 2011-12-31 18:09:59 -08:00
  • f720dbd256 Remove dead code. JoelKatz 2011-12-31 00:39:52 -08:00
  • 1a05866744 Turns out there is an elegant way to do it. JoelKatz 2011-12-30 23:33:00 -08:00
  • ecd63370f6 Updates. JoelKatz 2011-12-30 23:16:07 -08:00
  • 812df57fcf Bugfixes. JoelKatz 2011-12-30 18:49:38 -08:00
  • f6830341a0 Extra debug, bugfixes. JoelKatz 2011-12-30 18:49:30 -08:00
  • 3d82f2bb8b Updates. JoelKatz 2011-12-30 18:49:20 -08:00
  • af5f4fe2ad Identify which operation returned the error. JoelKatz 2011-12-30 18:49:04 -08:00
  • 5a38a71382 Missing startIterRows. JoelKatz 2011-12-30 18:48:29 -08:00