Commit Graph

1289 Commits

Author SHA1 Message Date
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
JoelKatz
ba37349b95 Function to get map entry with its hash. 2013-02-20 11:59:33 -08:00
JoelKatz
24355e17fb I apologize for this moderate buchery, but we need to save the calls to base58::ToString 2013-02-20 11:58:57 -08:00
Arthur Britto
3191bd4922 Limit paths returned by pathfinder. 2013-02-20 11:06:57 -08:00
JoelKatz
4bc9a9fdb0 Allow -3 to select last fully-validated ledger. 2013-02-20 09:41:23 -08:00
JoelKatz
7552f9eacf Some optimizations. 2013-02-20 09:33:09 -08:00
JoelKatz
c375d2d96b Logging reduction. 2013-02-19 15:44:12 -08:00
JoelKatz
4d6bf6fd43 Logging reductions. 2013-02-19 15:41:03 -08:00
JoelKatz
7c7944a82c Disambiguate rpcSRC_ACT_NOT_FOUND errors so it's clear when it's the
secret that's at fault.
2013-02-19 13:48:46 -08:00
JoelKatz
637b7e5431 Make the CA servers used for outbound HTTPS connections configurable. 2013-02-19 13:48:25 -08:00
JoelKatz
6c6e8777f4 Log outbound connection certificate verification failures. 2013-02-19 13:11:24 -08:00
JoelKatz
875b47ca75 Typo. 2013-02-19 07:59:21 -08:00
JoelKatz
47167a4e36 Typo. 2013-02-19 07:57:57 -08:00
JoelKatz
6ba2d4fd61 Make types compatible. 2013-02-18 12:06:43 -08:00
JoelKatz
9f3f86fe4e Extra constructor. 2013-02-18 12:06:18 -08:00