Commit Graph

122 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
NikVolf 4b7cd140b7 fix couple of warnings 2019-05-21 16:04:25 +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
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 eb43e22cd3 explicint Indexed*::from_raw calls 2019-03-20 12:29:04 +03:00
Svyatoslav Nikolsky 0680e9835b read sapling commitment tree in getblocktemplate RPC 2019-03-05 15:12:51 +03:00
Dimitris Apostolou cbf4c99d8b
Fix typos 2019-02-03 00:35:00 +02:00
Svyatoslav Nikolsky 700ba96726 updated getblocktemplate RPC 2019-01-15 12:36:14 +03:00
Svyatoslav Nikolsky c1e53a8e7a Merge branch 'rpc_getblock' of https://github.com/paritytech/parity-zcash into rpc_getblock 2019-01-14 14:32:48 +03:00
Svyatoslav Nikolsky 6700c05e53 DummyVisitor -> BlockRefVisitor 2019-01-14 14:32:42 +03:00
Nikolay Volf 817acd616e
Update blockchain.rs 2019-01-14 14:29:09 +03:00
Svyatoslav Nikolsky 753b69995b getblock RPC 2019-01-14 13:50:41 +03:00
Svyatoslav Nikolsky f110b0be13 update getdifficulty RPC 2019-01-14 12:43:23 +03:00
Svyatoslav Nikolsky 78fafd7eae updated docs 2019-01-11 12:58:16 +03:00
Svyatoslav Nikolsky e7e2ce7c7c use jsonrpc from pzec_dependency_multiple_trailing_args branch 2019-01-11 12:52:20 +03:00
Svyatoslav Nikolsky 8881a7e529 update createrawtransaction (not compiling) 2019-01-11 12:26:55 +03:00
NikVolf c35738daae tabify some more 2019-01-09 12:04:58 +03:00
Svyatoslav Nikolsky 9de3272781 new transparent address format 2018-12-25 10:38:07 +03:00
Svyatoslav Nikolsky afb52268bb overwinter + sapling transactions (start) 2018-11-19 09:59:17 +03:00
Svyatoslav Nikolsky c19bf38801 cleaning up 2018-11-14 11:46:02 +03:00
Svyatoslav Nikolsky aa692d8a90 cleaning up 2018-11-14 11:37:28 +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
Guanghua Guo f5bac4d645
Fix Params deserialization on serde_json>=1.0.8
59cb86b7bd
2018-10-12 16:45:35 +08:00
Jean Pierre Dudey 334e2c154c Remove `rustc-serialize` and use the `rustc-hex` crate.
Signed-off-by: Jean Pierre Dudey <jeandudey@hotmail.com>
2018-08-10 09:06:52 -04:00
Svyatoslav Nikolsky 7e47bd3b28 flush 2018-05-18 12:04:36 +03:00
Svyatoslav Nikolsky da0c55db7a zcash serialization 2018-05-17 15:09:03 +03:00
Svyatoslav Nikolsky a32a223395 initial commit for Zcash support 2018-05-16 12:13:04 +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
debris 8bae8512fb updated dependencies 2017-11-27 11:22:51 +01:00
Svyatoslav Nikolsky 6db8c5e235 changed magic for BCH network 2017-11-01 12:30:15 +03:00
5chdn e6cadced03
Fix typos in rpc docs. 2017-08-31 16:14:04 +02:00
Svyatoslav Nikolsky d4a191aec1 segwit: initial flush 2017-08-22 14:39:10 +03:00
Svyatoslav Nikolsky 045603c84a fixed warnings 2017-08-02 11:50:08 +03:00
Svyatoslav Nikolsky 07f260b600 update dependencies 2017-08-02 11:38:08 +03:00
Nicolas Ochem c3172a71a1 add tests 2017-07-02 14:30:10 -07:00
Nicolas Ochem e628885a00 implement getblockcount api command
https://chainquery.com/bitcoin-api/getblockcount
2017-07-02 13:55:50 -07:00
debris e51b34ef4d keys::Address remote serialization 2017-05-06 17:55:17 +02:00
debris c20a4e505a updated serde to version 1.0 2017-05-05 14:36:54 +02:00
debris 9a389f9746 bip9, bip112, bip113 2017-05-03 14:34:02 +02:00
debris 57fd472db8 updated dependencies 2017-04-14 12:45:04 +02:00
debris 16fc1c01af test-data is only a dev-dependency, closes #390 2017-04-06 01:19:19 +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 6f54817ff9 updated jsonrpc modules and serde from 0.8 to 0.9 2017-03-07 17:55:19 +01:00
NikVolf b9dd932983 align with crate 2016-12-26 16:00:44 +03:00