Commit Graph

73 Commits

Author SHA1 Message Date
debris 521482f2ec work on import command in progress 2016-11-03 17:19:35 +01:00
debris bbf887a0ad Merge branch 'master' of github.com:ethcore/parity-bitcoin into p2p_multiple_connections 2016-11-03 10:48:22 +01:00
debris 67aae38673 Merge branch 'master' of github.com:ethcore/parity-bitcoin into p2p_multiple_connections 2016-11-03 00:22:32 +01:00
debris 448259328d connect to multiple nodes automatically 2016-11-03 00:22:23 +01: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
debris 05ed9567e9 import module 2016-10-31 03:12:44 +01:00
debris bcdbaf4a10 Merge branch 'master' of github.com:ethcore/parity-bitcoin into p2p_tests 2016-10-30 11:44:18 +01:00
debris b32bf9f29f handshake tests 2016-10-30 11:44:10 +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
debris 870ed917d7 updated dependencies and graph 2016-10-28 11:11:42 +02:00
Svyatoslav Nikolsky 6f94a91b82 added option to sync with disk database (#45) 2016-10-27 16:26:12 +02:00
NikVolf 93b765d8ea u32 everywhere 2016-10-26 23:58:19 +03:00
Svyatoslav Nikolsky 98803d6afe integrating sync module with db && verification 2016-10-26 15:56:52 +03:00
debris e1e532d5a6 updated dependencies and graph 2016-10-25 10:07:25 +02:00
Marek Kotewicz 6ac07659b6 seednodes dns lookup (#34)
* fixed compile error after merging 29 & 30

* dns lookup

* connect to seednode
2016-10-25 09:55:43 +02:00
Nikolay Volf fa4cd03713 Basic chain verifier (#28)
* redundant spaces

* chain verifier stub

* test storage stub

* test storage -a

* iteration test layout

* flush work

* nbits check

* age & coinbase

* utils mod

* fix warnings

* transaction verification

* merkle root

* first tx test

* use all

* test storage to db
2016-10-24 17:58:38 +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 02816aaa4e addr protocol && start of sync protocol (#25)
* 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

* send getaddr on connect

* fixed node_table insert, added insert_many

* addr protocol

* added TODO: remove
2016-10-24 10:42:11 +03:00
Nikolay Volf eb6c0aefa7 Merge pull request #20 from ethcore/test_data_framework
test_data::ChainBuilder for generating transactions in tests
2016-10-20 18:23:11 +03:00
debris 9e29355cca updated dependencies and graph 2016-10-20 16:28:49 +02:00
Svyatoslav Nikolsky e03cf06a16 test_data::ChainBuilder for generating transactions for tests 2016-10-20 17:21:28 +03:00
NikVolf cc8f90fc3b Merge branch 'master' into verification 2016-10-20 17:10:19 +03:00
NikVolf 5405282e8d Merge branch 'master' into test-crate 2016-10-20 17:03:26 +03:00
debris b6584cd2ce Merge branch 'master' of github.com:ethcore/parity-bitcoin into p2p_logging 2016-10-19 15:45:26 +02:00
Marek Kotewicz 92ede43e16 Merge pull request #16 from ethcore/mempool_heapsize
Implemented HeapSizeOf trait for MemoryPool
2016-10-19 15:43:30 +02:00
debris 49bb034bbd added logger to p2p, fixed reading messages 2016-10-19 14:17:18 +02:00
NikVolf cb7766ddd6 more tests 2016-10-19 14:39:58 +03:00
NikVolf 9f49d0c505 Merge branch 'test-crate' into verification 2016-10-19 13:33:18 +03:00
Svyatoslav Nikolsky efdd30da17 implemented HeapSizeOf for MemoryPool 2016-10-19 13:07:11 +03:00
NikVolf 729c920cc4 test data crate 2016-10-18 18:23:40 +03:00
NikVolf eaf2240e6b Merge branch 'master' into verification 2016-10-18 17:55:52 +03:00
NikVolf e50402fb14 basic processing 2016-10-18 16:53:59 +03:00
debris f61f6de84c Merge branch 'master' into p2p 2016-10-18 01:46:03 +02:00
NikVolf 2991cc6193 crate layout 2016-10-17 22:27:45 +03:00
debris f7bfa16195 p2p in progress 2016-10-17 10:52:15 +02:00
Svyatoslav Nikolsky e3968cfa46 Merge branch 'master' into mempool 2016-10-16 21:38:04 +03:00
Svyatoslav Nikolsky 40b1241ccf initial commit for MemoryPool 2016-10-16 21:32:11 +03:00
debris 3625fb06c2 updated dependency graph 2016-10-16 11:55:42 +02:00
NikVolf 8666aae12b Merge branch 'master' into db-store 2016-10-15 12:31:27 +03:00
debris 4bb9726d09 fixed linking parking_lot, remove wildcard imports 2016-10-14 15:02:04 +02:00
debris 47d7149909 Merge branch 'master' into db-kvdb 2016-10-14 14:56:09 +02:00
debris 4b0af4f249 updated dependencies 2016-10-14 11:08:39 +02:00
NikVolf ae2c081c2e more storage methods 2016-10-13 22:06:18 +03:00
NikVolf e3659e44f7 store trait 2016-10-13 15:06:12 +03:00
NikVolf deefe60a13 key-value database initial 2016-10-13 14:13:50 +03:00
debris 67309678c0 removed printlns, updated deps 2016-10-13 09:23:37 +02:00
debris 25c7d20c1e p2p module in progress 2016-10-12 19:39:50 +02:00
debris 5169ea0016 p2p module in progress 2016-10-12 14:30:50 +02:00
debris c0448f3110 p2p streams... 2016-10-05 17:23:50 +02:00