Commit Graph

1720 Commits

Author SHA1 Message Date
JoelKatz
c7eb0269c2 For now, detect clocks out of sync and disallow connection.
Improve speed of ledger synchronization by compressing all three base queries into one.
2012-06-30 22:17:53 -07:00
JoelKatz
51100a3b30 Keep and report some extra peer information. 2012-06-30 19:07:08 -07:00
JoelKatz
c90f834f7f Duh! This is the right fix for the bug Jed reported. 2012-06-30 18:59:38 -07:00
JoelKatz
30d76c87a3 Don't crash if we're send a malicious map node from a peer. 2012-06-30 18:53:11 -07:00
JoelKatz
ae1e2e071e Fix a crash bug Jed reported. 2012-06-30 18:52:52 -07:00
jed
8f7c984ef7 don't validate if ledger # is too low 2012-06-30 06:52:05 -07:00
jed
b1e770832a Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-06-30 05:58:59 -07:00
jed
64a869d6e8 less chatty 2012-06-30 05:58:45 -07:00
JoelKatz
c1d01348f8 Add root node in wire format. 2012-06-29 23:33:12 -07:00
JoelKatz
0627ae22da A better fix. Take the format as a parameter in addRootNode. 2012-06-29 23:32:26 -07:00
JoelKatz
ce14aa8191 Make 'addRootNode' support both prefixed and wire formats. Fix getMissingNodes to retrieve
from the node store in prefixed format.
2012-06-29 23:19:56 -07:00
JoelKatz
6a9b5ccd7d Support STN_ARF_UNKNOWN for contexts where the format of a node is not known. Format
is auto-detected.
2012-06-29 23:19:29 -07:00
JoelKatz
0b133749ae Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-06-29 22:41:35 -07:00
JoelKatz
b95dc249c0 Fix two bugs that could have been what Jed reported. 2012-06-29 22:41:14 -07:00
JoelKatz
6bbf7f58f0 Fix a small bug. Catch bad store/retrieeves sooner. 2012-06-29 22:40:48 -07:00
jed
94a9def72e tweak json returns 2012-06-29 21:36:29 -07:00
Arthur Britto
1804530577 Make WS transaction_subscribe consistent with account_transaction_subscribe. 2012-06-29 18:04:39 -07:00
Arthur Britto
dacbc58ef3 Improvements for WS account_transaction_subscribe. 2012-06-29 17:51:37 -07:00
Arthur Britto
5a6349b328 Add support for WS account_transaction_subscribe and account_transaction_unsubscribe. 2012-06-29 16:23:06 -07:00
Arthur Britto
22742314f3 Add debugging support to NewcoinAddress. 2012-06-29 16:22:30 -07:00
Arthur Britto
ddd1e721fd Comment out unused var. 2012-06-29 16:21:54 -07:00
jed
b535d361aa Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-06-29 06:08:59 -07:00
jed
91b1763a09 change return of account_tx 2012-06-29 06:08:39 -07:00
JoelKatz
2cac0cb288 Mark a FIXME. 2012-06-29 05:35:28 -07:00
jed
037a0f0d12 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-06-29 05:30:12 -07:00
jed
bc9dca6548 . 2012-06-29 05:29:59 -07:00
JoelKatz
8516f40a89 Improve comments. 2012-06-29 03:54:43 -07:00
JoelKatz
4a2871ff52 Timing routines for continuous ledger close. 2012-06-29 03:50:37 -07:00
JoelKatz
3f3ea3c594 Fix the bug Jed reported. 2012-06-29 02:07:24 -07:00
JoelKatz
fcebbef0f4 Fix incorrect transactions states after SQL retrieval 2012-06-29 02:01:24 -07:00
JoelKatz
5ed0197a42 Correctly update transactions in memory when a ledger closes. 2012-06-28 13:27:10 -07:00
JoelKatz
83dfc36892 Use safe lexical casts. (Until we put RPCServer parsing code in try/catch blocks.)
Return full transactions in doAccountTransactions.
2012-06-28 13:14:16 -07:00
JoelKatz
64f9f044c8 Remove some dead Transaction::getJson options. 2012-06-28 13:13:58 -07:00
JoelKatz
b712c192e6 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-06-28 13:13:29 -07:00
JoelKatz
d564c16268 Lexical casts that don't throw. 2012-06-28 13:12:50 -07:00
Arthur Britto
029bcfa6d9 Cosmetic, rename a few protobuf fields. 2012-06-28 01:01:44 -07:00
JoelKatz
9f2c4b163f Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-06-27 20:39:20 -07:00
JoelKatz
7d2e55346f Call NetworkOPs::pubTransaction. 2012-06-27 20:39:00 -07:00
Arthur Britto
87313e0ff1 Cosmetic. 2012-06-27 20:26:53 -07:00
JoelKatz
e383a59b5e Support validations with versions in them. 2012-06-27 13:33:22 -07:00
JoelKatz
dbabc6edd0 Don't claim to support HTTP keep alives and then close the connection. This
properly supports HTTP keep alives and should speed up RPC significantly.
2012-06-27 12:04:35 -07:00
JoelKatz
48de3f3a02 Cleanup. 2012-06-27 12:04:20 -07:00
JoelKatz
40c828df5e Small cleanup. 2012-06-27 12:04:12 -07:00
Arthur Britto
03342cacd8 Add WS transaction_subscribe and transaction_unsubscribe support. 2012-06-26 20:45:19 -07:00
Arthur Britto
1bf80d8c51 Add WS ledger_accounts_subscribe and ledger_accounts_unsubscribe. 2012-06-26 16:55:29 -07:00
jed
34273d74d7 compile on windows 2012-06-26 11:46:11 -07:00
Arthur Britto
d2a701059e Change rpcWRONG_PASSWORD to rpcNO_ACCOUNT. 2012-06-26 03:47:17 -07:00
Arthur Britto
0bcbb5bd75 Move RPC data_* commands data to db/rpc.db. 2012-06-26 03:39:15 -07:00
JoelKatz
4306be296a Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-06-26 02:02:09 -07:00
JoelKatz
fa48a1fb09 Fix the retrieve ledger hash problem for real. Make partial ledger operations work.
Set base code for how thin servers will operate on partial ledgers.
2012-06-26 02:01:13 -07:00