Commit Graph

25 Commits

Author SHA1 Message Date
Weiliang Li 63b9ab8857 Rustfmt 2019-08-13 11:18:49 +02:00
c0gent 42919d730a
Add a node id type parameter. 2018-12-17 16:28:32 -08:00
c0gent 25a126aab4
Update to Rust 2018. 2018-12-07 08:44:48 -08:00
c0gent 796745d2a9
Move wire messaging code to `Peers`. 2018-11-19 12:43:22 -08:00
c0gent 5fab376f9b
Streamline message verification. 2018-11-19 12:10:47 -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 1898bea18c
Make `State::dhb` public, make `Hydrabadger::peers` public. 2018-10-19 14:32:54 -07:00
c0gent ebeb99b6fe
Replace qhb with dhb. 2018-10-03 20:14:04 -07:00
c0gent 778a55c73d
Sweep up some cobwebs. 2018-10-02 22:50:56 -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 748afafe46
Clean up. 2018-09-10 08:21:58 -07:00
c0gent 5e92945a5b
Allow `None` peer uid. 2018-09-04 14:58:55 -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 3ad0b635e2
Expand peer state transitions. 2018-07-22 01:29:10 -07:00
c0gent a8c7b930bc
More reorg./renaming. 2018-07-21 09:35:18 -07:00
c0gent 851da3a670
Major reorganization and clean-up. 2018-07-20 18:42:11 -07:00
c0gent 6ad1fb8700
Reimplement HB creation, input and msg handling. 2018-07-19 14:15:00 -07:00
c0gent f3d9bdfb2f
Complete key generation process using revamped systems and protocols. 2018-07-18 19:04:41 -07:00
c0gent bacfe7daf4
Completely revamp peer connection procedure. 2018-07-17 19:10:50 -07:00
c0gent 75723138b9
Abstract uid type. 2018-07-17 15:58:48 -07:00
c0gent 63d39abb69
Refactor txn. gen. and incoming connection code. 2018-07-17 14:37:10 -07:00
c0gent 729922ad32
Add `peer` module. 2018-07-17 14:06:23 -07:00