Commit Graph

731 Commits

Author SHA1 Message Date
Svyatoslav Nikolsky 964d013042 fixed sync tests 2016-10-26 17:33:28 +03:00
Svyatoslav Nikolsky 98803d6afe integrating sync module with db && verification 2016-10-26 15:56:52 +03:00
Svyatoslav Nikolsky e0f4a7a0b3 Merge pull request #40 from ethcore/deadline
deadline future
2016-10-26 10:45:54 +00:00
debris 5ea40e919b deadline future 2016-10-26 12:33:41 +02:00
Svyatoslav Nikolsky 4804ac5e42 Sync with multiple peers (#37)
* * started work multiple peers support in sync
* some tests for synchronization && sync peers

* fixed compilation after merge

* fixed compilation after merge

* fixed compilation after merge

* added TODOs + fixed documentation
2016-10-26 11:46:10 +02:00
Marek Kotewicz 1306a3905a disconnect from seednode 60 seconds after receiving addr message (#38) 2016-10-26 11:45:51 +02:00
Svyatoslav Nikolsky cf4ab2e644 added TODOs + fixed documentation 2016-10-26 12:24:04 +03:00
Svyatoslav Nikolsky 2ab18a3ed4 fixed compilation after merge 2016-10-25 16:05:46 +03:00
Svyatoslav Nikolsky b7a188f68d fixed compilation after merge 2016-10-25 16:05:10 +03:00
Svyatoslav Nikolsky 917d18d6a5 Merge branch 'master' into sync 2016-10-25 16:03:34 +03:00
NikVolf 6e2a2c009c Merge branch 'h256-represent' 2016-10-25 15:54:28 +03:00
NikVolf fa4994941e fix typo 2016-10-25 15:54:09 +03:00
Svyatoslav Nikolsky dffa97de1e fixed compilation after merge 2016-10-25 15:52:13 +03:00
Svyatoslav Nikolsky 693f01393d Merge branch 'master' into sync 2016-10-25 15:48:28 +03:00
Nikolay Volf 7fcec6c908 Merge pull request #33 from ethcore/h256-represent
H256 represented entities
2016-10-25 15:45:29 +03:00
Svyatoslav Nikolsky d044acc3c9 * started work multiple peers support in sync
* some tests for synchronization && sync peers
2016-10-25 15:43:32 +03:00
NikVolf 387f9bc429 toh256 -> represeth256 2016-10-25 15:34:06 +03:00
Nikolay Volf b816b53d21 Merge pull request #36 from ethcore/p2p_handle_cleanup
clean up nested futures spawning in p2p connection
2016-10-25 15:31:52 +03:00
debris 4d573ce1b6 clean up nested nested futures spawning in p2p connection 2016-10-25 11:02:37 +02:00
Svyatoslav Nikolsky debb5eece6 Merge pull request #35 from ethcore/depsup
updated dependencies and graph
2016-10-25 11:09:06 +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
NikVolf d87b2add25 Merge branch 'master' into h256-represent 2016-10-24 18:20:10 +03:00
NikVolf 108b4b6383 h256 represented entities 2016-10-24 18:18:02 +03: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
NikVolf ffd299f011 Merge branch 'master' into verification 2016-10-24 17:47:35 +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
NikVolf 7ebd4c947a test storage to db 2016-10-24 17:08:25 +03:00
Marek Kotewicz 1c7bfc9a2e fixed on_message stackoverflow (#31) 2016-10-24 15:55:08 +03:00
NikVolf 527cadc880 use all 2016-10-24 15:36:35 +03:00
NikVolf c37589f38e first tx test 2016-10-24 12:30:39 +03:00
NikVolf 681ad5984b merkle root 2016-10-24 11:58:35 +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
NikVolf d1c83bc724 transaction verification 2016-10-24 02:34:32 +03:00
NikVolf 1176c62628 fix warnings 2016-10-23 22:22:02 +03:00
NikVolf 567facbe29 utils mod 2016-10-23 21:31:21 +03:00
NikVolf 903d2b8878 age & coinbase 2016-10-23 20:00:47 +03:00
NikVolf a5fb6e757f nbits check 2016-10-23 19:13:59 +03:00
NikVolf 5b1d94413f flush work 2016-10-23 17:41:54 +03:00
NikVolf 44213d1170 iteration test layout 2016-10-21 21:26:24 +03:00
NikVolf 2a98795485 test storage -a 2016-10-21 19:46:00 +03:00
NikVolf 526f2f023e test storage stub 2016-10-21 19:31:33 +03:00
NikVolf e3558fc269 chain verifier stub 2016-10-21 18:23:18 +03:00
NikVolf 9ab048acd9 redundant spaces 2016-10-21 18:11:08 +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