Commit Graph

42 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
Tomas Korcak b84f4dcc29
Update log 0.3 -> 0.4, env_logger 0.4 -> 0.5 2018-02-09 16:50:28 +01:00
5chdn c7abdcd2af
Default to default logging sync=info 2017-08-29 15:36:26 +02:00
Svyatoslav Nikolsky c21c81abe3 rollback command implemented 2017-08-23 12:24:09 +03:00
Svyatoslav Nikolsky 46a7c4f7f2 --verification-level && --verification-edge 2017-08-10 14:54:06 +03: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
Svyatoslav Nikolsky 07d4f00241 implemented blocknotify option 2017-01-10 11:58:55 +03:00
Svyatoslav Nikolsky 99aa1c2330 another porion of parity RPC copypaste 2016-12-07 16:14:52 +03:00
debris 066b59a304 replaced unwrap with expect 2016-12-01 10:46:03 +01:00
debris d7daed26cf basic print-to-console 2016-12-01 10:40:56 +01:00
debris eaf396b3cb default seednodes 2016-11-30 14:37:17 +01: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 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 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
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
debris b4719b1bac import is main subcommand 2016-11-03 11:53:39 +01:00
Svyatoslav Nikolsky 44c2faab59 added LocalNode tests 2016-10-31 18:22:02 +03:00
Svyatoslav Nikolsky 4f9d68cd99 Moved sync::BestBlock to db::BestBlock (#65)
* * moved BestBlock to db package
* use u32 as block index in sync package

* fixed compilation after merge
2016-10-31 14:58:48 +01:00
debris e8f4c054bb make import::blk fields public 2016-10-31 03:30:49 +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 98803d6afe integrating sync module with db && verification 2016-10-26 15:56:52 +03: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
Marek Kotewicz 6f6ad59113 removed unused code from p2p, clean up exported structs (#26)
* removed unused code from p2p module

* exposed p2p::NetConfig
2016-10-24 11:14:01 +03:00
debris 49bb034bbd added logger to p2p, fixed reading messages 2016-10-19 14:17:18 +02:00
debris e039068772 renamed Services 2016-10-18 01:44:52 +02:00
debris 3625fb06c2 updated dependency graph 2016-10-16 11:55:42 +02:00
debris 850ad58e5d p2p listen 2016-10-13 09:17:29 +02: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 362bfc6539 fixed pbtc imports 2016-10-03 17:20:36 +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 b365ec90ff connecting to a node in progress 2016-10-03 03:01:46 +02:00
debris 5aacf6ea38 cli port option and parsing to config 2016-09-30 16:25:28 +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