JoelKatz
e56f7a8689
Fix a rare race condition.
2013-03-14 09:48:43 -07:00
Arthur Britto
38ab300310
Minor cleanup.
2013-03-13 22:28:15 -07:00
Arthur Britto
91f7bab7e4
Don't let people send more XRP than they have.
2013-03-13 22:14:24 -07:00
JoelKatz
7bd96e9f2f
Make the transaction application parameters accessible from the LES.
2013-03-13 21:59:43 -07:00
Stefan Thomas
8fdd637828
JS: Hold requests until connection is established.
...
This will have to change when we add multiple server support, but it does the
trick for now.
2013-03-13 19:15:37 +01:00
Stefan Thomas
7b60e3f87b
JS: Fix orderbook subscribe on (re)connect.
2013-03-13 18:54:28 +01:00
Stefan Thomas
882f7d4305
JS: Don't count OfferCancel transactions as trades. Hurp Durp.
2013-03-13 18:54:08 +01:00
Stefan Thomas
2b3a39ddd9
JS: Better deal with buggy WebSocket implementations.
2013-03-13 17:57:54 +01:00
Stefan Thomas
1a7d542396
JS: Factored server-related logic out into separate Server class.
2013-03-13 17:40:55 +01:00
Stefan Thomas
0d5b2eb469
JS: state_now -> snapshot, both_sides -> both
2013-03-13 09:36:01 +01:00
JoelKatz
f1e2e2f510
Reduce logging.
2013-03-12 22:43:48 -07:00
JoelKatz
77694b7d72
Change deprecated "start_now" to "state_now" to work with the current client
...
which should switch to "snapshot" ASAP.
2013-03-12 22:19:23 -07:00
JoelKatz
2248d92a33
Wrap all peer socket accesses in a strand. This is needed to prevent a fatal
...
race condition in composed intermediary functions.
A few ledger acquire cleanups.
2013-03-12 16:53:30 -07:00
JoelKatz
c85fc7ef64
Bug that crashed client machine.
2013-03-12 15:57:25 -07:00
Arthur Britto
983175fa61
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2013-03-12 15:45:56 -07:00
Arthur Britto
ee926f3a40
More parameter checking for RPC.
2013-03-12 15:45:44 -07:00
JoelKatz
e01fd6ce60
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2013-03-12 15:30:16 -07:00
JoelKatz
dd387b840a
Fix count
2013-03-12 15:29:56 -07:00
Arthur Britto
8a6e477b5e
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2013-03-12 15:18:24 -07:00
Arthur Britto
5a08930d65
Better parameter checking for RPC subscribe books.
2013-03-12 15:17:45 -07:00
JoelKatz
e9a02882f1
Don't let ledger fetching go too fast.
2013-03-12 15:17:26 -07:00
JoelKatz
0b52905cb7
Fix another thread race in the websocketpp data code.
2013-03-12 14:12:48 -07:00
JoelKatz
e31eb67b10
Fix typo.
2013-03-12 14:05:33 -07:00
JoelKatz
455f60feae
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2013-03-12 14:03:32 -07:00
JoelKatz
ba7d40ad63
TransID cannot be primary key.
2013-03-12 14:02:48 -07:00
Arthur Britto
f4a5c23f88
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2013-03-12 12:53:32 -07:00
Arthur Britto
04a825298e
Clean up and secure subscribe books.
2013-03-12 12:53:06 -07:00
JoelKatz
b4ba979ad7
Improve documentation.
2013-03-12 12:32:32 -07:00
Arthur Britto
ae26c6cc59
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2013-03-12 11:41:14 -07:00
Arthur Britto
d5c52df10d
Revise url subscribe username and password API
2013-03-12 11:41:04 -07:00
JoelKatz
c9161b9b1c
waitWrite could cause a deadlock.
2013-03-12 11:30:23 -07:00
JoelKatz
e9324204ef
Don't allow subscribe to invalid market.
2013-03-12 09:51:37 -07:00
JoelKatz
1d4cb0c943
Missing validity check.
2013-03-12 09:48:35 -07:00
JoelKatz
80233579f1
Add a function to check if a currency/issuer/currency/issuer set
...
defines a valid order book.
2013-03-12 09:42:38 -07:00
JoelKatz
7285f98972
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2013-03-12 09:25:17 -07:00
JoelKatz
b3c0b7b51f
Mark a critical FIXME.
2013-03-12 09:24:55 -07:00
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
Arthur Britto
1aef1ca4f6
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2013-03-11 18:59:36 -07:00