Commit Graph

137 Commits

Author SHA1 Message Date
debris 56e2dc02b1 limit number of inbound and outbound connections for regtests 2016-11-17 00:33:35 +01:00
debris e07dfbb6c1 p2p thread pool for regtest has only 1 thread 2016-11-17 00:18:04 +01:00
Svyatoslav Nikolsky fce53cdc8b removed --diskdb option 2016-11-16 09:58:26 +03:00
Svyatoslav Nikolsky b152c8178d introduced ConsensusParams + BIP65 support 2016-11-15 14:00:46 +03: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
debris 9e501fe5d0 shutdown gracefully on incompatible db open 2016-11-07 11:20:41 +01:00
Svyatoslav Nikolsky d30520c981 added support for regnet && testnet genesis blocks 2016-11-07 12:15:15 +03:00
debris 5b93c5dc40 regression tests support 2016-11-05 15:32:57 +01:00
Marek Kotewicz efa100a253 Merge pull request #87 from ethcore/sync_manager
Initial sync manager version
2016-11-04 13:08:09 +01:00
debris fc32423017 save node_table to $APP_DIR/p2p/nodes.csv 2016-11-04 12:08:58 +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 36e30ef5ce support connect to given port via command line 2016-11-02 10:25:09 +03: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
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
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