Commit Graph

1303 Commits

Author SHA1 Message Date
JoelKatz
33dafca31a Use correct polymorphic downcast. 2013-02-26 06:33:56 -08:00
JoelKatz
8d25b67ad9 Use the correct downcast. 2013-02-26 06:30:37 -08:00
JoelKatz
c570cca15e Rewrite the notification code to use smart pointers. This fixes several
fatal race conditions in notifications. This makes failure to remove a
notification non-fatal (it will remove itself harmlessly when an attempt is
made to notify it).
2013-02-26 00:11:23 -08:00
Arthur Britto
5fb29bb859 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-02-25 22:32:19 -08:00
Arthur Britto
6616ebf133 Better logging for insufficent fee paid. 2013-02-25 22:32:07 -08:00
Arthur Britto
a0c709d126 Do not allow native amounts for TrustSet. 2013-02-25 22:31:11 -08:00
JoelKatz
ec8b388a8b Temporarily revert the 'tx' format change until I can confirm it won't break the client. 2013-02-25 21:18:29 -08:00
JoelKatz
7b14d2d44a Fig a bug in the way we traverse TaggedCaches and a similar bug in mPeerPositions. 2013-02-25 20:28:20 -08:00
JoelKatz
923446fb78 Fix 'tx' output format. Begin supporting a binary output format.
This adds support for binary in 'tx' and 'account_tx' commands.
https://ripple.com/wiki/FormatChange
2013-02-25 12:51:06 -08:00
JoelKatz
fc221a8d7c Whitespace change. 2013-02-25 02:08:48 -08:00
JoelKatz
167d13cf40 I think this is the underlying issue. In some cases where the tx return value wasn't
full success, we applied to our open ledger but didn't relay. This caused disputes
resolved only by dispute relaying.
2013-02-24 16:48:54 -08:00
JoelKatz
d301cc6128 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-02-24 15:13:40 -08:00
JoelKatz
c83427d215 Round close times in a smarter way. 2013-02-24 15:13:30 -08:00
Arthur Britto
073fcbd96d Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-02-24 14:24:14 -08:00
Arthur Britto
2a7e753d06 Make TrustSet use mPriorBalance. 2013-02-24 14:22:32 -08:00
Arthur Britto
b759b0674c Make OfferCreate use mPriorBalance. 2013-02-24 14:20:28 -08:00
Arthur Britto
87844a6053 Make Payment use new mPriorBalance. 2013-02-24 14:18:07 -08:00
JoelKatz
076add0e73 Be more aggressive about relaying disputed transactions. 2013-02-24 14:13:20 -08:00
JoelKatz
92be1c70f5 Hopefully prevent a jump forward at the end of the consensus process.
If not, at least figure out exactly where in the consensus state machine that's happening.
2013-02-24 13:47:21 -08:00
JoelKatz
7b1dd394ea Logging cleanup. 2013-02-24 13:47:11 -08:00
JoelKatz
0c7d8136cf Reduce the severity of a 'routine' log message. 2013-02-23 00:19:32 -08:00
JoelKatz
c6ff3e3403 Truncate huge log messages. 2013-02-22 15:11:06 -08:00
JoelKatz
cb90b717cc For now, don't enforce ping timeouts. Just sending the pings is sufficient
to cause dead connections to break.
2013-02-22 09:33:26 -08:00
JoelKatz
47425827d3 Reduce logging. 2013-02-22 09:33:10 -08:00
JoelKatz
39b3fe772d Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-02-22 01:36:42 -08:00
JoelKatz
261168d512 Quiet noisy logging. 2013-02-22 01:36:31 -08:00
Arthur Britto
58bbe2d399 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-02-22 01:25:36 -08:00
Arthur Britto
54fa89f832 Comment out unavailable command doc. 2013-02-22 01:25:29 -08:00
JoelKatz
1b01114d54 Cosmetic: Don't report a nonsense age in the human-readable server_info 2013-02-21 19:34:38 -08:00
JoelKatz
5b383d43b0 Fix a bug that could cause crashes. 2013-02-21 19:29:25 -08:00
JoelKatz
716631bb5c Fix a very rare race condition. 2013-02-21 15:11:51 -08:00
JoelKatz
8f9b41e446 Turn websocket ping frequency down. 2013-02-21 14:45:41 -08:00
JoelKatz
9508a4a7d6 Try to prevent websocket connections from pinging out. 2013-02-21 14:22:08 -08:00
JoelKatz
6357a906d3 Most recent data first. 2013-02-21 12:48:25 -08:00
JoelKatz
2d1b98609e Temporarily limit getAccountTx to 200 transactions. 2013-02-21 12:36:16 -08:00
JoelKatz
a331d23183 Fix some inefficiecies. 2013-02-21 10:42:17 -08:00
JoelKatz
e3b4571831 Cleanup of STObject::setType. Avoid some excess allocations. 2013-02-21 10:29:06 -08:00
JoelKatz
7300e803ae Accelerated 'ledger' command. 2013-02-21 10:09:40 -08:00
JoelKatz
2e12ffac57 Allow a lot more commands to take advantage of the immutable SLE acceleration.
Allow faster operations on the open ledger by using many smaller freezes rather than one big one.
2013-02-21 09:57:42 -08:00
JoelKatz
53b622db75 Make getSLEi more useful. 2013-02-21 09:47:34 -08:00
JoelKatz
5451e20eaa Make getAccountState use getSLEi.
Make getSLEi work against a mutex ledger without holding a master lock.
2013-02-21 06:47:38 -08:00
JoelKatz
73c795a4b2 I guess I couldn't get away with this. 2013-02-21 02:52:22 -08:00
JoelKatz
1e2aba6b38 Ledger acquire timing changes. Better logging of acquire stalls. 2013-02-21 02:47:19 -08:00
JoelKatz
a2a52ad88b Fix a crash bug reported by Jon Montroll.
ConnectionPool::peerConnect called Peer::connect while holding the
ConnectionPool::mPeerLock. But Peer::connect could call Peer::detach which
calls ConnectionPool::peerClosed which tries to acquire the
ConnectionPool::mPeerLock mutex. Said mutex was not recursive. Belt and
suspenders fix -- make the mutex recursive and make
ConnectionPool::peerConnection call Peer::connect without holding the
ConnectionPool::mPeerLock mutex. (This was intended to be a fast, internal
mutex and calls to external 'heavy' functions should not be made while
holding it.)
2013-02-21 02:43:20 -08:00
JoelKatz
0d928f8471 Small bugfix. 2013-02-21 00:37:39 -08:00
JoelKatz
44f9106556 Complete the peer ping/pong logic. Disconnect idle/broken peers. 2013-02-20 21:42:27 -08:00
JoelKatz
644b9448f7 Drop fees faster. 2013-02-20 14:32:59 -08:00
JoelKatz
2de9ffe4dc Up target latencies for client commands. 2013-02-20 14:28:16 -08:00
JoelKatz
52c378411d If we start seeing acquire timeouts, don't start new acquires.
The link could be overloaded.
2013-02-20 13:30:57 -08:00
JoelKatz
25c52b1a4d Use getSLEi to get an immutable SLE. This lets us cache them. 2013-02-20 12:00:38 -08:00