Commit Graph

5259 Commits

Author SHA1 Message Date
JoelKatz
61efda89a5 This keeps the two timing schemes compatible. 2013-04-15 14:38:49 -07:00
JoelKatz
9feb97e530 Timing change to avoid allowing a server to race ahead of the
majority of validators. Enforce minimum ledger open time which
is extended if there are too few validations.
2013-04-15 14:38:44 -07:00
JoelKatz
a68acc92bc Merge branch 'master' of github.com:jedmccaleb/NewCoin into cherry 2013-04-15 07:15:21 -07:00
JoelKatz
a12d2648fc Don't send a zero amount. 2013-04-15 05:44:35 -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
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
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
JoelKatz
859ff7784d Correctly handle one-element paths. Don't call setCanonical, it's broken. 2013-04-08 18:01:26 -07:00
JoelKatz
96e4a078d9 Emergency fix. boost::format doesn't have the thread safety we thought. 2013-04-08 17:16:18 -07:00
JoelKatz
c4432bfc0c Fix some paths we missed. 2013-04-08 01:17:20 -07:00
JoelKatz
0be086b1a4 Count a path to the destination extra. 2013-04-08 00:10:51 -07:00
JoelKatz
950d6b3f55 Off by one error. Thank you unit tests. 2013-04-08 00:10:41 -07:00
JoelKatz
f78424a2d5 Statistical path exploration. Phase one. 2013-04-08 00:10:36 -07:00
JoelKatz
3f3374d1d8 This is the correct fix. 2013-04-08 00:10:25 -07:00
JoelKatz
56fe0457d6 Add an extra phase to the process of deciding which ripple lines to explore.
It will make sense shortly.
2013-04-08 00:10:09 -07:00
JoelKatz
ebb77d668a Cleanup. 2013-04-08 00:10:01 -07:00
JoelKatz
14a720ebdc Avoid redundant exploration. 2013-04-08 00:09:46 -07:00
JoelKatz
4af8b40e3a Some small optimizations. 2013-04-08 00:09:31 -07:00
JoelKatz
6b267abee2 Always return a "transactions" array in account_tx, even if it's empty. 2013-04-08 00:09:18 -07:00
JoelKatz
e87fce1542 Remove unneccessary copies. 2013-04-08 00:08:55 -07:00
JoelKatz
04d48a6d21 Emergency fix: Sanely handle taking a position we previously failed to acquire. 2013-04-05 09:57:24 -07:00
JoelKatz
7131564eb1 Emergency patch to fix ledger not closing.
Do not timeout on acquiring a transaction set if a trusted peer
still proposes it. Instead, fetch more aggressively.
2013-04-05 09:41:43 -07:00
jatchili
f37737edd3 account_tx-test.js - uses new ordering scheme 2013-04-04 16:09:30 -07:00
jatchili
fc79cd867e Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-04-04 15:31:19 -07:00
JoelKatz
b3f2f68682 Fix bug in AccountTransactions database creation. 2013-04-04 15:26:35 -07:00
jatchili
2c20b313c9 Made some changes to account_tx-test.js 2013-04-04 12:02:52 -07:00
Arthur Britto
437fd44e42 Comment out broken account_tx-test.js 2013-04-03 17:21:46 -07:00
Arthur Britto
43b0e80cdc Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-04-03 17:21:18 -07:00
Arthur Britto
7b98191d68 Make ripple balance checks more lenient. 2013-04-03 17:12:39 -07:00