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
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
c2e072b431
Extra logging.
2013-03-11 15:31:32 -07:00
JoelKatz
f4e22a8968
Use emplace where we can. (On inserts into unordered maps.)
2013-03-11 03:58:27 -07:00
JoelKatz
23fa7ab67e
Don't try to print ledger sequences using %d
2013-03-11 02:18:32 -07:00
JoelKatz
8d660736a8
Fix cases where we don't relay transactions.
2013-03-10 18:27:02 -07:00
JoelKatz
6f811f1e96
Back out some Ledger::ref uses that scare me.
2013-03-10 16:03:23 -07:00
JoelKatz
ec77707c39
Make clear that transJson can only be used to publish transactions.
...
Put a 'validated' field in published transactions.
2013-03-10 15:32:02 -07:00
Arthur Britto
54e776fe16
Another valid_ledgers --> validated_ledgers.
2013-03-09 15:35:43 -08:00
Arthur Britto
56dd20bc28
Change ledger_time to ripple epoch in ledgerClosed messages.
2013-03-08 18:17:43 -08:00
JoelKatz
e7fb4edf36
Add valid ledgers to ledger stream.
2013-03-08 17:57:43 -08:00
JoelKatz
366a5795a8
Fix a bug in account_tx that Stefan reported.
2013-03-06 13:25:40 -08:00
JoelKatz
7f29336d0b
Fix crash when using open ledger to take initial position.
2013-03-05 23:38:05 -08:00
JoelKatz
ecb9e7db26
Enforce validation quorum. Default to quorum of 2 if started with --net.
2013-03-05 09:23:11 -08:00
Arthur Britto
6f5ce670ea
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2013-03-04 19:25:17 -08:00
Arthur Britto
3a8d85d9c4
Publish transaction due to subscribe accounts as type "transaction".
2013-03-04 19:24:20 -08:00
JoelKatz
d1169ee86d
Make sure all load sources are named.
2013-03-04 16:22:09 -08:00
JoelKatz
51db2d2cd7
Reprocess accepted ledgers once. Track metadata, transaction data, and affected accounts.
...
Process to SQL database and publish from this structure.
Include number of transactions in ledger publish info.
Publish transactions in applied order.
2013-03-04 13:59:53 -08:00
Arthur Britto
49458bff57
Add support for transfer fees to RPC book_offers.
2013-03-03 21:31:34 -08:00
Arthur Britto
da184a97c4
Fix RPC book_offers handling of negative balances and self-issued IOUs.
2013-03-03 20:52:28 -08:00
JoelKatz
f0c029ef0d
Rework the way load is accounted to be more accurate and more specific.
2013-03-03 16:24:47 -08:00
JoelKatz
1c79ccc446
Remove dead code.
2013-03-03 02:52:57 -08:00
Arthur Britto
768007cee6
Make RPC book_offers usuable.
...
- Missing: transfer fees
- Adds taker support
- Adds taker_gets_funded and taker_pays_funded
- Adds don't return unfunded offers
- Adds follow offer owner balances.
2013-03-02 23:55:45 -08:00
Arthur Britto
66590c65c1
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2013-03-01 20:30:36 -08:00
Arthur Britto
2699f20f3f
First cut at RPC book_offers.
2013-03-01 20:30:25 -08:00
JoelKatz
d31fa25b95
Fix a rare race condition involving subscribing and unsubscribing.
2013-03-01 17:01:44 -08:00
Arthur Britto
301909fa01
Fix framework for RPC book_offers.
2013-03-01 13:38:37 -08:00
JoelKatz
09d8a454c2
Order book cleanups.
2013-02-28 11:21:13 -08:00
JoelKatz
bc21139198
If we don't have a ledger we should have, make sure we mark it missing so the
...
fetch engine will work on it.
2013-02-27 14:18:07 -08:00
JoelKatz
bd3d28c2fa
Fix a half-second race window during which a proposal could cause us to
...
enter the consensus process with the wrong last closed ledger.
2013-02-26 14:01:46 -08:00
JoelKatz
c570cca15e
Rewrite the notification code to use smart pointers. This fixes several
...
fatal race conditions in notifications. This makes failure to remove a
notification non-fatal (it will remove itself harmlessly when an attempt is
made to notify it).
2013-02-26 00:11:23 -08:00
JoelKatz
923446fb78
Fix 'tx' output format. Begin supporting a binary output format.
...
This adds support for binary in 'tx' and 'account_tx' commands.
https://ripple.com/wiki/FormatChange
2013-02-25 12:51:06 -08:00
JoelKatz
167d13cf40
I think this is the underlying issue. In some cases where the tx return value wasn't
...
full success, we applied to our open ledger but didn't relay. This caused disputes
resolved only by dispute relaying.
2013-02-24 16:48:54 -08:00
JoelKatz
47425827d3
Reduce logging.
2013-02-22 09:33:10 -08:00
JoelKatz
1b01114d54
Cosmetic: Don't report a nonsense age in the human-readable server_info
2013-02-21 19:34:38 -08:00
JoelKatz
6357a906d3
Most recent data first.
2013-02-21 12:48:25 -08:00
JoelKatz
2d1b98609e
Temporarily limit getAccountTx to 200 transactions.
2013-02-21 12:36:16 -08:00
JoelKatz
2e12ffac57
Allow a lot more commands to take advantage of the immutable SLE acceleration.
...
Allow faster operations on the open ledger by using many smaller freezes rather than one big one.
2013-02-21 09:57:42 -08:00
JoelKatz
73c795a4b2
I guess I couldn't get away with this.
2013-02-21 02:52:22 -08:00
JoelKatz
25c52b1a4d
Use getSLEi to get an immutable SLE. This lets us cache them.
2013-02-20 12:00:38 -08:00
JoelKatz
84a2af37f9
Add 'getValidatedSeq'.
2013-02-17 16:49:24 -08:00
JoelKatz
862dbd7234
Add NetworkOPs::isValidate functions to check if a ledger is fully validated.
2013-02-15 19:01:48 -08:00
JoelKatz
73fe72bfa3
Track whether a message is a broadcast. If a broadcast, log at a lower level.
2013-02-12 22:05:46 -08:00
JoelKatz
7d8624d0e7
Fix two minor bugs with reporting load fees.
2013-02-11 23:30:35 -08:00
JoelKatz
d0e85ff4b4
Make sure all fee schedule changes are reported to clients.
2013-02-11 14:50:15 -08:00
Arthur Britto
a62c72d79b
More verbose logging about publishing.
2013-02-10 21:48:42 -08:00
JoelKatz
4abdb34c20
Trivial cleanups.
2013-02-09 16:17:12 -08:00
JoelKatz
18167be5e3
Add new 'consensus_info' RPC command to help troubleshoot consensus convergence issues.
2013-02-09 14:21:57 -08:00
jed
1a4e0d6868
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2013-02-06 09:05:43 -08:00
JoelKatz
4f40042090
Remove an extraneous cast.
2013-02-06 02:20:54 -08:00