Commit Graph

21 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
Tomas Korcak 03a99de2f3
Update rand 0.3 -> 0.4 2018-02-05 15:25:36 +01: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
debris cd5287bb2d updated parking_lot to 0.4 2017-03-26 15:17:28 +07:00
debris f193a03fd6 updated csv && byteorder libraries 2017-03-12 16:05:35 +01:00
Svyatoslav Nikolsky ba918625d5 temporary switched to github version of tokio-core 2017-01-12 00:38:14 +03:00
debris bcc84f6f6f updated dependencies and graph 2016-11-28 10:37:17 +01:00
Svyatoslav Nikolsky d331dfde32 Merge branch 'master' into sync_cmpctblk 2016-11-27 17:53:34 +03:00
debris 847cb36c6f chain verifier does not have hardcoded network constants 2016-11-25 18:38:21 +01:00
Svyatoslav Nikolsky 494ef56858 process cmpctblock message 2016-11-25 18:07:03 +03:00
Svyatoslav Nikolsky 62d5daf29b added tests for merkleblock message 2016-11-24 12:26:37 +03:00
Svyatoslav Nikolsky cc48f0a75f initial connection filter commit 2016-11-22 18:03:07 +03:00
Svyatoslav Nikolsky c24af2daed fix test + process inventory 2016-11-10 15:16:16 +03:00
Svyatoslav Nikolsky fedb8581d2 initial sync manager version 2016-11-04 12:36:58 +03:00
Svyatoslav Nikolsky 3319e5e1f5 serving mempool request 2016-11-02 15:18:52 +03:00
Svyatoslav Nikolsky 0b212ec5eb Serving some sync requests (#73)
* started work on synchronization_server

* continue synchronization server

* added response to getblocks message

* renamed Synchronization to Client

* LocalNode parametrized by Server

* LocalNode parametrized by Client

* fixed test

* support connect to given port via command line

* fixed couple of sync server issues && added sync server trace

* fixing sync issues

* fixed grumbles
2016-11-02 11:15:37 +01:00
Svyatoslav Nikolsky 68ddc7fa88 Async verification (#54)
* async verifying

* lost file

* removed debug timer

* fixed compilation && tests

* fixed typo

* async verification refactoring

* fixed sync stall

* fixed dead_code warning

* get rid of extra locks

* fixed tests

* * separated tasks executor from sync node
* local node mutex removed
2016-10-29 11:52:40 +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