Commit Graph

513 Commits

Author SHA1 Message Date
JoelKatz
7cd52cd448 Since most transactions will likely have zero for the Flags field, make it optional. 2013-01-03 12:42:37 -08:00
JoelKatz
8f5aa1a810 Wrong type. 2013-01-02 19:22:34 -08:00
JoelKatz
ee3b17e49f Cleanups. 2013-01-02 19:12:21 -08:00
JoelKatz
f75e175fc2 Make TaggedCache::del more flexible. 2013-01-02 14:25:06 -08:00
JoelKatz
1127ae560e Defer publishing a ledger to clients until it accumulates sufficient
validations. We now have an open ledger, a last closed ledger, and a last
validated ledger. Normally, a ledger will be validated right after it
closes, but in edge cases, we might see a ledger close that then doesn't get
validated. This makes the code do the right thing.
2013-01-02 12:04:16 -08:00
JoelKatz
b71d0a93f9 Bugfix. 2013-01-01 18:26:17 -08:00
JoelKatz
c2d654efee More of the new publication logic. 2013-01-01 18:21:19 -08:00
JoelKatz
a543ee9ff5 Cleanup. 2013-01-01 18:21:08 -08:00
JoelKatz
55825b8b5f Cleanups. 2013-01-01 18:20:30 -08:00
JoelKatz
d27b395c1c Helper function. 2013-01-01 18:18:27 -08:00
JoelKatz
4d6f04ed2f Helper function. 2013-01-01 18:16:57 -08:00
JoelKatz
db9897f12f Fix the tagged cache so that the cache holds strong references. 2013-01-01 18:15:33 -08:00
JoelKatz
6fce36b107 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-01-01 16:11:53 -08:00
JoelKatz
1e24721a98 First part of the fix to stop us from publishing ledgers that don't get validated. 2013-01-01 16:11:30 -08:00
Arthur Britto
f09543fe8a Cosmetic. 2013-01-01 14:37:44 -08:00
Arthur Britto
c78f352035 Add default fee for AccountSet. 2013-01-01 12:35:35 -08:00
Arthur Britto
6830a61ff1 Make validation_create require admin. 2013-01-01 02:04:19 -08:00
JoelKatz
8b8a538a5c On a ledger jump, properly invalidate prior ledgers and invalidate a backfill in progress. 2012-12-31 00:25:52 -08:00
JoelKatz
40b87e9157 Fix a bug that would cause the server to exit the "need network ledger" state prematurely. 2012-12-30 23:48:53 -08:00
JoelKatz
bafa5cb667 Fix a case that could stall the acquire engine. 2012-12-30 23:39:41 -08:00
JoelKatz
55acebae4c Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-12-30 22:37:09 -08:00
JoelKatz
0c91e7e78a Add the code to walk to the ledger chain. 2012-12-30 22:36:54 -08:00
Arthur Britto
c785b5bb92 Fix a bug in rpc subscribe. 2012-12-30 18:24:25 -08:00
Arthur Britto
937f9718f8 Support paths for subscribe via json-rpc. 2012-12-30 17:16:53 -08:00
Arthur Britto
7fd00894b9 Allow empty array to for empty object for JSON-RPC. 2012-12-30 17:02:35 -08:00
Arthur Britto
6592f9de39 Report correct target for callRPC. 2012-12-30 17:02:01 -08:00
Arthur Britto
6ba31accb2 Fixes for rpc subscriptions. 2012-12-30 17:01:34 -08:00
JoelKatz
5009d4c3b8 Cleanups. 2012-12-30 13:19:42 -08:00
Arthur Britto
eaaeaaba15 Allow seeds to be specified as hex. 2012-12-29 17:37:56 -08:00
Arthur Britto
0339aa9669 Have SetHex return validity and add strict option. 2012-12-29 17:37:39 -08:00
Arthur Britto
ab0da033c3 Add support for JSON-RPC subscriptions. 2012-12-29 16:07:29 -08:00
Arthur Britto
e91ce698f6 Add support for parsing port in urls. 2012-12-29 14:59:44 -08:00
Arthur Britto
824a79da85 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-12-29 14:43:07 -08:00
Arthur Britto
192dae3b74 Stub subscribe for JSON-RPC. 2012-12-29 14:42:38 -08:00
Arthur Britto
86d7781255 Fix user agent for JSON-RPC to use SYSTEM_NAME. 2012-12-29 14:41:07 -08:00
Arthur Britto
f6010b639a Rename --test to --unittest. 2012-12-29 14:40:20 -08:00
Arthur Britto
dc2d87480f Abstract parseUrl. 2012-12-29 14:39:41 -08:00
JoelKatz
b4004c4676 Fix a bug that, under rare circumstances, could lead to SHAMap corruption 2012-12-29 13:04:17 -08:00
JoelKatz
3ff4dc99ad Function to retrieve previous ledger hashes from the ledger. 2012-12-28 20:40:30 -08:00
JoelKatz
3c9be6f549 Remove FirstLedgerSequence and mark it deprecated 2012-12-28 19:46:01 -08:00
JoelKatz
a83e00610a Clarify the direction requests go 2012-12-28 16:52:12 -08:00
JoelKatz
a169167030 Fix a bug where a node doesn't get a chance to finish acquiring a TX set
before all nodes forget it because they're done with it, leaving a node
behind the consensus.
2012-12-27 20:25:12 -08:00
JoelKatz
9f072fcac6 Fixes. 2012-12-27 16:55:49 -08:00
JoelKatz
3a673654b6 Make sure clients get the initial load information. 2012-12-27 16:54:11 -08:00
JoelKatz
33aee3705a Pass fee information to client. 2012-12-27 10:42:58 -08:00
JoelKatz
57f2b6d1bc Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-12-27 10:41:45 -08:00
JoelKatz
36f89edb74 Avoid a reference increment where it's not needed. 2012-12-27 10:41:32 -08:00
JoelKatz
c09133fb6d Function to get load factors in machine understandable form. 2012-12-27 10:41:10 -08:00
JoelKatz
22973c1e5b Function to get reserve increment. 2012-12-27 10:40:53 -08:00
Arthur Britto
54e4fcca4f Fix error code for bad fee. 2012-12-27 01:55:17 -08:00