Commit Graph

242 Commits

Author SHA1 Message Date
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
Marek Kotewicz ec3aee6fab fixed compile error after merging 29 & 30 (#32) 2016-10-24 17:42:54 +03:00
Marek Kotewicz 36c61c0474 Improvements for `Session` (#29)
* Session::initialize does not return result

* SessionFactory
2016-10-24 16:39:20 +02: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 1c7bfc9a2e fixed on_message stackoverflow (#31) 2016-10-24 15:55:08 +03:00
Marek Kotewicz b4828294f5 impl PartialEq<&a str> for Command (#27)
* impl PartialEq<&a str> for Command

* additional test for Command PartialEq

* fixed comparing "ver" and "version"
2016-10-24 11:54:03 +03: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
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
Marek Kotewicz 563f77c500 Merge pull request #23 from ethcore/session
session with working ping pong
2016-10-21 15:13:16 +02:00
Marek Kotewicz 3d29057e42 Merge pull request #24 from ethcore/pub_message_fields
All fields of bitcoin messages -> public
2016-10-21 15:13:01 +02:00
Svyatoslav Nikolsky 49628a3d2c all fields of bitcoin messages -> public 2016-10-21 16:08:46 +03:00
debris 189fd37835 ping->pong exchange 2016-10-21 10:55:37 +02:00
debris 8bb2603d25 Merge branch 'master' of github.com:ethcore/parity-bitcoin into session 2016-10-21 09:40:22 +02: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
Nikolay Volf 0b230788ea Merge pull request #21 from ethcore/depsup
updated dependencies and graph
2016-10-20 18:21:20 +03:00
Svyatoslav Nikolsky 403971b314 renamed as_input to to_input 2016-10-20 18:12:32 +03:00
Svyatoslav Nikolsky bca0ccc96f removed redundant reexport 2016-10-20 17:53:35 +03:00
debris 0a27b22759 Merge branch 'master' into session 2016-10-20 16:41:27 +02:00
debris 9e29355cca updated dependencies and graph 2016-10-20 16:28:49 +02:00
Svyatoslav Nikolsky c98d19eb81 lost file 2016-10-20 17:25:05 +03:00
Svyatoslav Nikolsky e03cf06a16 test_data::ChainBuilder for generating transactions for tests 2016-10-20 17:21:28 +03:00
debris 72825fea50 session initialize and on_message in progress 2016-10-20 16:17:59 +02:00
Marek Kotewicz baf0659988 Merge pull request #17 from ethcore/verification
Abstract verification queue
2016-10-20 16:16:48 +02:00
NikVolf cc8f90fc3b Merge branch 'master' into verification 2016-10-20 17:10:19 +03:00
Nikolay Volf 9bf60885a6 Merge pull request #14 from ethcore/test-crate
Dedicated crate for test dummies
2016-10-20 17:09:54 +03:00
NikVolf 5405282e8d Merge branch 'master' into test-crate 2016-10-20 17:03:26 +03:00
Svyatoslav Nikolsky f8f21ce3c6 Merge pull request #19 from ethcore/p2p_logging
p2p: logging and improved message handling
2016-10-20 16:07:25 +03:00
debris 441c6cb883 session initialize, on_message, context send 2016-10-20 13:19:19 +02:00
debris 58440e27a2 Merge branch 'master' of github.com:ethcore/parity-bitcoin into p2p_logging 2016-10-20 03:35:09 +02:00
debris 668e4a712a polishing p2p logging 2016-10-20 03:14:42 +02:00
debris 1349c3af4b p2p::Context, changed the way incomming messages read 2016-10-20 02:51:20 +02:00
Arkadiy Paronyan 2d353f1aa0 Merge pull request #18 from ethcore/mempool
Get rid of macros in MemoryPool
2016-10-19 18:02:32 +02:00
Svyatoslav Nikolsky 8c71468ab9 Merge branch 'master' into mempool 2016-10-19 17:15:34 +03:00
NikVolf ebdb45409b processing status 2016-10-19 17:03:57 +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
NikVolf 16dffff9f7 add verification to test.sh 2016-10-19 16:00:55 +03:00
debris 14e9fd041c additional log on disconnect 2016-10-19 14:49:50 +02:00
Nikolay Volf 89e08c42c6 Merge pull request #13 from ethcore/p2p
raw p2p module
2016-10-19 15:41:30 +03:00
debris 49bb034bbd added logger to p2p, fixed reading messages 2016-10-19 14:17:18 +02:00
NikVolf c3d854d848 pop & test 2016-10-19 15:02:28 +03:00
Svyatoslav Nikolsky 535dca320a get rid of macros in MemoryPool 2016-10-19 15:02:13 +03: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
Nikolay Volf 397200a6fc Merge pull request #15 from ethcore/mempool
Added several benchmarks for MemoryPool
2016-10-19 13:28:54 +03:00
Svyatoslav Nikolsky efdd30da17 implemented HeapSizeOf for MemoryPool 2016-10-19 13:07:11 +03:00
Svyatoslav Nikolsky f5205fde92 removed bench_ prefix from benchmarks functions 2016-10-19 12:46:40 +03:00
Svyatoslav Nikolsky 43a71193a0 added several benchmarks for MemoryPool 2016-10-18 19:54:55 +03:00
NikVolf 729c920cc4 test data crate 2016-10-18 18:23:40 +03:00