Commit Graph

6141 Commits

Author SHA1 Message Date
JoelKatz
b7eccd1dce Reset mLedger if request is invalid to ensure that findPaths fails. 2013-04-15 07:14:48 -07:00
JoelKatz
8d6de40e52 Merge branch 'develop' of github.com:jedmccaleb/NewCoin into develop 2013-04-15 05:45:33 -07:00
JoelKatz
7f82b95dbd Don't send a zero amount. 2013-04-15 05:45:11 -07:00
JoelKatz
a12d2648fc Don't send a zero amount. 2013-04-15 05:44:35 -07:00
Arthur Britto
ec081cd2dc Make RPC account_lines support specify the peer account. 2013-04-14 23:15:58 -07:00
Arthur Britto
f102097ef3 Merge branch 'develop' of github.com:jedmccaleb/NewCoin into develop 2013-04-14 22:38:52 -07:00
Arthur Britto
0f2d889987 Cache RippleAddress validity. 2013-04-14 22:38:37 -07:00
JoelKatz
17cc6edc2b Bump to version 3.7.16.2 2013-04-14 05:18:13 -07:00
JoelKatz
fe2b838d49 Make the code match the comment. 2013-04-14 04:38:46 -07:00
JoelKatz
f30ce4171a 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-14 04:37:32 -07:00
JoelKatz
1ca88a8a14 Don't explore paths if we don't have enough path length left to use them. 2013-04-14 04:37:26 -07:00
JoelKatz
d69bccc797 Misuse of scoped lock. 2013-04-14 04:35:58 -07:00
JoelKatz
7d97f314f1 Remove mLedger from PathState. It's not used and it's scary (because an LES could amend it). 2013-04-14 04:35:34 -07:00
JoelKatz
298a29ebc6 Some extra assert's and stricter checks. 2013-04-14 03:17:00 -07:00
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
Arthur Britto
6fe348d7c7 Merge branch 'develop' of github.com:jedmccaleb/NewCoin into develop 2013-04-13 12:33:48 -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
58903e9ed5 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:37:44 -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
Arthur Britto
a38394e1e7 package.json version 0.7.5 2013-04-12 10:52:52 -07:00
JoelKatz
b052975790 Manual fixes. 2013-04-11 14:40:13 -07:00
JoelKatz
057adef333 Avoid redundant exploration.
Conflicts:
	src/cpp/ripple/Pathfinder.cpp
	src/cpp/ripple/Pathfinder.h
2013-04-11 14:08:49 -07:00
JoelKatz
aaaa898930 Add destination account. 2013-04-11 14:02:38 -07:00
Arthur Britto
5542ed51cc Fix createHumanCurrency() to always output instead of throwing. 2013-04-11 14:02:30 -07:00
JoelKatz
3981727293 Return the "destination_currencies" field. 2013-04-11 14:02:24 -07:00
JoelKatz
45915d262e Fix memory leak. 2013-04-11 14:02:19 -07:00
JoelKatz
aad99f4955 Cleanup. 2013-04-11 14:02:13 -07:00
JoelKatz
5e834ae652 Pathfinding performance improvements. 2013-04-11 14:01:51 -07:00
JoelKatz
4d1ce12505 Cleanup. 2013-04-11 14:01:46 -07:00
JoelKatz
c03ae4accb Missing free in error case. 2013-04-11 14:01:26 -07:00
JoelKatz
7589d2f6e1 Don't let the ripple address cache grow infinitely. 2013-04-11 14:01:18 -07:00
JoelKatz
d0c4dd0222 Typo. 2013-04-11 14:01:12 -07:00
JoelKatz
4c30671372 Be sure not to include XRP twice. 2013-04-11 14:01:06 -07:00
JoelKatz
4abae1d11a Temporarily revert part of previous patch. 2013-04-11 14:00:57 -07:00
JoelKatz
a00ae8864a Widen the ripple paths we explore close to the beginning but narrow them in the middle.
Conflicts:
	src/cpp/ripple/Pathfinder.cpp
2013-04-11 14:00:45 -07:00
JoelKatz
8c3d04caff Include XRP in usAccountSourceCurrencies so that it can't get included twice. 2013-04-11 13:59:21 -07:00
JoelKatz
228a3b5a67 Fix previous commit. 2013-04-11 13:59:11 -07:00
JoelKatz
a132df0535 Don't produce any paths where the input and output are the same account, same currency. 2013-04-11 13:59:04 -07:00