Commit Graph

15 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
Henry de Valence 891226069a Run cargo fmt 2019-06-28 15:26:18 -07:00
Dimitris Apostolou cbf4c99d8b
Fix typos 2019-02-03 00:35:00 +02:00
Sun 820f11d565
Fix typo 2018-05-03 18:08:33 +08:00
Svyatoslav Nikolsky 127d662448 UAHF: set Services bit#5 + prefer nodes with bit#5 set 2017-08-08 12:17:36 +03:00
debris ca49061df0 command line option to limit connections only to ipv4 or ipv6 2016-11-30 16:01:11 +01:00
Svyatoslav Nikolsky 035583fac1 Merge branch 'master' into respect_minimal_protocol_version 2016-11-17 08:23:01 +03:00
debris fe9828dbdc respect minimal protocol version, fixed #141 2016-11-17 01:02:43 +01:00
debris 56e2dc02b1 limit number of inbound and outbound connections for regtests 2016-11-17 00:33:35 +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
Svyatoslav Nikolsky 36e30ef5ce support connect to given port via command line 2016-11-02 10:25:09 +03: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
debris e039068772 renamed Services 2016-10-18 01:44:52 +02:00
debris ffcb4d5a20 improved p2p interface 2016-10-04 12:33:23 +02:00