Commit Graph

28 Commits

Author SHA1 Message Date
Henry de Valence 22c3bdeb61 Prefix workspace crates with zebra- (#70)
* Update license and author metadata in workspace crates.

- ensure that the license field is set to GPL-3 for all GPL-3 licensed crates;
- ensure that the author field is set to "Zcash Foundation", responsible for maintenance;
- preserve the original authorship info in AUTHORS.md for human-readable history.

Updating the author field ensures that all of the machine systems that read
crate metadata list the ZF organization, not any single individual, as the
maintainer of the crate.

* Prefix all internal crate names with zebra-.

This does not move the directories containing these crates to also have zebra-
prefixes (for instance, zebra-chain instead of chain).  I think that this would
be preferable, but because it's a `git mv`, it will be simple to do later and
leaving it out of this change makes it easier to see the renaming of all of the
internal modules.

* Remove git dependency from eth-secp256k1

* Avoid an error seemingly related to Deref coercions.

This code caused an overflow while evaluating type constraints.  As best as I
can determine, the cause of the problem was something like so: the Rust
implementation of the Bitcoin-specific hash function used in the Bloom filter
doesn't operate on byte slices, but only on a `&mut R where R: Read`, so to
hash a byte slice, you need to create a mutable copy of the input slice which
can be consumed as a `Read` implementation by the hash function; the previous
version of this code created a slice copy using a `Deref` coercion instead of
`.clone()`, and when a tokio update added new trait impls, the type inference
for the `Deref` coercion exploded (somehow -- I'm not sure about the last
part?).

This commit avoids the problem by manually cloning the input slice.
2019-07-02 15:07:06 -04:00
dependabot-preview[bot] e2e475e652
Bump tokio-io from 0.1.11 to 0.1.12
Bumps [tokio-io](https://github.com/tokio-rs/tokio) from 0.1.11 to 0.1.12.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Changelog](https://github.com/tokio-rs/tokio/blob/tokio-io-0.1.12/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-io-0.1.11...tokio-io-0.1.12)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-05 20:12:15 +00:00
dependabot-preview[bot] 51a4749e2c
Bump parking_lot from 0.7.1 to 0.8.0
Bumps [parking_lot](https://github.com/Amanieu/parking_lot) from 0.7.1 to 0.8.0.
- [Release notes](https://github.com/Amanieu/parking_lot/releases)
- [Changelog](https://github.com/Amanieu/parking_lot/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Amanieu/parking_lot/compare/0.7.1...0.8.0)
2019-06-02 01:06:11 +00:00
NikVolf 93b37f3192 update and dedup deps 2019-03-25 12:39:24 +03:00
Jean Pierre Dudey 7727886085 Update `csv` crate to 1.0
Signed-off-by: Jean Pierre Dudey <jeandudey@hotmail.com>
2018-08-10 09:29:42 -04:00
Tomas Korcak b84f4dcc29
Update log 0.3 -> 0.4, env_logger 0.4 -> 0.5 2018-02-09 16:50:28 +01:00
Tomas Korcak 03a99de2f3
Update rand 0.3 -> 0.4 2018-02-05 15:25:36 +01:00
debris cd5287bb2d updated parking_lot to 0.4 2017-03-26 15:17:28 +07:00
debris acb1cbdfd2 use tokio_io::AsyncRead in p2p lib 2017-03-25 16:05:49 +07:00
debris 35f84b4cb9 updated tokio-core and dependant crates 2017-03-20 14:18:22 +01:00
debris f193a03fd6 updated csv && byteorder libraries 2017-03-12 16:05:35 +01:00
debris bcc84f6f6f updated dependencies and graph 2016-11-28 10:37:17 +01:00
debris 847cb36c6f chain verifier does not have hardcoded network constants 2016-11-25 18:38:21 +01:00
debris fc32423017 save node_table to $APP_DIR/p2p/nodes.csv 2016-11-04 12:08:58 +01:00
debris 448259328d connect to multiple nodes automatically 2016-11-03 00:22:23 +01:00
debris b32bf9f29f handshake tests 2016-10-30 11:44:10 +01:00
debris e1e532d5a6 updated dependencies and graph 2016-10-25 10:07:25 +02:00
Marek Kotewicz 6ac07659b6 seednodes dns lookup (#34)
* fixed compile error after merging 29 & 30

* dns lookup

* connect to seednode
2016-10-25 09:55:43 +02:00
Marek Kotewicz 02816aaa4e addr protocol && start of sync protocol (#25)
* p2p <-> sync interfaces proposal

* updated with example

* send errors will be handled in p2p module => no need to return to the sync

* poc of outbound sync connection

* simplified send_to_peer

* context has cpu pool and enent loop handles

* on_message won't return ProtocolAction anymore

* session initialized sync protocol, remove retain cycles on P2P::drop

* removed ProtocolAction

* uncommented ping protocol

* node_table sorts nodes also by recently used time

* send getaddr on connect

* fixed node_table insert, added insert_many

* addr protocol

* added TODO: remove
2016-10-24 10:42:11 +03:00
debris 49bb034bbd added logger to p2p, fixed reading messages 2016-10-19 14:17:18 +02:00
debris f7bfa16195 p2p in progress 2016-10-17 10:52:15 +02:00
debris 25c7d20c1e p2p module in progress 2016-10-12 19:39:50 +02:00
debris 5169ea0016 p2p module in progress 2016-10-12 14:30:50 +02:00
debris dc21039182 net lib renamed to message 2016-10-03 16:29:07 +02:00
debris 92a24417fa p2p rand and time utils 2016-09-29 19:30:17 +02:00
debris b33be279e0 validating message checksum 2016-09-29 18:53:18 +02:00
debris 5a535cf03c first correct handshake 2016-09-29 17:09:15 +02:00
debris 2f90b65454 tokio p2p init 2016-09-21 08:54:08 +02:00