Commit Graph

56 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
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
Deirdre Connolly c5ea64f6d6 Add (bit)crypto to workspace via path 2019-05-31 03:18:55 -04:00
Deirdre Connolly 3a77302b59 Add all packages with Cargo.toml's to the workspace
The primary reason for this is so that Dependabot will auto-detect them and
watch their dependencies for upgrades and known security vulnerabilities, but will
also automatically run all tests for the workspace packages with 'cargo test' without
remembering to include '--all', and build each package with 'cargo build'. I've
included 'test-data' here mostly because we want all dependencies inter-consistent
when possible even for test data/code, even if that means 'test-data' gets built
during 'cargo build --release'.
2019-05-30 18:36:13 -04:00
Deirdre Connolly 73a4676fc3 Reorganize top level dependencies and add chain to workspace 2019-05-30 18:36:13 -04:00
NikVolf 6cfcb328b3 add patch for heapsize 2019-03-15 19:45:28 +03:00
NikVolf dee2651ad2 Update binaries 2018-12-18 12:59:41 +03:00
Jean Pierre Dudey 64461a8157 Remove `doc` profile from Cargo.toml.
Signed-off-by: Jean Pierre Dudey <jeandudey@hotmail.com>
2018-08-07 13:49:37 -04:00
Ivan Sorokin 310483d5ed fix app_dirs breaking change for windows 2018-05-10 12:30:05 +02:00
Ivan Sorokin 8979bdcaf7 update app_dirs to 1.2.1 2018-05-09 22:40:56 +02:00
Aleksey Sidorov f120076cab Make parity-bitcoin usable for spv validation
- In this PR I extract from the crate `db` to the new `storage` crate all traits that is not specifically related to the concrete implementation of database. So I now can use `verification` crate without `rocksdb` dependency.

- Also I modify the `HeaderAcceptor` so that can be constructed without the private `BlockDeployments`.
2018-03-09 15:45:07 +03:00
Tomas Korcak b84f4dcc29
Update log 0.3 -> 0.4, env_logger 0.4 -> 0.5 2018-02-09 16:50:28 +01:00
debris 890bbb05d0 updated dependencies 2017-04-14 12:49:39 +02:00
Svyatoslav Nikolsky 4cb65e3409 Added couple of debug helpers to deal with panics and segfaults (#302)
* added couple of debug helpers to deal with panics

* trying to fix compilation

* trying to fix compilation

* test

* Revert "test"

This reverts commit 6169f7e1eb5cc7b43ea2e538686cb0144bf64712.
2017-04-05 21:19:10 +07:00
debris dd36a624fa updated dependencies and graph 2017-04-05 17:17:23 +07:00
Marek Kotewicz 77cfd9e8f7 db refactor (#385)
* db refactor in progress, refactored kvdb

* kvdb refactor

* removed unused RwLock

* removed unused RwLock

* BlockChainDatabase

* db refactor in progress

* implemented BlockProvider for newdb

* fixed compiling

* newdb TransactionMeta

* newdb tests

* reopen tests for newdb

* replaced old db with new db

* chain_verifier uses new db

* sync module uses refactored db

* check double spends in verification layer

* added Forkable trait to satisfy resolving recursive types by compiler

* new db regtests in progress

* fixed verification and sync unit tests

* fixed miner and rpc unit tests

* implemented fmt::Debug for few structs

* removed commented out code

* fixed bencher target

* removing commented out code, polishing db_refactor pr
2017-04-05 16:37:58 +07:00
Svyatoslav Nikolsky 19bc0b1261 updated dependencies + removed TODO 2017-01-30 12:47:20 +03:00
Svyatoslav Nikolsky ba918625d5 temporary switched to github version of tokio-core 2017-01-12 00:38:14 +03:00
Svyatoslav Nikolsky 07d4f00241 implemented blocknotify option 2017-01-10 11:58:55 +03:00
Svyatoslav Nikolsky 53bf8a26ac copypasted RPC framework from Parity 2016-12-07 13:30:31 +03:00
debris d7daed26cf basic print-to-console 2016-12-01 10:40:56 +01:00
debris 847cb36c6f chain verifier does not have hardcoded network constants 2016-11-25 18:38:21 +01:00
NikVolf b19408a0a8 dedicated bencer 2016-11-24 13:18:18 +03:00
debris 8d4e004a78 make tools/draw_graph.sh work again 2016-11-08 17:01:15 +01:00
debris 68a3bb2d34 linting in progress 2016-11-08 16:37:06 +01:00
debris 436d925ba6 clippy lints enabled for crypto, message, p2p, pbtc, primitives and serialization 2016-11-08 11:51:34 +01:00
debris 521482f2ec work on import command in progress 2016-11-03 17:19:35 +01:00
debris 05ed9567e9 import module 2016-10-31 03:12:44 +01:00
Svyatoslav Nikolsky 6f94a91b82 added option to sync with disk database (#45) 2016-10-27 16:26:12 +02:00
Svyatoslav Nikolsky b081ca3d70 Continue synchronization protocol impl (#30)
* 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

* started work on sync package

* send getaddr on connect

* fixed node_table insert, added insert_many

* addr protocol

* sync headers response

* continue sync

* continue sync protocol

* separated sync connection start from sync connection creation

* switched to getblocks (instead of getheaders)

* starting to receive blocks in sync

* deal with orphaned blocks in sync::local_chain

* continue sync

* fix warnings

* removed TODOs

* protocol::sync is back to private state

* fixed grumbes
2016-10-24 16:38:33 +02:00
NikVolf cc8f90fc3b Merge branch 'master' into verification 2016-10-20 17:10:19 +03:00
debris 49bb034bbd added logger to p2p, fixed reading messages 2016-10-19 14:17:18 +02:00
NikVolf eaf2240e6b Merge branch 'master' into verification 2016-10-18 17:55:52 +03:00
NikVolf 2991cc6193 crate layout 2016-10-17 22:27:45 +03:00
Svyatoslav Nikolsky e3968cfa46 Merge branch 'master' into mempool 2016-10-16 21:38:04 +03:00
Svyatoslav Nikolsky 40b1241ccf initial commit for MemoryPool 2016-10-16 21:32:11 +03:00
debris 3625fb06c2 updated dependency graph 2016-10-16 11:55:42 +02:00
NikVolf deefe60a13 key-value database initial 2016-10-13 14:13:50 +03:00
debris ffcb4d5a20 improved p2p interface 2016-10-04 12:33:23 +02:00
debris 742e9a6fff improved connect in main.rs 2016-10-04 02:06:45 +02:00
debris dc21039182 net lib renamed to message 2016-10-03 16:29:07 +02:00
debris c1184e4a9b listening for incomming connections and -connect works 2016-10-03 15:44:35 +02:00
debris 0f73927e51 added testnet and seednode cli options 2016-09-30 14:59:16 +02:00
debris 2bad1fdada created [[bin]] 2016-09-30 14:44:50 +02:00
debris 2f90b65454 tokio p2p init 2016-09-21 08:54:08 +02:00
debris b8b9235c4e net lib 2016-09-19 16:13:50 +02:00
debris fdc4bfe2d7 script lib 2016-09-19 16:09:05 +02:00
debris 0edcc08ab1 keys lib 2016-09-19 15:39:57 +02:00
debris e1a9f70429 chain structures separated from core 2016-09-19 15:23:37 +02:00
debris 744c53202e serialization separated to its own lib 2016-09-19 15:15:56 +02:00