Commit Graph

  • 6f23c44152 Fix a few cases where SHAMap nodes don't get correctly written. When we fetch a node from the database, we artificially mark it "old" so modifications are saved. New nodes are added to the dirty node tray if it is armed. JoelKatz 2012-10-16 11:48:49 -07:00
  • 68b8360cda Hashes for transaction nodes with metadata were miscomputed. This may cause broken nodes not to stay synched with working nodes. JoelKatz 2012-10-16 11:47:42 -07:00
  • 2ebf8a7968 Cleanup. JoelKatz 2012-10-16 11:47:01 -07:00
  • 4a945629f2 Merge branch 'master' of github.com:jedmccaleb/NewCoin jed 2012-10-16 11:37:17 -07:00
  • 09f3b5db54 Rework how dirty SHAMap nodes are flushed to disk. The existing code had a bug that could cause nodes to be modified before they were written to disk. JoelKatz 2012-10-16 11:16:07 -07:00
  • afe016415e Ensure all dirty SHA nodes are fully written before writing the ledger header. To avoid a performance penalty, write accountstate nodes while we're waiting. JoelKatz 2012-10-16 06:53:06 -07:00
  • 599ebe3c61 Write ledger dirty SHA nodes before ledger header. JoelKatz 2012-10-16 06:43:34 -07:00
  • 83cfc7a3df Make sure we clear the 'need network ledger' flag if we jump ledgers during consensus. JoelKatz 2012-10-16 06:10:13 -07:00
  • 21c4c22eda Add functions to check and clear the "need network ledger" flag. JoelKatz 2012-10-16 06:09:43 -07:00
  • 81e30be001 Include whether we're waiting for a network ledger in the server_info output. JoelKatz 2012-10-16 06:09:26 -07:00
  • c05e42ccb7 Change "deferred proposal" to "stored". Complete move to NetworkOPs. JoelKatz 2012-10-16 05:28:41 -07:00
  • 94d607def0 Move deferred proposals to network ops. Include the last closed ledger in proposals. Call handleLCL even if we happen to jump our notion of the network's last closed ledger to the ledger we had as our locally last-closed ledger. JoelKatz 2012-10-16 05:27:48 -07:00
  • 84ef7dff0f Support for the new transaction meta types. JoelKatz 2012-10-16 05:05:36 -07:00
  • 1f58c4326d In consensus process, if we don't have the LCL, only *de*mote to tracking. Don't promote to tracking. JoelKatz 2012-10-16 05:05:15 -07:00
  • b6dc333b68 Add a 'sort' function to an STArray. They can be used in cases where order is significant or where they're sorted. JoelKatz 2012-10-16 03:52:46 -07:00
  • 9c31daad08 Disallow negative amounts for CreditSet. Arthur Britto 2012-10-15 20:36:14 -07:00
  • b0c1062591 Merge branch 'master' of github.com:jedmccaleb/NewCoin Arthur Britto 2012-10-15 17:11:26 -07:00
  • e513ef177f WS: Fix status of broadcasted transactions. Arthur Britto 2012-10-15 17:11:13 -07:00
  • 856b36086f Merge branch 'master' of github.com:jedmccaleb/NewCoin jed 2012-10-15 16:15:19 -07:00
  • ac60bfbd43 windows jed 2012-10-15 16:15:07 -07:00
  • 36f6c4dac0 Merge branch 'master' of github.com:jedmccaleb/NewCoin JoelKatz 2012-10-15 15:00:00 -07:00
  • d3dfc5af1a Remove extraneous header file. JoelKatz 2012-10-15 14:59:46 -07:00
  • 0cf9fdb4d8 Merge branch 'master' of github.com:jedmccaleb/NewCoin Arthur Britto 2012-10-15 14:23:05 -07:00
  • 3d97ccc34f RPC add inLedger to account_tx. Arthur Britto 2012-10-15 14:22:55 -07:00
  • 42d7813046 Put json time as unix time. Arthur Britto 2012-10-15 14:22:07 -07:00
  • 8e91202b1d Merge branch 'master' of github.com:jedmccaleb/NewCoin jed 2012-10-15 13:49:53 -07:00
  • 0030845572 windows jed 2012-10-15 13:49:41 -07:00
  • de71645351 Log whether we actually couldn't find the ledger or if the sequence was incorrect. JoelKatz 2012-10-15 10:35:57 -07:00
  • 194f61d4e2 Hopefully a fix for the "stuck in neverending consensus" bug Jed reported. JoelKatz 2012-10-15 08:56:25 -07:00
  • b9ec8e2add Slight logging improvements. JoelKatz 2012-10-15 08:56:15 -07:00
  • debe1b4741 Check ledger sanity. JoelKatz 2012-10-15 04:13:26 -07:00
  • a145bf2d36 Extra sanity checks. JoelKatz 2012-10-15 04:13:15 -07:00
  • 862b2c5aef Cleanups. JoelKatz 2012-10-15 04:12:48 -07:00
  • 863b082e32 Move the logging a bit earlier. JoelKatz 2012-10-15 04:12:34 -07:00
  • bc040e0b91 Root node is not always an inner node. JoelKatz 2012-10-15 04:12:20 -07:00
  • 83a2b0d884 Cleanups. Extra asserts. JoelKatz 2012-10-15 03:50:14 -07:00
  • 65395ea971 Add some sanity checks. JoelKatz 2012-10-15 03:48:45 -07:00
  • 1214be1f22 Remove some chatty debug. JoelKatz 2012-10-15 03:48:31 -07:00
  • 33017a35a8 Extra sanity checks. JoelKatz 2012-10-15 03:47:23 -07:00
  • 0309105948 Cleanup JoelKatz 2012-10-15 03:13:51 -07:00
  • 633cf60836 Remove unneeded debug JoelKatz 2012-10-15 03:13:42 -07:00
  • 357245b595 Fix a bug that would cause a write spinout. JoelKatz 2012-10-15 03:08:42 -07:00
  • d273ac6e76 Fix a bug that could prevent a close time consensus from being recognized. JoelKatz 2012-10-15 03:04:56 -07:00
  • db0d9447cd Write out objects sooner so we're more likely to have them after a crash. JoelKatz 2012-10-15 00:46:08 -07:00
  • 3872cbbca0 Fix the dirty node tracking logic JoelKatz 2012-10-15 00:45:57 -07:00
  • 353bf532e4 Remove two FIXME's that have been fied. JoelKatz 2012-10-15 00:45:10 -07:00
  • 1c9573a972 Clean up the writer thread. JoelKatz 2012-10-14 23:26:32 -07:00
  • ce24ae1ef9 Don't store the temp root node (that represents an empty map) to the db. Improve fetchRoot logging. JoelKatz 2012-10-14 23:25:46 -07:00
  • 1005313ed8 Make sure to write the root node of the genesis ledger to the database. JoelKatz 2012-10-14 23:25:15 -07:00
  • 9e84bb38a8 Add new 'isEmpty' function to find empty inner nodes. JoelKatz 2012-10-14 23:14:17 -07:00
  • de5321e51c Cleanups. JoelKatz 2012-10-14 23:03:23 -07:00
  • b326852954 Return true from canonicalize even if we refreshed the data. JoelKatz 2012-10-14 22:40:48 -07:00
  • 573c601273 Extra debug JoelKatz 2012-10-14 21:33:03 -07:00
  • 032ce72d00 Improve logging. Walk the initial ledger. JoelKatz 2012-10-14 21:32:52 -07:00
  • 9f97307f99 Add 'walkMap' function. JoelKatz 2012-10-14 21:32:38 -07:00
  • f286621d17 Add 'walkLedger' function. JoelKatz 2012-10-14 21:32:23 -07:00
  • 319c6fbe54 Output the hash of a node we can't find when we log it. JoelKatz 2012-10-14 21:32:04 -07:00
  • 5e44599456 Switch to new conditional logging. JoelKatz 2012-10-14 18:28:47 -07:00
  • 9ff0ab174b Log warnings in various deserialization failure cases. JoelKatz 2012-10-14 18:28:01 -07:00
  • 879a763fe2 Cleanup. JoelKatz 2012-10-14 18:27:42 -07:00
  • 41e105eddd Whitespace changes. JoelKatz 2012-10-14 18:27:26 -07:00
  • 50ce067d04 Whitespace changes. JoelKatz 2012-10-14 18:27:19 -07:00
  • bd4ef3598b Clean up saveAcceptedLedger. Add some warning logs. Add 'getSTransaction'. JoelKatz 2012-10-14 18:26:38 -07:00
  • 0e6ea3bb4a Double check TMNEThread operations. JoelKatz 2012-10-14 18:25:50 -07:00
  • 58523b7c1b Add 'get' functions to TMNEThread JoelKatz 2012-10-14 18:25:29 -07:00
  • d98e415107 JS: Fix offer_create. Arthur Britto 2012-10-14 02:50:34 -07:00
  • d5c9cc78c7 JS: Fix transaction creation. Arthur Britto 2012-10-14 02:23:52 -07:00
  • 5fc3d98ef5 UT: Clean up and faster tearDown. Arthur Britto 2012-10-14 01:31:46 -07:00
  • 085ff2af22 UT: Split up tests. Arthur Britto 2012-10-13 19:42:28 -07:00
  • 1c2d16f1ad Rework remote.js to be event oriented. Arthur Britto 2012-10-13 19:38:19 -07:00
  • fbd8f9deb7 Change "id" to "hash", JoelKatz 2012-10-12 21:59:17 -07:00
  • 1030d80e1f Merge branch 'master' of github.com:jedmccaleb/NewCoin Arthur Britto 2012-10-12 21:15:01 -07:00
  • 41cbcda510 JS: Better flag handling for send. Arthur Britto 2012-10-12 21:14:32 -07:00
  • 7495fe70cc WS: Clean up json responses and report engine submission results. Arthur Britto 2012-10-12 21:14:04 -07:00
  • cc4bda6bf6 Cosmetic. Arthur Britto 2012-10-12 21:12:05 -07:00
  • 9b2db30226 Cosmetic changes newcoin->ripple. JoelKatz 2012-10-12 20:32:19 -07:00
  • 730c6f3a52 Bugfix in STAmount::compare JoelKatz 2012-10-12 20:19:36 -07:00
  • 6fc5dc1189 Spelling error. JoelKatz 2012-10-12 20:19:28 -07:00
  • 08acbcd839 Fix the sense. JoelKatz 2012-10-12 19:58:41 -07:00
  • bfee7a3082 I apologize for the disaster that was toUInt64. It has been nuked from orbit. JoelKatz 2012-10-12 18:24:32 -07:00
  • 19b518a0af Quick fix for the bug that was causing ledgers to diverge. JoelKatz 2012-10-12 17:01:37 -07:00
  • b2481f3c49 Rename the protocol from newcoin to ripple. Arthur Britto 2012-10-12 15:53:59 -07:00
  • 2af15db40a Rename everything from newcoin to ripple except the protocol buffers. Arthur Britto 2012-10-12 15:48:33 -07:00
  • 237ff73916 Bump protocol version. Arthur Britto 2012-10-12 15:12:56 -07:00
  • fcd88f12fc UT: Adjust to new address encoding. Arthur Britto 2012-10-12 15:10:39 -07:00
  • 90543550d2 JS: Adjust to new address encoding. Arthur Britto 2012-10-12 15:10:09 -07:00
  • 59ccfb315d Change leading character for addresses from "i" to "r". Arthur Britto 2012-10-12 15:09:22 -07:00
  • edabc770aa Cosmetic. Arthur Britto 2012-10-12 15:08:56 -07:00
  • d7cd404c12 JS: rename BigInteger consts to start bi_. Arthur Britto 2012-10-12 14:24:22 -07:00
  • 31b1aab851 UT: enable ledger_closed test. Arthur Britto 2012-10-12 14:23:42 -07:00
  • c4eaeb6340 JS: Add clone() and copyTo() to Amount and friends. Arthur Britto 2012-10-12 12:56:51 -07:00
  • efbc4b3cbd Merge branch 'master' of github.com:jedmccaleb/NewCoin JoelKatz 2012-10-12 09:22:41 -07:00
  • ab01c7c4a7 I believe our comparisons were broken for STAmount, for example, 0 XNS would compare greater than 1 XNS! For non-native currencies, -2 would be greater than -1, which is wrong. This should fix it. We definitely need to make some test cases. Arthur, please look over this code and make sure I didn't miss something. JoelKatz 2012-10-12 09:21:29 -07:00
  • 8a22f5a8e8 Merge branch 'master' of github.com:jedmccaleb/NewCoin jed 2012-10-12 09:00:50 -07:00
  • 391ef2fb1f . jed 2012-10-12 08:59:51 -07:00
  • 92f004c47f A minimal, but serviceable, implemention of replying to TMGetObjectByHash queries. JoelKatz 2012-10-12 06:35:16 -07:00
  • 6ab6be13d7 Merge branch 'master' of github.com:jedmccaleb/NewCoin JoelKatz 2012-10-12 03:59:38 -07:00
  • 51c5de61d9 TMGetObjectByHash design changes. JoelKatz 2012-10-12 03:59:25 -07:00
  • 80627678e2 Merge branch 'master' of github.com:jedmccaleb/NewCoin jed 2012-10-11 22:42:29 -07:00
  • bb83bcf0d1 Revise remote.js and unit tests to use new amount.js. Arthur Britto 2012-10-11 21:41:07 -07:00