Commit Graph

68 Commits

Author SHA1 Message Date
JoelKatz
bdf1ed2584 Add a getLedgerNext that takes into account changes in the LES. 2013-04-16 11:42:04 -07:00
JoelKatz
b7484e9264 Make sure we don't use an invalid LES. (Adds asserts.) 2013-04-13 20:25:06 -07:00
JoelKatz
8bf3f4f2e3 Use LES::duplicate function instead of copy/bumpSeq. (It does the same thing.) 2013-04-13 19:39:35 -07:00
JoelKatz
199029b8b5 Remove mLedger from PathState. It's not used and it's scary (because an LES could amend it). 2013-04-13 19:17:32 -07:00
JoelKatz
1f5d380546 Mark some code that doesn't do what it might appear to. 2013-04-13 19:11:55 -07:00
Arthur Britto
4cf9cae063 More logging for RippleCalc. 2013-04-13 13:11:27 -07:00
JoelKatz
bd06b22384 Use the fees that apply, not the transfer rate. 2013-04-13 02:52:58 -07:00
JoelKatz
c0049542a2 Correctly handle one-element paths. Don't call setCanonical, it's broken. 2013-04-08 17:44:04 -07:00
Arthur Britto
0dadf53167 Fix pathfinding mis-setting currency on order book out. 2013-03-30 15:49:58 -07:00
Arthur Britto
97d73de168 Require path nodes for offers to specify a currency or issuer change. 2013-03-30 13:46:34 -07:00
Arthur Britto
bfb69664ff Major pathfinding fixes. 2013-03-26 21:19:46 -07:00
Arthur Britto
7074842fbc Improve ripple rounding. 2013-03-20 20:10:57 -07:00
Arthur Britto
837de8a7a7 Fix ripple through micro offer reverse. 2013-03-20 18:32:34 -07:00
Arthur Britto
af8418c89c #27 Error rippling without auth. 2013-03-20 01:50:22 -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
Arthur Britto
22b74c6d29 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-03-08 10:30:30 -08:00
Arthur Britto
78b31c15c0 Cosmetic. 2013-03-08 10:30:18 -08:00
jed
2b2e93eef6 stray EOF and spelling 2013-03-07 23:19:22 -08:00
Arthur Britto
5e6f399b9d Unfund offers with microscopic amounts. 2013-03-07 20:54:41 -08:00
Arthur Britto
45a6c5938c Fix RippleCalc on offers with bad amounts. 2013-03-07 18:21:23 -08:00
Arthur Britto
f8799a6558 Really fix KillOrFill. 2013-03-07 17:41:45 -08:00
Arthur Britto
15942616e8 Fix FillOrKill kill handling of found unfunded orders. 2013-03-07 16:41:57 -08:00
Arthur Britto
394c7be704 Fix pathloop detech in RippleCalc. 2013-03-07 15:30:30 -08:00
JoelKatz
e70a532fd8 Temporary loop limit. 2013-03-07 12:18:40 -08:00
JoelKatz
ee3cb2cece Temporary hotfix until this can be looked at 2013-03-07 01:21:10 -08:00
JoelKatz
f88bdcfea7 Emergency temporary fix. 2013-03-06 23:15:31 -08:00
JoelKatz
6b401d4de7 Control logging spew. 2013-03-06 21:17:06 -08:00
JoelKatz
c821ed8d84 Reduce loop count. 2013-03-06 20:58:38 -08:00
JoelKatz
5f66791280 Cleanups. 2013-03-06 17:41:17 -08:00
JoelKatz
bd3de01b0e Emergency temporary fix. 2013-03-06 17:34:08 -08:00
JoelKatz
740513fc38 Don't spin forever. 2013-03-06 14:07:45 -08:00
JoelKatz
996f320788 Typo 2013-03-05 23:01:30 -08:00
JoelKatz
0ac437de5a Log cleanup. 2013-03-05 23:01:00 -08:00
JoelKatz
3f6cb78158 Fix a bug where we negate the balance during pathfinding. 2013-03-05 15:17:37 -08:00
JoelKatz
ce401dffb6 Speed up path finding by about 35%. 2013-03-04 18:57:44 -08:00
Arthur Britto
deebd07814 Add checking for invalid offers in ledger. 2013-03-04 15:14:17 -08:00
JoelKatz
df9884f48e Cleanups. 2013-03-03 23:52:13 -08:00
JoelKatz
50be7dd7e4 Some quick changes to improve pathfinding performance. (20% faster roughly) 2013-02-27 15:17:06 -08:00
JoelKatz
57a9f6afdc Logging reductions. 2013-02-13 00:09:12 -08:00
JoelKatz
92292a178b Bring some sanity to integer->STAmount constructors. 2013-02-11 22:19:21 -08:00
Arthur Britto
ac916ad841 Output computed paths for RPC ripple_path_find. 2013-02-06 14:53:32 -08:00
Arthur Britto
1b27d2bc10 Try to improve consumed and multi-quality handling for ripple calc. 2013-02-02 19:10:01 -08:00
Arthur Britto
75d935e0df Merge tepPARTIAL into tecCLAIMED. 2013-01-03 13:04:07 -08:00
Arthur Britto
f3b216b39f Handle errors from ripple state creating. 2012-12-25 16:42:33 -08:00
Arthur Britto
7636e5f388 Remove obsolete TERs in prep for ledger wipe. 2012-12-24 16:06:50 -08:00
Arthur Britto
194053c87e Add and move to new tecCLAIM result codes. 2012-12-23 15:52:59 -08:00
Arthur Britto
895a176611 Make pathfinder return best quality paths. 2012-12-12 15:41:47 -08:00
Arthur Britto
4752c9ff4e UT: Fix payment test. 2012-12-11 21:23:56 -08:00
Arthur Britto
8c6419e65b Work in progress on pathfind. 2012-12-11 19:47:53 -08:00