Commit Graph

49 Commits

Author SHA1 Message Date
Weiliang Li 63b9ab8857 Rustfmt 2019-08-13 11:18:49 +02:00
c0gent 94546b0e2c
Update rand & hbbft. 2019-01-22 09:50:16 -08:00
c0gent 161b31f583
Reexport some HB types. 2019-01-21 18:09:30 -08:00
c0gent 42919d730a
Add a node id type parameter. 2018-12-17 16:28:32 -08:00
c0gent 0e28bf33cf
Re-export hbbft. 2018-12-09 11:14:44 -08:00
c0gent 25a126aab4
Update to Rust 2018. 2018-12-07 08:44:48 -08:00
c0gent 7cf63d8a42
Move instance id to `WireMessage`, route user instance messages. 2018-11-29 03:59:12 -08:00
c0gent 4ad23df2a3
Allow creation of arbitrary key generation instances.
Create using `Hydrabadger::new_key_gen_instance`.
2018-11-29 03:57:36 -08:00
c0gent e3b9d50251
Create a separate keygen msg type. 2018-11-26 17:37:25 -08:00
c0gent 5fab376f9b
Streamline message verification. 2018-11-19 12:10:47 -08:00
c0gent a6279c6952
Allow peer network restart, wrap `State` in `StateMachine`. 2018-11-15 15:21:33 -08:00
c0gent bcaf7aa698 Modify `WireMessages` to use peer public key. 2018-11-15 06:45:13 -08:00
Andreas Fackler 66b3cf0f47 Sign messages. 2018-11-15 06:45:13 -08:00
Andreas Fackler 51d526c51c Add voting method, some cleanups. (#13)
* Remove DistAlgorithm usage.

* Deduplicate DHB handling code.

* Add Hydrabadger::vote_for.

* Add DHB errors back into Error; they are Sync now.
2018-11-13 06:22:55 -08:00
Andreas Fackler 72203fe4c9 Fix some Clippy lints; migrate to new hbbft API.
This fixes the build with the modified hbbft `Step` type, and addresses
some uncontroversial Clippy warnings. Other Clippy lints are disabled.
2018-11-08 08:47:10 -08:00
c0gent e358806491
Add 'epoch listener' registration.
Allows a 'listener' to be informed when each new epoch begins. Useful
for coordinating contribution proposal with batch output.
2018-11-01 06:52:08 -07:00
c0gent a5d756d748
Add `HydrabadgerWeak`. 2018-10-23 12:00:18 -07:00
c0gent 48becddc7a
Derive `Eq` for `StateDsct`. 2018-10-15 15:13:10 -07:00
c0gent f96ab58f0c
Updates. 2018-10-12 12:56:10 -07:00
c0gent 83dba5f6ac
Fix bincode-bytes issue. 2018-10-04 07:08:29 -07:00
c0gent ebeb99b6fe
Replace qhb with dhb. 2018-10-03 20:14:04 -07:00
c0gent f624c5339b
Reexport batch-related types and cease printing batch output in full. 2018-10-02 22:30:55 -07:00
c0gent 7f8a57eeff
Updates: tokio, lock hbbft version (pre-rng-change). 2018-10-02 10:30:01 -07:00
c0gent 36783a04bc
Add batch output channel. 2018-10-02 09:47:11 -07:00
c0gent 76766df041
Embrace the formatting overlord. 2018-09-28 06:13:31 -07:00
c0gent f4e21d0d56
Add transaction type parameters everywhere. 2018-09-27 14:52:10 -07:00
c0gent 32d98fe62b
hbbft updates. 2018-09-10 12:08:55 -07:00
c0gent 748afafe46
Clean up. 2018-09-10 08:21:58 -07:00
c0gent cdc7b9ac13
Actually use command line txn gen options. 2018-08-04 20:03:09 -07:00
c0gent 340d1026d2
Re-enable system allocator. 2018-08-04 18:54:30 -07:00
c0gent 07d4f544d7
Downgrade bincode to 0.8. 2018-08-03 06:35:15 -07:00
c0gent 38528624f3
Add some debugging goodies. 2018-07-28 20:43:16 -07:00
c0gent 7c67d20e73
Troubleshoot stalling bug... 2018-07-23 16:18:19 -07:00
c0gent a46236aa31
Properly queue `Ack`s until all `Part`s are handled. 2018-07-23 14:12:18 -07:00
c0gent a205332977
Add WireMessageKind::Transactions. 2018-07-23 12:34:08 -07:00
c0gent 5b236d463e
Chasing peer-add bugs. 2018-07-23 12:01:13 -07:00
c0gent 6c7253ea48
Hbbft updates, properly update `state_dsct` after promotion. 2018-07-23 10:35:34 -07:00
c0gent ad9fbac615
Add more cmd line options. 2018-07-23 09:04:10 -07:00
c0gent 27075733d4
Initial (incomplete) observer implementation. 2018-07-21 23:51:23 -07:00
c0gent a8c7b930bc
More reorg./renaming. 2018-07-21 09:35:18 -07:00
c0gent 729922ad32
Add `peer` module. 2018-07-17 14:06:23 -07:00
c0gent 72bbd2ea86
Refactoring. 2018-07-17 12:52:40 -07:00
c0gent 31e16ca533
Add network state. 2018-07-12 15:32:39 -07:00
c0gent c1a7bc8953 Add internal messages and channel. 2018-07-11 13:06:20 -07:00
c0gent 221cd24c07 Send correct message upon connection. 2018-07-08 16:23:10 -07:00
c0gent 4f8478ce5b Serialize custom messages over p2p connections. 2018-07-08 15:08:37 -07:00
c0gent d0f515db70 Build up network infrastructure. 2018-07-02 19:36:12 -07:00
c0gent 3c6b25882b Clean up error handling. 2018-06-30 12:29:34 -07:00
c0gent 9917915845 Adapt from hbbft example. 2018-06-30 12:00:23 -07:00