Commit Graph

3444 Commits

Author SHA1 Message Date
JoelKatz
809868c6fc This is not optimal, but this should at least make the logic for when we
publish transactions to which accounts sensible.
2013-01-17 11:33:42 -08:00
JoelKatz
65a1d00751 Remove dead PubKeyCache code. 2013-01-17 10:54:37 -08:00
JoelKatz
902af8cd90 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-01-17 10:47:37 -08:00
JoelKatz
8da284705f Fix 'getAffectedAccount' -- logic was totally wrong.
You can't get this from the transaction because which accounts a transaction
affects depends on things like which offers it winds up taking. And you
can't build it with the metadata because you don't always build the metadata
locally -- consider fetching a ledger after a network split. The only
rational way to do this is to build the affected account vector from the
metadata.
2013-01-17 10:46:12 -08:00
Arthur Britto
c0a630a196 Allow RPC subscribe with no streams. 2013-01-16 22:42:10 -08:00
Arthur Britto
2775d76df3 Limit length of Domain and MessageKey fields. 2013-01-16 19:48:22 -08:00
Arthur Britto
97716977c9 Report an error if RPC subscribe specifies no streams. 2013-01-16 15:22:29 -08:00
Arthur Britto
b6a24b9bc2 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-01-16 15:05:55 -08:00
Arthur Britto
4982ffdf74 Add support for calling RPC command at startup from config file. 2013-01-16 15:05:44 -08:00
Arthur Britto
503e9a7ddc More specific RPC error reporting. 2013-01-16 15:03:36 -08:00
Stefan Thomas
c0e728c310 Amount.product_human and Amount.ratio_human need to canonicalize. 2013-01-16 19:17:35 +01:00
JoelKatz
a87768ead5 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-01-16 08:55:12 -08:00
JoelKatz
1b168aec36 These functions can be simpler. The bignum binary format does not have X.509 semantics, so no need to
use an extra byte.
2013-01-16 08:54:29 -08:00
Stefan Thomas
32d6e0728a Show a more specific error when entering an invalid command on the CLI RPC. 2013-01-16 16:17:28 +01:00
JoelKatz
8136f98729 Cleanups. uint64_t -> uint64 2013-01-16 00:38:20 -08:00
JoelKatz
271bf901ec Support for compiling on 32-bit platforms. The main issue was BN_ULONG size and not using 'long' where
'long long' or 'uint64' should be used.
2013-01-15 23:47:42 -08:00
Arthur Britto
0d7f8cbe13 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-01-15 19:56:07 -08:00
Arthur Britto
ffd32cc66c Make specific generic uses of temINVALID. 2013-01-15 19:55:57 -08:00
JoelKatz
7f18a8ffc3 Reduce debug levels. 2013-01-15 19:47:20 -08:00
JoelKatz
56571602b0 Reduce a debug message to debug level. 2013-01-15 19:46:58 -08:00
JoelKatz
40e508540f load_fee -> load_factor 2013-01-15 19:26:52 -08:00
JoelKatz
1c48f6948d Fix "age". 2013-01-15 19:21:24 -08:00
JoelKatz
1af14e07c7 Tiny cosmetic tweak. 2013-01-15 19:19:33 -08:00
JoelKatz
8191153dce Split into server_info (for humans) and server_state (for machines).
Allow either without admin privileges, filter information out from non-admins.
Cleanup and improve data in all cases.
2013-01-15 19:16:20 -08:00
JoelKatz
01b3e9e0ae Add 'getValidatedLedger' to get the last fully-validated ledger.
We should probably audit calls to 'getClosedLedger' to see if they should use this instead.
2013-01-15 19:05:30 -08:00
JoelKatz
fb3e2e8af4 Fix a crash bug Arthur reported. 2013-01-15 17:09:57 -08:00
JoelKatz
c57e28c55b Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-01-15 17:03:22 -08:00
JoelKatz
d398c5bb02 Don't show our validation key in non-admin server_info. 2013-01-15 17:03:00 -08:00
Arthur Britto
06f1e1339a Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-01-15 16:52:05 -08:00
JoelKatz
940cc9059c Peer::handleWrite grabs the wrong lock. 2013-01-15 16:21:53 -08:00
Arthur Britto
b61e201667 Get rid of chatty debug. 2013-01-15 15:43:52 -08:00
JoelKatz
d3069f7fbc Get rid of an unneeded member. Add some comments. 2013-01-15 10:21:46 -08:00
JoelKatz
bdd953076a Avoid a needless allocate/copy/free in addRootNode. 2013-01-15 10:21:16 -08:00
JoelKatz
dded68afb9 Tiny cleanup. 2013-01-15 10:21:07 -08:00
JoelKatz
90010b8870 Cleanups. Remove some unneeded filters. 2013-01-15 10:20:41 -08:00
JoelKatz
343d9edb51 make server_info more friendly. 2013-01-15 02:01:24 -08:00
JoelKatz
88437c9cab Cleanup. 2013-01-15 02:01:07 -08:00
JoelKatz
c24cda7847 Use a more human-friendly numeric format. 2013-01-15 02:00:56 -08:00
JoelKatz
a79b6e0a15 Add new fields to peer Json output. 2013-01-14 23:48:51 -08:00
JoelKatz
b95b704ecb Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-01-14 23:43:34 -08:00
JoelKatz
33b2a20024 Correctly track direction and privilege of peer connections, pass to load tracking. 2013-01-14 23:30:13 -08:00
Arthur Britto
026f2a7fc7 More debugging. 2013-01-14 21:45:54 -08:00
Arthur Britto
ca432d5a9c More debugging. 2013-01-14 21:39:40 -08:00
Arthur Britto
af0e39f11c Typo 2013-01-14 21:25:36 -08:00
Arthur Britto
9c6d073d89 More logging for RPC subscribe. 2013-01-14 21:21:22 -08:00
Arthur Britto
758ba0b3e3 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-01-14 20:19:01 -08:00
Arthur Britto
5c052ebdf4 Temporarily turn off admin checking for subscribe. 2013-01-14 20:18:34 -08:00
JoelKatz
8f6c597373 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-01-14 18:17:02 -08:00
JoelKatz
9dea6df56b Tuning. 2013-01-14 18:16:47 -08:00
Arthur Britto
1008c8d1f1 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-01-14 17:00:25 -08:00