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
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
Arthur Britto
ab0da033c3
Add support for JSON-RPC subscriptions.
2012-12-29 16:07:29 -08:00
Arthur Britto
192dae3b74
Stub subscribe for JSON-RPC.
2012-12-29 14:42:38 -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
9124c91884
Ping websocket connections every two minutes.
...
Detect and close non-responsive connections.
UNTESTED
2012-12-25 10:19:24 -08:00
JoelKatz
cc7b1434c7
Begin tying in the new transaction queue code.
2012-12-19 11:31:33 -08:00
JoelKatz
8a1033caad
Second round of removing extraneous copy constructor and destructor calls.
2012-12-17 20:31:26 -08:00
JoelKatz
2a06686b7c
Round one of fixes to avoid ridiculous numbers of spurious copy constructor and destructor calls.
...
Most of these fixes involve calls to BOOST_FOREACH to iterate over a map or unordered_map where the
iterator type didn't perfectly match the internal type, so a reference into the map couldn't be created
and a new value/content pair had to be created for each iteration.
2012-12-17 20:20:24 -08:00
Arthur Britto
f93dc7a7b4
Fix network state reporting in server and client.
2012-12-14 16:34:11 -08:00
Stefan Thomas
cbb1e50222
Add event allowing client to track server's network connectivity.
2012-12-06 12:33:41 -08:00
JoelKatz
1d2bb868b6
Remove RAND_bytes calls.
2012-12-06 10:55:56 -08:00
Arthur Britto
de9cffe5c5
Emit 256 bits of random on RPC server subscribe.
2012-12-06 00:02:02 -08:00
Arthur Britto
5b68f2a15d
Refactor NetworkOps and RPC to specify account_index and ledgers better.
2012-12-05 18:02:41 -08:00
JoelKatz
d046730223
Latency targets.
2012-12-03 04:40:26 -08:00
JoelKatz
41fe8f4443
Count InfoSub's.
2012-11-30 03:48:49 -08:00
Stefan Thomas
e8abe71ea8
Add the ledger time to the JSON account transaction event.
2012-11-29 22:01:45 -08:00
jed
0865c99cee
windows
2012-11-29 18:28:49 -08:00
Stefan Thomas
eb185769fa
Fix account_tx - metadata was being read from incorrect db column.
2012-11-29 17:10:13 -08:00
JoelKatz
0fe9f178ef
NetworkOPs function to test if we have in our database a specified range of ledger numbers.
2012-11-29 11:46:22 -08:00
jed
92cee7d089
Merge branch 'master' of github.com:jedmccaleb/NewCoin into notdone
2012-11-29 09:23:08 -08:00
jed
32c231ab57
add meta to account_tx
2012-11-29 09:22:44 -08:00
jed
e90a1a404d
still working
2012-11-28 16:29:15 -08:00
JoelKatz
72777b6b83
Remove some shared pointers on load monitors.
2012-11-28 15:53:07 -08:00
JoelKatz
6aca65ff76
Get the shared pointers out of the scoped lock stuff. We don't need it.
2012-11-28 15:27:20 -08:00
jed
89f02efc16
option to return date of transaction in the JSON
2012-11-23 17:58:48 -08:00
JoelKatz
6bc817d377
Don't use the most expensive synchronization primitives available.
2012-11-23 12:43:16 -08:00
JoelKatz
8b53f85f60
Separate ledger publish logic so we can tell if clients are overloading us.
2012-11-23 12:15:04 -08:00
jed
48bb22afac
meta
2012-11-21 15:07:57 -08:00
JoelKatz
c36d967de8
Fix a bug in TransactionMaster::fetch. Also, don't use this anyway.
2012-11-21 13:45:09 -08:00
JoelKatz
89d54999c9
Rework the way the results of ledger and TX map acquisition is passed up and down the
...
call chain so that the peer logic will know how helpful peers are being, not just whether
they're sending invalid data.
2012-11-21 09:28:09 -08:00
JoelKatz
b79a927c28
Tweak.
2012-11-19 15:45:35 -08:00
JoelKatz
08f271443d
Start to hook this stuff up.
2012-11-19 15:33:49 -08:00
jed
8866ac384f
.
2012-11-14 16:47:49 -08:00
jed
2c2a8b5660
Merge branch 'master' of github.com:jedmccaleb/NewCoin into api2
2012-11-14 13:23:41 -08:00
Arthur Britto
496fd33481
JS: Clean up setting command rpc.
2012-11-13 14:06:07 -08:00
jed
c1611f3b07
meta
2012-11-12 17:00:11 -08:00
jed
5e9df112a1
clean
2012-11-12 06:39:07 -08:00
jed
362e3da97d
send creditSet to B
2012-11-11 16:51:11 -08:00
JoelKatz
40527cca2b
Start adding support for concurrent I/O.
2012-11-09 14:14:47 -08:00
JoelKatz
3b2275a83b
Fully asynch transaction handler. Now we need to use it.
2012-11-09 07:26:26 -08:00
Stefan Thomas
fa3fab5816
Moved cpp code to src/cpp and js code to src/js.
2012-11-07 12:49:50 -08:00