Commit Graph

4959 Commits

Author SHA1 Message Date
Stefan Thomas
7a65dbdcf4 JS: Emit orderbook events when trades happen. 2013-03-12 13:59:21 +01:00
Stefan Thomas
0963263f15 JS: Removed some debug code. 2013-03-12 13:19:12 +01:00
Stefan Thomas
51f47a8974 JS: Realtime orderbooks. 2013-03-12 13:09:55 +01:00
Stefan Thomas
049f92e882 Clean up orderbook-related variable naming.
Also adds the ability to unsubscribe from both sides of an orderbook
simultaneously. Adds better error handling.
2013-03-12 13:09:51 +01:00
Stefan Thomas
8792746ae1 JS: Fix Currency#is_valid.
Currency.is_valid("USD") returned false, because "USD" is NaN (not a Number).

We should not use NaN as a stand-in value, since it means "not a *JavaScript*
number", whereas our meaning really is "not a BigInteger object". So we should
be using null.
2013-03-12 13:09:51 +01:00
JoelKatz
145eed041d Instrument HOS::retrieve. 2013-03-12 00:56:13 -07:00
JoelKatz
b9433d4780 Correct chatty log. 2013-03-12 00:53:02 -07:00
JoelKatz
8874dd3f01 Remove chatty debug. 2013-03-11 23:33:09 -07:00
JoelKatz
52fb8e1f82 Typo. 2013-03-11 23:33:02 -07:00
JoelKatz
a59e0f940b Fix. 2013-03-11 23:32:40 -07:00
JoelKatz
1cd65213d8 Simplify and fix possible bugs in the way accepted ledgers are written
to SQL. Set up for ledger scraping.
2013-03-11 23:20:26 -07:00
JoelKatz
01655f4fe1 Remove abort. 2013-03-11 22:20:05 -07:00
JoelKatz
39d85b7b9e Missing lock. 2013-03-11 22:14:55 -07:00
JoelKatz
b51a9fc371 SQLite's query optimizer handles an INNER JOIN much better than a nested SELECT. 2013-03-11 18:42:21 -07:00
JoelKatz
566b36715d Simplify the ledger acquire logic. This fixes a few bugs related to it including
the issue if you remove the ledger DB.
2013-03-11 17:57:12 -07:00
JoelKatz
2c88637cf9 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-03-11 15:31:45 -07:00
JoelKatz
c2e072b431 Extra logging. 2013-03-11 15:31:32 -07:00
JoelKatz
774c38f99c Fix tie breaking in ledger validation during preClose consensus phase. 2013-03-11 15:30:55 -07:00
JoelKatz
19ee5c6c22 Remove incorrect comment. 2013-03-11 15:30:41 -07:00
Arthur Britto
4407415692 Update CallRPC for revised RPC ledger. 2013-03-11 12:04:36 -07:00
JoelKatz
87de433732 Fix the ledger selection bug. 2013-03-11 09:21:52 -07:00
JoelKatz
c26726eff3 Bugfix for ledger acquired but not written to database with txns. 2013-03-11 09:19:54 -07:00
JoelKatz
6929579660 I like parentheses. 2013-03-11 09:05:13 -07:00
JoelKatz
58b6466a2d Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-03-11 07:22:57 -07:00
JoelKatz
489458364e Fix a broken scoped unlock. 2013-03-11 07:22:42 -07:00
JoelKatz
f4e22a8968 Use emplace where we can. (On inserts into unordered maps.) 2013-03-11 03:58:27 -07:00
Stefan Thomas
384da92474 Revert SJCL downgrade. 2013-03-11 11:13:17 +01:00
Arthur Britto
77ff48ebf2 JS: Make transaction signing not require remote. 2013-03-11 03:04:22 -07:00
Arthur Britto
ddf0d7c2f9 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-03-11 02:58:11 -07:00
Arthur Britto
4cc941d77e ripple-lib version 0.7.3 2013-03-11 02:58:04 -07:00
Arthur Britto
a874b02183 Add command line signing tool. 2013-03-11 02:54:35 -07:00
JoelKatz
f3b837eea6 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-03-11 02:21:36 -07:00
JoelKatz
23fa7ab67e Don't try to print ledger sequences using %d 2013-03-11 02:18:32 -07:00
JoelKatz
79e8734c54 Remove broken code. (Was commented out anyway.) 2013-03-11 02:14:25 -07:00
Stefan Thomas
b31c2ea601 JS: Orderbook: Get current state when subscribing. 2013-03-11 09:29:05 +01:00
Stefan Thomas
99c2f44cfa JS: Fix missing boundary bytes in PathSet serialization. 2013-03-11 09:29:05 +01:00
Stefan Thomas
70711944ac JS: Utility function to convert ripple epoch to JS timestamp. 2013-03-11 09:29:05 +01:00
JoelKatz
204fed2fba A few last details. 2013-03-11 01:00:41 -07:00
JoelKatz
39f2b95140 More convenience functions. 2013-03-11 00:59:57 -07:00
JoelKatz
495ddae438 Fixes. 2013-03-11 00:44:55 -07:00
JoelKatz
e287000438 Fixes. 2013-03-11 00:40:26 -07:00
JoelKatz
275a4a22d7 Fixes. 2013-03-10 21:55:33 -07:00
JoelKatz
466ac77527 Don't round so aggressively. 2013-03-10 21:36:00 -07:00
JoelKatz
a85b38e8e3 Bugfixes. 2013-03-10 21:33:59 -07:00
JoelKatz
31134b06b1 Only round on first scaling divide. 2013-03-10 21:30:07 -07:00
JoelKatz
33bb64e4d7 Missing from previous commit. 2013-03-10 21:24:07 -07:00
JoelKatz
27a7ac75de Add, subtract, multiply, and divide with specified rounding direction.
CAUTION: This is still untested and undebugged code. Only divRound
has been even slightly tested.
2013-03-10 21:22:01 -07:00
JoelKatz
92318a47bd Log when we would disconnected, but don't actually disconnect for now. 2013-03-10 19:15:28 -07:00
JoelKatz
4b449b5c99 Fix sign. 2013-03-10 19:07:11 -07:00
JoelKatz
9cafb7a2a6 Fix load manager buglets. 2013-03-10 19:05:22 -07:00