Commit Graph

83 Commits

Author SHA1 Message Date
Svyatoslav Nikolsky c9132eb99d Merge branch 'master' into zcash_init 2018-11-12 12:31:14 +03:00
Svyatoslav Nikolsky ad4f51ac07 BCH Nov2018 HF: OP_CHECKDATASIG + OP_CHECKDATASIGVERIFY 2018-10-16 15:45:27 +03:00
Svyatoslav Nikolsky eb55b2ae84 BCH Nov2018 HF: canonical transaction ordering 2018-10-16 11:28:32 +03:00
Svyatoslav Nikolsky da0c55db7a zcash serialization 2018-05-17 15:09:03 +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
Svyatoslav Nikolsky 47bb353a05 fixed new compiler version warnings 2017-11-06 18:06:12 +03:00
Svyatoslav Nikolsky bcdc1e6813 uahf: REQ-7 difficulty adjustment 2017-08-08 18:33:55 +03:00
Svyatoslav Nikolsky 7eccf8b888 per-fork min && max block size check 2017-08-08 11:23:21 +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
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
debris 21fdfabb0e consolidated TransactionOutputProvider and TransactionOutputObserver 2017-04-07 12:54:40 +07:00
debris 2074076c41 simplify verification code 2017-04-07 11:46:20 +07:00
debris 16fc1c01af test-data is only a dev-dependency, closes #390 2017-04-06 01:19:19 +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
debris f193a03fd6 updated csv && byteorder libraries 2017-03-12 16:05:35 +01:00
Svyatoslav Nikolsky a0020bbda0 Merge pull request #347 from ethcore/sync_v2
Sync refactoring
2016-12-27 14:33:42 +03:00
NikVolf b9dd932983 align with crate 2016-12-26 16:00:44 +03:00
Svyatoslav Nikolsky 9dad2a3eec Merge branch 'master' into sync_v2 2016-12-23 16:19:07 +03:00
Svyatoslav Nikolsky d696dcfdaf sync_v2 2016-12-23 16:13:18 +03:00
Marek Kotewicz 6521c3563e Merge pull request #340 from ethcore/expect-sanitation
Some of the expects extended explanation
2016-12-16 01:44:17 +01:00
debris a87ddbc2fc erge branch 'master' of github.com:ethcore/parity-bitcoin into docs 2016-12-15 16:07:51 +01:00
debris 721a31577b cleanup docs 2016-12-15 16:03:59 +01:00
NikVolf 0a7f30d6b9 memory pool expect explanation 2016-12-15 14:48:41 +01:00
debris f1f68f497b P2shCoinbaseTransactionBuilder && Magic::Unitest && removed skip_pow from chain_verification 2016-12-15 14:27:36 +01:00
Svyatoslav Nikolsky be53bbdc3e added some more tests 2016-12-14 14:22:02 +03:00
Svyatoslav Nikolsky f54b7691c4 Merge branch 'master' into fix_319 2016-12-14 00:17:47 +03:00
Svyatoslav Nikolsky 945c19a8eb replace non-final transactions in mempool 2016-12-14 00:14:07 +03:00
debris 7baaa47b8c import is hashing blocks when reading, added --skip-verification flag 2016-12-13 20:49:41 +01:00
Marek Kotewicz 591a642121 Merge pull request #316 from ethcore/few_optimizations_with_borrow_and_as_ref
few optimizations with Borrow and AsRef
2016-12-13 14:11:30 +01:00
debris 6ecdfd78c5 few optimizations with Borrow and AsRef 2016-12-13 13:33:06 +01:00
debris 8d7a45f2ca TransactionOutputGenerator always creates spendable transactions 2016-12-13 12:41:27 +01:00
debris d0c480565d applying suggestions from review and adding comments 2016-12-13 10:50:56 +01:00
debris 64a3d4d080 verification refactor almost done 2016-12-12 12:04:19 +01:00
debris 0df90a85bd use rayon for parallel verification 2016-12-11 17:42:26 +01:00
debris 06971497ee Merge branch 'master' into block_assembler_tests 2016-12-10 23:05:14 +01:00
debris f669a27d06 PreviousTransactionOutputProvider refactor in progress 2016-12-10 19:47:02 +01:00
debris 5171ce9585 Merge branch 'generic_as_substore' into block_assembler_tests 2016-12-10 14:06:46 +01:00
debris 087c314fd1 AsSubstore trait 2016-12-10 14:00:34 +01:00
debris bfd236a632 fixed block assembler iterator when one of previous transactions was ignored, iterator is also generic over entries 2016-12-10 12:24:46 +01:00
debris ee07970e19 BlockAssembler uses FittingTransactionsIterator 2016-12-10 11:57:34 +01:00
debris 9d0afa4592 Merge branch 'master' of github.com:ethcore/parity-bitcoin into indexed_block 2016-12-09 19:01:42 +01:00
debris df65e29658 refactor indexed_block, avoid unnecessery copying 2016-12-09 15:44:34 +01:00
Svyatoslav Nikolsky b564770037 implemented get_block_template in local_node 2016-12-09 17:05:53 +03:00
debris 033d423686 verification share some constants with miner module, block assemlber takes into account size of block header 2016-12-09 12:38:18 +01:00
debris cc0ff97ba5 configurable BlockAssembler 2016-12-09 11:41:11 +01:00
debris 3ca513d88f finished block assembler 2016-12-09 11:40:42 +01:00
debris 3080ade4bd sigops counting separated to its own module 2016-12-09 11:16:50 +01:00
debris 5a1041f72a change nbits: u32 -> bits: Compact, miner uses verification 2016-12-08 21:17:28 +01:00