Commit Graph

45 Commits

Author SHA1 Message Date
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 6db8c5e235 changed magic for BCH network 2017-11-01 12:30:15 +03:00
Svyatoslav Nikolsky 0fcf1fac5b firce user to select chain on first run 2017-09-01 16:57:29 +03:00
Svyatoslav Nikolsky c21c81abe3 rollback command implemented 2017-08-23 12:24:09 +03:00
Svyatoslav Nikolsky b60d431314 lost files 2017-08-14 10:24:57 +03:00
Svyatoslav Nikolsky d59d67ecd5 Merge branch 'master' into support_uahf 2017-08-14 10:15:34 +03:00
Svyatoslav Nikolsky 46a7c4f7f2 --verification-level && --verification-edge 2017-08-10 14:54:06 +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
Svyatoslav Nikolsky e93e5ef35a propagate ConsensusParams with ConsensusFork 2017-08-08 09:52:54 +03: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 d005307db9 get rid of custom cpu pool in sync 2017-01-11 16:36:33 +03:00
Svyatoslav Nikolsky 07d4f00241 implemented blocknotify option 2017-01-10 11:58:55 +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
debris 2beb3aa7d2 updated jsonrpc libraries to latest version, support for jsonrpc v1 2016-12-20 11:42:51 +01:00
debris 7baaa47b8c import is hashing blocks when reading, added --skip-verification flag 2016-12-13 20:49:41 +01:00
Svyatoslav Nikolsky f14f809401 Merge branch 'master' into rpc_blockchain 2016-12-13 13:39:46 +03:00
Svyatoslav Nikolsky 9e1932e7f9 finished gettxout implementation 2016-12-12 21:49:01 +03:00
NikVolf c19740d3eb finalizing api 2016-12-12 19:18:43 +01:00
Svyatoslav Nikolsky 2f0b42a5b5 Merge branch 'master' into sync_sendrawtransaction 2016-12-08 18:33:37 +03:00
Svyatoslav Nikolsky 23da291f95 accept_transaction 2016-12-08 14:48:00 +03:00
Marek Kotewicz e2afb545d3 Merge pull request #264 from ethcore/rpc_framework_copypaste
Copypasted RPC framework from Parity
2016-12-08 10:08:03 +01:00
Svyatoslav Nikolsky 6e87350a6f changed relay to true in version message 2016-12-07 16:40:57 +03:00
Svyatoslav Nikolsky 99aa1c2330 another porion of parity RPC copypaste 2016-12-07 16:14:52 +03:00
debris 67635a9336 Merge branch 'master' into onlynet 2016-11-30 17:08:49 +01:00
debris ca49061df0 command line option to limit connections only to ipv4 or ipv6 2016-11-30 16:01:11 +01:00
debris eaf396b3cb default seednodes 2016-11-30 14:37:17 +01:00
Svyatoslav Nikolsky 9a6c5c8579 support semi-unordered blocks import 2016-11-30 12:16:29 +03:00
debris 847cb36c6f chain verifier does not have hardcoded network constants 2016-11-25 18:38:21 +01:00
debris e1a2915a90 do not wait idiotic 30 seconds when running regtests 2016-11-25 12:39:51 +01:00
Svyatoslav Nikolsky ce8f896efb custom data dir option 2016-11-25 09:58:04 +03:00
Svyatoslav Nikolsky 035583fac1 Merge branch 'master' into respect_minimal_protocol_version 2016-11-17 08:23:01 +03:00
debris fe9828dbdc respect minimal protocol version, fixed #141 2016-11-17 01:02:43 +01:00
debris 56e2dc02b1 limit number of inbound and outbound connections for regtests 2016-11-17 00:33:35 +01:00
debris e07dfbb6c1 p2p thread pool for regtest has only 1 thread 2016-11-17 00:18:04 +01:00
Svyatoslav Nikolsky b152c8178d introduced ConsensusParams + BIP65 support 2016-11-15 14:00:46 +03:00
debris 436d925ba6 clippy lints enabled for crypto, message, p2p, pbtc, primitives and serialization 2016-11-08 11:51:34 +01:00
debris 9e501fe5d0 shutdown gracefully on incompatible db open 2016-11-07 11:20:41 +01:00
Svyatoslav Nikolsky d30520c981 added support for regnet && testnet genesis blocks 2016-11-07 12:15:15 +03:00
debris 5b93c5dc40 regression tests support 2016-11-05 15:32:57 +01:00
Marek Kotewicz efa100a253 Merge pull request #87 from ethcore/sync_manager
Initial sync manager version
2016-11-04 13:08:09 +01:00
debris fc32423017 save node_table to $APP_DIR/p2p/nodes.csv 2016-11-04 12:08:58 +01:00
Svyatoslav Nikolsky fedb8581d2 initial sync manager version 2016-11-04 12:36:58 +03:00
debris 521482f2ec work on import command in progress 2016-11-03 17:19:35 +01:00