Commit Graph

30 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
Svyatoslav Nikolsky 29f3996f26 cleaning up 2018-11-13 15:42:20 +03:00
Svyatoslav Nikolsky 1eb6cbe622 cleaning 2018-11-13 15:21:56 +03:00
Svyatoslav Nikolsky 3a1e6c9aa6 cleaning up 2018-11-13 14:20:25 +03:00
Svyatoslav Nikolsky d62342f3f1 fixed ser/de 2018-05-18 13:43:13 +03:00
Svyatoslav Nikolsky 7e47bd3b28 flush 2018-05-18 12:04:36 +03:00
5chdn 8fbdf6021d
Rename ConsensusFork::NoFork to ::BitcoinCore 2018-04-16 12:25:35 +02:00
Svyatoslav Nikolsky 261bd518fd BitcoinCash: difficulty adjustment fork 2017-11-02 17:02:16 +03:00
Svyatoslav Nikolsky 6db8c5e235 changed magic for BCH network 2017-11-01 12:30:15 +03:00
debris 5b8bf322b0 remove redundant recursion in p2p::io 2017-08-04 14:05:58 +02:00
debris acb1cbdfd2 use tokio_io::AsyncRead in p2p lib 2017-03-25 16:05:49 +07:00
debris 847cb36c6f chain verifier does not have hardcoded network constants 2016-11-25 18:38:21 +01:00
debris 5e5b49fee7 unit tests for reading header, payload and message 2016-10-28 15:02:22 +02:00
Marek Kotewicz b4828294f5 impl PartialEq<&a str> for Command (#27)
* impl PartialEq<&a str> for Command

* additional test for Command PartialEq

* fixed comparing "ver" and "version"
2016-10-24 11:54:03 +03:00
debris f283197a8d renamed PayloadType -> Payload, added common reexports in messages 2016-10-14 11:44:51 +02:00
debris 3c5d39c37b handling messages in progress 2016-10-13 15:24:37 +02:00
debris c2ea6c13ea get rid of specific_ keyword 2016-10-12 11:24:56 +02:00
debris 3c5f0a5294 p2p compiling after message cleanup 2016-10-10 18:32:02 +02:00
debris 3873cf6b6b message cleanup 2016-10-10 11:56:01 +02:00
debris 4417a5d9c7 p2p error handling overhaul 2016-10-07 16:50:49 +02:00
debris 045b607216 read_message does return only message 2016-10-06 14:48:29 +02:00
debris 338e198ac5 read_message stream propagates errors up 2016-10-06 01:44:26 +02:00
debris c0448f3110 p2p streams... 2016-10-05 17:23:50 +02:00
debris dc21039182 net lib renamed to message 2016-10-03 16:29:07 +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 9b7a3b789e handshake checks network magic number 2016-09-28 23:58:23 +02:00
debris c2b1af74a3 improved p2p::io 2016-09-28 19:45:22 +02:00
debris 22bfeabc41 bitcoin handshake init 2016-09-27 19:11:55 +02:00