Commit Graph

175 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
Deirdre Connolly 905c225996
Renaming (#1)
* Update dependency graph generator to cargo-deps

* Renamed everything (pbtc|pzec) to zebra
2019-06-17 03:25:49 -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
Svyatoslav Nikolsky 5d26582830 name all (excl main) threads 2019-04-05 11:27:19 +03:00
Nikolay Volf bf9cb27353
Merge pull request #62 from paritytech/update-deps
Update and deduplicate dependencies
2019-03-25 11:53:25 +01:00
NikVolf 93b37f3192 update and dedup deps 2019-03-25 12:39:24 +03:00
Svyatoslav Nikolsky 481ad468ce do not decode (and also hash) messages that will be ignored because of syncing 2019-03-20 12:50:01 +03:00
Dimitris Apostolou cbf4c99d8b
Fix typos 2019-02-03 00:35:00 +02:00
Svyatoslav Nikolsky fdd78009a2 cleaning up 2018-11-14 11:53:32 +03:00
Svyatoslav Nikolsky 07069cab14 cleaning up 2018-11-14 10:37:27 +03:00
Svyatoslav Nikolsky 4b541b7138 cleaning up 2018-11-14 09:41:11 +03: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 c9132eb99d Merge branch 'master' into zcash_init 2018-11-12 12:31:14 +03:00
Svyatoslav Nikolsky 0e401952ab flush 2018-11-12 12:23:35 +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
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
Sun 820f11d565
Fix typo 2018-05-03 18:08:33 +08:00
5chdn 8fbdf6021d
Rename ConsensusFork::NoFork to ::BitcoinCore 2018-04-16 12:25:35 +02: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
Svyatoslav Nikolsky c46b21ed7a BitcoinCash: hardcoded DAA HF height 2018-01-08 19:26:06 +03:00
Svyatoslav Nikolsky f019ad62ac fixed BoxFuture-related warnings 2017-12-27 15:33:05 +03:00
Svyatoslav Nikolsky 261bd518fd BitcoinCash: difficulty adjustment fork 2017-11-02 17:02:16 +03:00
Svyatoslav Nikolsky 87ced3823a removed debug println 2017-11-01 12:33:15 +03:00
Svyatoslav Nikolsky 6db8c5e235 changed magic for BCH network 2017-11-01 12:30:15 +03:00
Svyatoslav Nikolsky 062a68204c segwit: sync changes 2017-08-22 14:40:04 +03:00
Svyatoslav Nikolsky d4a191aec1 segwit: initial flush 2017-08-22 14:39:10 +03:00
Svyatoslav Nikolsky d59d67ecd5 Merge branch 'master' into support_uahf 2017-08-14 10:15:34 +03:00
Svyatoslav Nikolsky 0e9b5fd89e merge good changes from sync_queue branch 2017-08-10 17:44:01 +03:00
Svyatoslav Nikolsky 333edfd257 fixed compilation && grumbles 2017-08-09 16:26:21 +03:00
Svyatoslav Nikolsky 127d662448 UAHF: set Services bit#5 + prefer nodes with bit#5 set 2017-08-08 12:17:36 +03:00
debris 5b8bf322b0 remove redundant recursion in p2p::io 2017-08-04 14:05:58 +02:00
Svyatoslav Nikolsky ed0aff798b send verack during handshake (0.14 compat) 2017-08-04 14:08:16 +03:00
Svyatoslav Nikolsky 8ce87528ec close connections to self nodes 2017-08-02 12:05:29 +03:00
Svyatoslav Nikolsky 045603c84a fixed warnings 2017-08-02 11:50:08 +03:00
Svyatoslav Nikolsky ee509fd696 Sync queue improvements: maintaining proper number of active connections on p2p level [WIP] (#396)
* autoconnect on start

* proper # of outbound connections in autoconnect

* close connection to seednode after receiving addr

* fixed seednodes list

* do not connect to same IPv4 && IPv6

* disconnect from seednode when >1 addr received
2017-04-14 08:28:41 +02:00
debris cd5287bb2d updated parking_lot to 0.4 2017-03-26 15:17:28 +07:00
debris 35c74d8948 use tokio_io::AsyncWrite in p2p lib 2017-03-25 16:20:45 +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
Marek Kotewicz accde5a5b2 Merge pull request #369 from ethcore/p2p_send_ping
Send ping requests on timeout
2017-01-23 06:01:04 +01:00
Svyatoslav Nikolsky 7c3bf1731c pass version message to sync 2017-01-11 17:54:30 +03:00
Svyatoslav Nikolsky 232bb3ada7 sing ping requests on timeout 2017-01-11 11:48:40 +03:00
Marek Kotewicz e1909f9b8b Merge pull request #349 from ethcore/p2p-stats
p2p statistics extended
2016-12-28 10:50:01 +01:00