Commit Graph

303 Commits

Author SHA1 Message Date
Anatoly Yakovenko
55b8d0db4d cleanup 2018-04-23 23:33:21 -07:00
Anatoly Yakovenko
3d7969d8a2 initial crdt implementation 2018-04-23 23:06:28 -07:00
rleungx
3da1fa4d88 improve the error messages 2018-04-21 21:52:55 +08:00
Greg Fitzgerald
10a0c47210 Merge pull request #137 from garious/linux-hang
Workaround linux hang
2018-04-19 11:46:48 -06:00
Stephen Akridge
8181bc591b Add -h/--help options for client-demo and testnode 2018-04-19 10:22:31 -07:00
Greg Fitzgerald
c6048e2bab Workaround linux hang
Without this patch, Linux systems would hang when running the demo.

The root cause (why Linux is acting differently than macOS) was
not determined, but we know the problem is caused by a known
issue in the transaction pipeline - that entries are not pulled
off the historian channel until after the full transaction batch
is processed. This patch makes the sync_channel large enough that
it should never block on a gigabit network.
2018-04-19 10:04:32 -07:00
rleungx
60015aee04 report serde parse errors to stderr 2018-04-19 23:51:57 +08:00
Greg Fitzgerald
43e6741071 Merge pull request #134 from rleungx/report-parse-errors-to-stderr
report parse errors to stderr
2018-04-19 08:38:38 -06:00
rleungx
b91f6bcbff report parse errors to stderr 2018-04-19 22:24:46 +08:00
kwangin
13a2f05776 Remove out for immutable variable 2018-04-19 23:00:16 +09:00
Stephen Akridge
dea5ab2f79 Add erasure rust logic under feature flag 2018-04-18 19:42:09 -07:00
Anatoly Yakovenko
29f3230089 docs 2018-04-17 19:53:18 -07:00
Anatoly Yakovenko
d003efb522 fix docs 2018-04-17 19:52:46 -07:00
Anatoly Yakovenko
97e772e87a docs 2018-04-17 19:46:50 -07:00
Anatoly Yakovenko
0b33615979 udpate 2018-04-17 12:48:06 -07:00
Anatoly Yakovenko
249cead13e docs 2018-04-17 11:07:43 -07:00
Anatoly Yakovenko
7c96dea359 fmt 2018-04-17 11:05:35 -07:00
Anatoly Yakovenko
374c9921fd comments 2018-04-17 11:05:15 -07:00
Anatoly Yakovenko
fb55ab8c33 format 2018-04-16 21:02:37 -07:00
Anatoly Yakovenko
13485074ac test cast 2018-04-16 20:57:15 -07:00
Anatoly Yakovenko
4944c965e4 update
heap

update

update

wip

use a vec and sort

builds

update

tests

update

fmt

update

progress

fmt

passes needs retransmit test

tests

cleanup

update

update

update

update

fmt
2018-04-16 20:33:09 -07:00
Greg Fitzgerald
7fc42de758 Fix bench 2018-04-13 00:36:23 -04:00
Greg Fitzgerald
0a30bd74c1 Tell verifiers when not to parallelize accounting
Without this patch, many batches of transactions could be tossed
into a single entry, but the parallelized accountant can only
guarentee the transactions in the batch can be processed in
parallel.

This patch signals the historian to generate a new Entry after
each batch. Validators must maintain sequential consistency
across Entries.
2018-04-12 21:08:53 -06:00
Greg Fitzgerald
9b12a79c8d cargo +nightly fmt 2018-04-12 17:04:11 -06:00
Stephen Akridge
8dc15b88eb Add skel test which sends a bad transaction, verify it doesn't make it 2018-04-12 15:01:59 -07:00
Anatoly Yakovenko
c2eeeb27fd bump timer 2018-04-12 11:12:10 -07:00
Anatoly Yakovenko
180d8b67e4 requests to packets function 2018-04-12 10:44:09 -07:00
Greg Fitzgerald
51633f509d Fix test
The test was meant to ensure the signature covered the 'tokens'
field, but then when the 'plan' field was rolled in, Transaction::verify()
started failing because Plan::verify() failed. When Transaction::verify()
was split into two, the unexpected failure was exposed but went unnoticed.
This patch brings it back to its original intent, to ensure signature
verification fails if the network attempts to change the client's payment.
2018-04-11 22:17:21 -06:00
Greg Fitzgerald
705228ecc2 Remove redundant signs 2018-04-11 22:17:21 -06:00
Greg Fitzgerald
3b9ef5ccab Fix the nightly build 2018-04-11 20:24:14 -06:00
Greg Fitzgerald
be9a670fb7 Add process_packets() benchmark 2018-04-11 18:02:45 -06:00
Greg Fitzgerald
6e43e7a146 Enable parallelized accountant 2018-04-11 18:01:59 -06:00
Greg Fitzgerald
ab2093926a Merge pull request #120 from aeyakovenko/fix_bench_compile
fix compile error
2018-04-11 18:01:13 -06:00
Anatoly Yakovenko
2ef3db9fab fix compile error 2018-04-11 15:40:25 -07:00
Stephen Akridge
6987b6fd58 Add tests for ecdsa sig checking 2018-04-11 12:29:44 -07:00
Greg Fitzgerald
50ccecdff5 Refactor 2018-04-11 09:02:33 -06:00
Greg Fitzgerald
e838a8c28a Delete unused function 2018-04-10 21:56:13 -06:00
Greg Fitzgerald
e5f7eeedbf Use iterators 2018-04-10 21:48:26 -06:00
Greg Fitzgerald
d1948b5a00 Zip earlier
And remove redundant into_iter() calls.
2018-04-10 21:18:39 -06:00
Anatoly Yakovenko
c934a30f66 commandline options for client and testnode 2018-04-09 21:14:52 -07:00
Anatoly Yakovenko
f330739bc7 Recycler test should verifyt that its recycling 2018-04-07 07:08:42 -07:00
Greg Fitzgerald
584c8c07b8 Better symmetry
deserialize -> process -> serialize
2018-04-06 16:34:59 -06:00
Greg Fitzgerald
a93ec03d2c Move creating blobs into its own function 2018-04-06 16:22:02 -06:00
Greg Fitzgerald
7bd3a8e004 Reduce cyclomatic complexity 2018-04-06 16:12:13 -06:00
Greg Fitzgerald
912a5f951e Why is msgs cloned here? 2018-04-06 15:58:11 -06:00
Greg Fitzgerald
6869089111 Parallelize deserialize 2018-04-06 15:52:58 -06:00
Greg Fitzgerald
6fd32fe850 Cleanup constants 2018-04-06 15:43:05 -06:00
Greg Fitzgerald
81e2b36d38 Cleanup packet_verify 2018-04-06 15:24:15 -06:00
Greg Fitzgerald
7d811afab1 Parallelize CPU sig verify 2018-04-06 15:21:49 -06:00
Greg Fitzgerald
5fc81dd6c8 Fix the nightly build
Nightly uses a different (but backward compatible) version of rustfmt.
2018-04-05 22:39:29 -06:00