Commit Graph

4635 Commits

Author SHA1 Message Date
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
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
Stefan Thomas
3932ce95fd JS: Hotfix for sequence issue. 2013-02-23 23:25:55 +01: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
Stefan Thomas
1a3b28a668 JS: More tests for equals. 2013-02-22 13:47:47 +01:00
Stefan Thomas
544105e23d JS: Prevent Amount#negate from creating amounts that are negative zero. 2013-02-22 13:47:26 +01:00
Stefan Thomas
50b5644334 JS: Add a way for the test suite to change Amount#equals, so it ignores issuers. 2013-02-22 13:46:50 +01:00
Stefan Thomas
47791fa851 JS: Fix Amount#equals and Amount#not_equals_why to pass all tests. 2013-02-22 12:48:05 +01:00
Stefan Thomas
0641d38dc1 JS: More tests for Amount#equals and Amount#not_equals_why. 2013-02-22 12:48:05 +01:00
Stefan Thomas
8cb8b353c3 JS: Amount - handle plain numbers as arguments to ratio_human and product_human. 2013-02-22 12:48:04 +01: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
0f903a2cc9 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-02-21 14:22:28 -08:00
JoelKatz
9508a4a7d6 Try to prevent websocket connections from pinging out. 2013-02-21 14:22:08 -08:00
Stefan Thomas
aa77f433e4 JS: Failing test. Amount#equals does not compare exponent. 2013-02-21 23:06:22 +01:00
Stefan Thomas
a38e17beed JS: Added class OrderBook for listening to order books. 2013-02-21 23:06:22 +01: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