Commit Graph

239 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
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 9a1d94b487 fix comment 2019-04-10 11:07:58 +03:00
Svyatoslav Nikolsky 1bc2d94816 improve tracing during canonization/decanonization 2019-04-10 10:44:41 +03:00
Svyatoslav Nikolsky a31b7c0ac7
Merge pull request #63 from paritytech/minimize_hashing2
Minimize chain structures hashing (part#2)
2019-03-25 18:08:09 +03:00
Svyatoslav Nikolsky 961993e0a8 minimize hashing #2 2019-03-25 14:41:44 +03:00
NikVolf 93b37f3192 update and dedup deps 2019-03-25 12:39:24 +03:00
Svyatoslav Nikolsky f83f7a53ad removed obsolete ConfigStore trait 2019-03-12 12:48:38 +03:00
Svyatoslav Nikolsky 8c38105a2a do not store sapling ct root aside from the header 2019-03-08 08:52:05 +03:00
Svyatoslav Nikolsky 3099c66ba1 store Sprout + Sapling commitment tree states in single column 2019-03-06 14:54:36 +03:00
Svyatoslav Nikolsky 807822a9fd update sapling commitment tree on block insert 2019-03-05 13:55:28 +03:00
Svyatoslav Nikolsky 2a80149e1a prepare for Sapling note commitment tree 2019-03-04 14:53:36 +03:00
Dimitris Apostolou cbf4c99d8b
Fix typos 2019-02-03 00:35:00 +02:00
NikVolf 2a72d6e85f cache distribution 2019-01-18 16:01:54 +03:00
Nikolay Volf 04052c6e43
Merge pull request #39 from paritytech/nv4
Commitments tree storing
2019-01-18 15:37:13 +03:00
NikVolf 4ac862f51c add logic to the db 2019-01-17 13:36:52 +03:00
NikVolf c833d392c4 block roots in db 2019-01-16 17:39:54 +03:00
NikVolf 0219337d1e update db 2019-01-14 14:43:04 +03:00
Svyatoslav Nikolsky f110b0be13 update getdifficulty RPC 2019-01-14 12:43:23 +03:00
Svyatoslav Nikolsky 4d6d97d871 change gith ref to rocksdb crate 2019-01-11 12:51:31 +03:00
NikVolf c35738daae tabify some more 2019-01-09 12:04:58 +03:00
NikVolf 55e0c661a1 refactor nullifier tag to epoch tag 2018-12-27 13:23:57 +03:00
Svyatoslav Nikolsky d8907d36e5 checking sapling nullifiers 2018-12-21 10:11:19 +03:00
NikVolf 33be1815e5 remove bloom value 2018-12-03 16:16:14 +03:00
NikVolf 1d266aad2b add trace/warnings 2018-12-03 14:52:12 +03:00
NikVolf 5b62e5b639 reserve some columns 2018-12-03 14:44:54 +03:00
NikVolf c1e44e86db canonize/decanonize database update 2018-12-03 14:29:04 +03:00
NikVolf 0052703c0a also for keyvalue 2018-12-02 21:08:46 +03:00
NikVolf 9aa90a45e9 memory db and key types 2018-12-02 20:58:01 +03:00
NikVolf 2d6e6c3136 nullifier in database 2018-11-30 18:54:17 +03:00
NikVolf 326bca1ae5 nullifier in storage 2018-11-30 18:25:59 +03:00
Svyatoslav Nikolsky 3a1e6c9aa6 cleaning up 2018-11-13 14:20:25 +03:00
Aleksei Sidorov 89f6e80596 Remove obsolete file 2018-03-12 15:42:49 +03: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
Svyatoslav Nikolsky c1cf82ffe6 Into<String> -> From<String> 2017-09-01 22:04:14 +03:00
Svyatoslav Nikolsky 0fcf1fac5b firce user to select chain on first run 2017-09-01 16:57:29 +03:00
Svyatoslav Nikolsky 3db431aa8e added deployments tests from bitcoin + fixes 2017-08-31 09:34:00 +03:00
Svyatoslav Nikolsky c21c81abe3 rollback command implemented 2017-08-23 12:24:09 +03:00
Svyatoslav Nikolsky 045603c84a fixed warnings 2017-08-02 11:50:08 +03:00
debris 95255d0f58 versionbits in progress 2017-04-27 15:58:16 +02:00
debris 5f7b42c80f versionbits in progress 2017-04-25 19:09:02 +02:00
debris 382efe12c6 pr cleanup 2017-04-24 13:52:58 +02:00
debris 362d9bf2dc cache most recent 2000 block headers 2017-04-24 13:46:09 +02:00
debris 09f25c4f2f db refactor finished 2017-04-21 15:26:19 +02:00
debris f4c958e9f2 db cache refactor in progress 2017-04-21 13:59:06 +02:00
debris 6aa78e42e1 db cache refactor in progress 2017-04-21 09:54:18 +02:00
Svyatoslav Nikolsky 11c6411a41 Merge pull request #394 from paritytech/consolidate
Consolidate database traits
2017-04-10 08:03:28 +03:00
debris 0155c6e4ef revert is_double_spent -> is_spent 2017-04-09 14:10:40 +08:00