Commit Graph

139 Commits

Author SHA1 Message Date
JoelKatz
5cc9314d03 Add a framework for detecting databases that need updating.
Put transaction from account_tx command in transaction application sequence.
CAUTION: This modifies your databases and will cause a delay on your next startup.
2013-04-01 19:03:28 -07:00
JoelKatz
f88d6804a3 Cache the JSON of an ALTransaction. 2013-03-29 10:53:34 -07:00
JoelKatz
e239157480 Oops! 2013-03-27 18:30:10 -07:00
JoelKatz
7344ab0148 Missing from previous commit. 2013-03-27 18:15:49 -07:00
JoelKatz
878caf1989 Fix count/limit logic. 2013-03-27 18:14:53 -07:00
JoelKatz
20d565fd3b Cleanups. 2013-03-27 17:45:43 -07:00
Arthur Britto
09633c5f04 Fixes for account_tx. 2013-03-27 17:26:13 -07:00
Arthur Britto
79b83bf0ef Minor cleanup. 2013-03-27 14:48:22 -07:00
Arthur Britto
e7aa878019 Merge branch 'paging2' of github.com:jedmccaleb/NewCoin
Conflicts:
	src/cpp/ripple/NetworkOPs.cpp
2013-03-27 13:28:09 -07:00
JoelKatz
ff1742a068 Fix order of account transactions returns. 2013-03-27 12:38:21 -07:00
JoelKatz
a65caddbb7 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-03-26 11:42:06 -07:00
JoelKatz
694c97d2fb Set the network state timer a bit later. 2013-03-26 11:40:45 -07:00
jatchili
c5f82da409 Sort order, limit, and offsets work. Still to do: detecting when we've requested too many ledgers. 2013-03-25 17:09:15 -07:00
jatchili
fae1b0f71a sql query helper functionc\ 2013-03-25 13:26:12 -07:00
Arthur Britto
f635980330 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-03-23 14:36:14 -07:00
Arthur Britto
837ec2b69d Remove limits on RPC account_tx for admins. 2013-03-23 14:36:07 -07:00
JoelKatz
7e5d4b80d9 Parenthesis. 2013-03-22 13:37:02 -07:00
JoelKatz
f6172d3d45 subLedger should report the validated ledger not the closed one. 2013-03-22 13:34:52 -07:00
JoelKatz
cd14be1afb Better logging of untrusted validations. (To make sure there's no bug.) 2013-03-21 06:03:47 -07:00
JoelKatz
c961ae5815 Ensure stable order in account tx responses. 2013-03-20 16:53:39 -07:00
JoelKatz
125c5273a6 Dispatch transaction from job queue, not I/O service. Mark a FIXME where we don't do this. 2013-03-18 03:10:20 -07:00
JoelKatz
b9456c8fd7 Except when interacting with boost, use std::function and std::bind
when C++11 is available. See: http://stackoverflow.com/questions/14617835
2013-03-16 03:27:43 -07:00
JoelKatz
d4323f2ef2 Fix a case where a node that closed slightly ahead of other ledgers can
think it's out of sync with the network and cause it to jump backwards one
ledger, causing it to be out of sync because the network was about to catch
up to it.
2013-03-14 11:48:29 -07:00
JoelKatz
7bd96e9f2f Make the transaction application parameters accessible from the LES. 2013-03-13 21:59:43 -07: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
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