JoelKatz
|
632ce3d8bd
|
Use isSet rather than isValid to avoid needless crypto operations.
|
2013-04-14 03:16:42 -07:00 |
|
JoelKatz
|
f561acd4c8
|
add 'isSet' to tell if a RippleAddress is non-empty.
|
2013-04-14 03:16:27 -07:00 |
|
JoelKatz
|
1058df99ea
|
Reject objects with duplicate keys.
|
2013-04-13 21:53:35 -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
|
ef499920ba
|
Remove old debug code.
|
2013-04-13 03:06:06 -07:00 |
|
JoelKatz
|
bd06b22384
|
Use the fees that apply, not the transfer rate.
|
2013-04-13 02:52:58 -07:00 |
|
JoelKatz
|
e5fdc99dd0
|
Grr! These are way too easy to do by mistake. The following code does nothing useful:
ScopedLock(theApp->getMasterLock());
Must be:
ScopedLock sl(theApp->getMasterLock());
|
2013-04-12 18:36:31 -07:00 |
|
JoelKatz
|
3c3f9d3fea
|
Add a way to test if the master lock is held by someone else.
|
2013-04-12 18:36:03 -07:00 |
|
JoelKatz
|
455c73ce4d
|
Misuse of scoped lock.
|
2013-04-12 18:35:49 -07:00 |
|
JoelKatz
|
0359ab5d46
|
Don't count forced issuer nodes after exchanges because we didn't have to find them.
Drop the default maximum path length to four because exchanges to non-XRP aren't overcounted.
|
2013-04-12 16:11:51 -07:00 |
|
JoelKatz
|
2e39dfc15a
|
Don't explore paths if we don't have enough path length left to use them.
|
2013-04-12 16:03:57 -07:00 |
|
JoelKatz
|
183a6dbd2c
|
Merge branch 'develop' of github.com:jedmccaleb/NewCoin into develop
|
2013-04-11 13:57:00 -07:00 |
|
JoelKatz
|
49b1da8a09
|
Add destination account.
|
2013-04-11 13:56:44 -07:00 |
|
Arthur Britto
|
13b26a95e6
|
Merge branch 'develop' of github.com:jedmccaleb/NewCoin into develop
|
2013-04-09 22:13:15 -07:00 |
|
Arthur Britto
|
1947b56a84
|
Fix createHumanCurrency() to always output instead of throwing.
|
2013-04-09 22:13:03 -07:00 |
|
JoelKatz
|
568c27ef86
|
Return the "destination_currencies" field.
|
2013-04-09 20:48:53 -07:00 |
|
JoelKatz
|
c93cd6e011
|
Fix memory leak.
|
2013-04-09 20:25:12 -07:00 |
|
JoelKatz
|
289e86483a
|
Cleanup.
|
2013-04-09 20:08:19 -07:00 |
|
JoelKatz
|
fd296b4411
|
Pathfinding performance improvements.
|
2013-04-09 19:42:57 -07:00 |
|
JoelKatz
|
ab751ffb27
|
Cleanup.
|
2013-04-09 17:01:08 -07:00 |
|
JoelKatz
|
bd3780abbc
|
Missing free in error case.
|
2013-04-09 17:00:46 -07:00 |
|
JoelKatz
|
21ead9e866
|
Don't let the ripple address cache grow infinitely.
|
2013-04-09 17:00:14 -07:00 |
|
JoelKatz
|
23b94cdbc9
|
Be sure not to include XRP twice.
|
2013-04-09 14:21:48 -07:00 |
|
JoelKatz
|
05095ec71d
|
Temporarily revert part of previous patch.
|
2013-04-09 14:13:17 -07:00 |
|
JoelKatz
|
821fc8abe9
|
Widen the ripple paths we explore close to the beginning but narrow them in the middle.
|
2013-04-09 14:09:23 -07:00 |
|
Arthur Britto
|
e810a7c3b4
|
Merge branch 'develop' of github.com:jedmccaleb/NewCoin into develop
|
2013-04-09 01:21:42 -07:00 |
|
Arthur Britto
|
f2dd80c004
|
Disallow and remove IOUs denominated in XRP.
|
2013-04-09 01:21:26 -07:00 |
|
JoelKatz
|
9f1c975268
|
Include XRP in usAccountSourceCurrencies so that it can't get included twice.
|
2013-04-09 00:43:22 -07:00 |
|
JoelKatz
|
b2853161df
|
Fix previous commit.
|
2013-04-08 19:20:44 -07:00 |
|
JoelKatz
|
24295031c1
|
Don't produce any paths where the input and output are the same account, same currency.
|
2013-04-08 19:18:29 -07:00 |
|
JoelKatz
|
c0049542a2
|
Correctly handle one-element paths. Don't call setCanonical, it's broken.
|
2013-04-08 17:44:04 -07:00 |
|
JoelKatz
|
46dbd3e967
|
Emergency fix. boost::format doesn't have the thread safety we thought.
|
2013-04-08 17:17:16 -07:00 |
|
Arthur Britto
|
85321afd44
|
JSON API clean up.
|
2013-04-08 16:14:35 -07:00 |
|
JoelKatz
|
f9b18254ab
|
Fix some paths we missed.
|
2013-04-08 01:17:55 -07:00 |
|
JoelKatz
|
6d9a27e593
|
Count a path to the destination extra.
|
2013-04-07 23:55:54 -07:00 |
|
JoelKatz
|
7e429dd14c
|
On non-tiny nodes, use an extra I/O thread.
|
2013-04-07 23:44:36 -07:00 |
|
JoelKatz
|
5928b3dcbf
|
Off by one error. Thank you unit tests.
|
2013-04-07 23:34:37 -07:00 |
|
JoelKatz
|
ae7fc56e6b
|
Statistical path exploration. Phase one.
|
2013-04-07 23:21:26 -07:00 |
|
JoelKatz
|
d3da878dda
|
Whitespace.
|
2013-04-07 23:21:09 -07:00 |
|
JoelKatz
|
3c98070d43
|
This is the correct fix.
|
2013-04-07 21:55:20 -07:00 |
|
JoelKatz
|
c6cea1d072
|
Remove unneccessary copies.
|
2013-04-07 21:32:18 -07:00 |
|
JoelKatz
|
03bce70a23
|
Add an extra phase to the process of deciding which ripple lines to explore.
It will make sense shortly.
|
2013-04-07 20:56:16 -07:00 |
|
JoelKatz
|
a47b89422f
|
Cleanup.
|
2013-04-07 20:46:33 -07:00 |
|
JoelKatz
|
f405a492a4
|
Avoid redundant exploration.
|
2013-04-07 20:15:01 -07:00 |
|
JoelKatz
|
e3063b0495
|
Some small optimizations.
|
2013-04-07 18:34:16 -07:00 |
|
JoelKatz
|
e538c38d61
|
Always return a "transactions" array in account_tx, even if it's empty.
|
2013-04-06 12:22:33 -07:00 |
|