Commit Graph

5754 Commits

Author SHA1 Message Date
JoelKatz
71c15310d9 Small fix. 2013-04-16 11:57:02 -07:00
JoelKatz
09e4f6a4fe Merge fixes. 2013-04-16 11:53:50 -07:00
JoelKatz
644d97a332 Add a getLedgerNext that takes into account changes in the LES.
Conflicts:
	src/cpp/ripple/RippleCalc.cpp
2013-04-16 11:45:04 -07:00
JoelKatz
aa984592ca Avoid assert. 2013-04-16 11:43:37 -07:00
JoelKatz
bdf1ed2584 Add a getLedgerNext that takes into account changes in the LES. 2013-04-16 11:42:04 -07:00
JoelKatz
148b5b42a5 Transactor for change/fee. 2013-04-16 11:16:52 -07:00
JoelKatz
efb3c24518 Change/Fee transactor. 2013-04-15 22:59:16 -07:00
JoelKatz
8ed0d107fd Allow administrators to submit transactions that don't meet the local load fee. 2013-04-15 17:14:20 -07:00
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
0c1c14f49a This keeps the two timing schemes compatible. 2013-04-15 09:57:10 -07:00
JoelKatz
0bc9c0b737 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 09:50:23 -07:00
JoelKatz
a68acc92bc Merge branch 'master' of github.com:jedmccaleb/NewCoin into cherry 2013-04-15 07:15:21 -07:00
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