Commit Graph

4530 Commits

Author SHA1 Message Date
JoelKatz
ef3dd3ca77 Don't recompute the OrderBookDB too many times more than needed. 2013-02-13 09:31:52 -08:00
JoelKatz
ef82b050ed Fix a bug Arthur caught. 2013-02-13 08:48:51 -08:00
JoelKatz
d767da37d8 Shamelessly stolen from the 'fastertest' patch.
This makes the unit tests run about 70% faster and solves a long-standing annoyance that
running in standalone mode could contaminate your databases.
2013-02-13 05:37:15 -08:00
JoelKatz
fa2283f234 Micro-optimization. 2013-02-13 05:34:19 -08:00
JoelKatz
cf02cfd089 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-02-13 05:28:16 -08:00
JoelKatz
ca57bf8290 Don't wipe the order book while it's being used.
Fix OrderBookDB::getBooks so it can return something.
Fix some cases of the find/[] anti-pattern. (You don't need to search twice.)
2013-02-13 05:27:31 -08:00
Stefan Thomas
85f9f67865 JS: Fix Transaction#paths. 2013-02-13 13:09:36 +01:00
Stefan Thomas
1bac4cb1f2 JS: Prevent duplicate WebSocket objects. 2013-02-13 09:53:09 +01:00
JoelKatz
57a9f6afdc Logging reductions. 2013-02-13 00:09:12 -08:00
JoelKatz
25109d7298 Fix a race condition that can cause a crash on startup. 2013-02-12 23:20:20 -08:00
JoelKatz
62170d194a Suppress a warning. Micro-optimization. 2013-02-12 22:08:55 -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
1cf14d68be Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-02-12 20:40:30 -08:00
JoelKatz
cb111b6318 Path finding fixes:
Track path finding and order book creation time and latency.
Use a ledger snapshot for path finding.
You can't call getCurrentLedger from an unlocked context.
Pathfinding called from the transaction sign function held the master lock.
2013-02-12 20:39:00 -08:00
Arthur Britto
5715cf35c2 Document [path_search_size] in rippled-example.cfg. 2013-02-12 18:57:32 -08:00
Arthur Britto
ef5069a706 Make pathfinder search size configurable, reduce to 5. 2013-02-12 18:41:52 -08:00
Arthur Britto
e5b75c66a1 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-02-12 16:05:15 -08:00
Arthur Britto
7e271ce509 Pathfinding now verifies source and destination accounts exist. 2013-02-12 16:05:03 -08:00
Stefan Thomas
8a4820cf34 JS: Add some more canonical event names as alternatives.
Most JS events are infinitive, not past tense, e.g. DOM events "click",
"mouseover", "load" and Node.js events "connect", "close".
2013-02-12 18:55:02 +01:00
Stefan Thomas
5942f2dd9f JS: Handle account events through Account class. 2013-02-12 18:55:02 +01:00
JoelKatz
7d8624d0e7 Fix two minor bugs with reporting load fees. 2013-02-11 23:30:35 -08:00
Arthur Britto
61c84eba2e UT: Add test for OfferCreate respecting reserves and unfunded source. 2013-02-11 23:02:13 -08:00
Arthur Britto
046c158dfa Fix OfferCreate noticing unfunded source after fees. 2013-02-11 23:01:20 -08:00
Arthur Britto
b05c5c3892 Fix calculation of XRP available after reserve. 2013-02-11 22:59:50 -08:00
Arthur Britto
dce8a65fbc Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-02-11 22:23:52 -08:00
JoelKatz
92292a178b Bring some sanity to integer->STAmount constructors. 2013-02-11 22:19:21 -08:00
Arthur Britto
f425d2b1ec Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-02-11 22:02:53 -08:00
JoelKatz
33154e4ef5 Two more missing constructor bugs. Cleanup. 2013-02-11 22:01:55 -08:00
JoelKatz
9740b994a4 Tiny cleanup. 2013-02-11 21:42:02 -08:00
Arthur Britto
8501f0000b Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-02-11 21:27:53 -08:00
JoelKatz
1dedb2b190 Arthur found a missing constructor that breaks handling negative native amounts. 2013-02-11 21:24:42 -08:00
Arthur Britto
632bcafa7e Cosmetic. 2013-02-11 18:39:19 -08:00
JoelKatz
0d03c1fb4a Fix a bug that causes outbound notifications to URLs to fail. 2013-02-11 18:00:22 -08:00
JoelKatz
341d198ffe Must check sequence before checking fee and signature. Otherwise lots of bad things happen:
1) We needlessly check signatures on applied.
2) We return the wrong error code if a transaction that was already applied has an insufficient fee.
2013-02-11 16:48:52 -08:00
JoelKatz
b512ed3df2 Correctly handle local failures in the consensus transaction application process.
Local failures are not retriable.
2013-02-11 16:43:29 -08:00
JoelKatz
d0e85ff4b4 Make sure all fee schedule changes are reported to clients. 2013-02-11 14:50:15 -08:00
JoelKatz
4261b1c2d0 Quick hack to stop core dumps on shutdown. The client needs to be shutdown before
the job queue. This just prevents it from tripping.
2013-02-11 07:00:09 -08:00
JoelKatz
35eb2d71ea Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-02-11 02:34:44 -08:00
JoelKatz
3f05907f23 Fix one-liner. 2013-02-11 02:34:17 -08:00
Arthur Britto
ef4e75318f JS: Fixes for load. 2013-02-10 23:55:12 -08:00
Arthur Britto
a1a12682ab More verbose logging about subscribing. 2013-02-10 21:49:08 -08:00
Arthur Britto
a62c72d79b More verbose logging about publishing. 2013-02-10 21:48:42 -08:00
Arthur Britto
7ac4bced80 Warn if configuration has wrong number of lines when single expected. 2013-02-10 21:48:03 -08:00
Arthur Britto
fffc276d7a Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-02-10 17:14:44 -08:00
Arthur Britto
20f7a9ae6b JS: Fixes for load and add announcing load. 2013-02-10 17:13:41 -08:00
JoelKatz
4280214a94 Typo. 2013-02-10 16:57:38 -08:00
JoelKatz
a26a302476 Accept old ledgers acquired over the network at a lower priority. 2013-02-10 16:40:52 -08:00
JoelKatz
1c56e3b53a Log load fee changes. 2013-02-10 16:38:52 -08:00
JoelKatz
470123dc26 Need a way to remove a trusted node! 2013-02-10 14:21:58 -08:00
JoelKatz
9a0970e6de Fix previous commit. 2013-02-10 14:14:06 -08:00