Commit Graph

1829 Commits

Author SHA1 Message Date
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
JoelKatz
069b34101f Remove a warning. 2013-04-05 21:16:25 -07:00
JoelKatz
b10b0f82f6 Division rounds towards zero automatically. We don't need to do anything
special in mulRound or divRound before we divide if we're rounding towards zero.
2013-04-05 19:00:24 -07:00
JoelKatz
fd769cdca1 Merge branch 'master' of github.com:jedmccaleb/NewCoin into develop 2013-04-05 09:58:08 -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
48635bb843 Fix small bugs in the SHAMapDiff algorithm. 2013-04-05 09:51:05 -07:00
JoelKatz
bc5a81efc3 Report which acquires failed in 'consensus_info'. 2013-04-05 09:50:37 -07:00
JoelKatz
ff89774fda Merge branch 'master' of github.com:jedmccaleb/NewCoin into develop 2013-04-05 09:43:03 -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
JoelKatz
4c9c2ec0a6 Merge branch 'new_pathfinding' of github.com:jedmccaleb/NewCoin into develop 2013-04-04 20:33:52 -07:00
JoelKatz
a56d284e4d Some cleanups. 2013-04-04 20:32:11 -07:00
JoelKatz
b3f2f68682 Fix bug in AccountTransactions database creation. 2013-04-04 15:26:35 -07:00
Arthur Britto
43b0e80cdc Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-04-03 17:21:18 -07:00