Commit Graph

135 Commits

Author SHA1 Message Date
Svyatoslav Nikolsky ee509fd696 Sync queue improvements: maintaining proper number of active connections on p2p level [WIP] (#396)
* autoconnect on start

* proper # of outbound connections in autoconnect

* close connection to seednode after receiving addr

* fixed seednodes list

* do not connect to same IPv4 && IPv6

* disconnect from seednode when >1 addr received
2017-04-14 08:28:41 +02:00
debris cd5287bb2d updated parking_lot to 0.4 2017-03-26 15:17:28 +07:00
debris 35c74d8948 use tokio_io::AsyncWrite in p2p lib 2017-03-25 16:20:45 +07:00
debris acb1cbdfd2 use tokio_io::AsyncRead in p2p lib 2017-03-25 16:05:49 +07:00
debris 35f84b4cb9 updated tokio-core and dependant crates 2017-03-20 14:18:22 +01:00
debris f193a03fd6 updated csv && byteorder libraries 2017-03-12 16:05:35 +01:00
Marek Kotewicz accde5a5b2 Merge pull request #369 from ethcore/p2p_send_ping
Send ping requests on timeout
2017-01-23 06:01:04 +01:00
Svyatoslav Nikolsky 7c3bf1731c pass version message to sync 2017-01-11 17:54:30 +03:00
Svyatoslav Nikolsky 232bb3ada7 sing ping requests on timeout 2017-01-11 11:48:40 +03:00
Marek Kotewicz e1909f9b8b Merge pull request #349 from ethcore/p2p-stats
p2p statistics extended
2016-12-28 10:50:01 +01:00
NikVolf 00e5c3c685 mock intervals 2016-12-27 18:30:14 +03:00
Svyatoslav Nikolsky 59378066b8 fixed TODOs 2016-12-27 09:33:08 +03:00
NikVolf 37e815b435 handy method & tests 2016-12-26 14:36:13 +03:00
NikVolf b3dff10cf9 remove misundestood fields 2016-12-26 14:23:15 +03:00
NikVolf 4caf69dff7 smoky test 2016-12-26 13:58:30 +03:00
NikVolf 56d95e4cb8 track ping-pong 2016-12-26 13:50:29 +03:00
Svyatoslav Nikolsky 9dad2a3eec Merge branch 'master' into sync_v2 2016-12-23 16:19:07 +03:00
Svyatoslav Nikolsky d696dcfdaf sync_v2 2016-12-23 16:13:18 +03:00
NikVolf b9df3c498f added injects 2016-12-21 18:57:29 +03:00
NikVolf fc5f8cc21c wip 2016-12-21 18:19:24 +03:00
NikVolf 579bccb35c refactored to hashmaps 2016-12-21 18:08:41 +03:00
NikVolf fbdcdaefbb stats naive 2016-12-21 15:02:50 +03:00
NikVolf f206634ce8 finalizing jsonrpc 2016-12-13 15:30:08 +01:00
NikVolf 92b103deb8 p2p api changes 2016-12-13 14:23:16 +01:00
NikVolf c19740d3eb finalizing api 2016-12-12 19:18:43 +01:00
NikVolf 8d42281804 refactoring on using context 2016-12-12 18:28:39 +01:00
NikVolf f302c3774e network api layout 2016-12-12 17:15:27 +01:00
NikVolf a6e8f376ca p2p api changes 2016-12-12 15:18:05 +01:00
Svyatoslav Nikolsky 2b1fecb286 close connection when block verification failed with error 2016-12-02 18:12:20 +03:00
debris ca49061df0 command line option to limit connections only to ipv4 or ipv6 2016-11-30 16:01:11 +01:00
debris bcc84f6f6f updated dependencies and graph 2016-11-28 10:37:17 +01:00
debris 847cb36c6f chain verifier does not have hardcoded network constants 2016-11-25 18:38:21 +01:00
debris 355306e747 retarget 2016-11-24 23:33:51 +01:00
Svyatoslav Nikolsky 964ac87135 getting rid of sync waits 2016-11-18 16:06:14 +03:00
Svyatoslav Nikolsky b354b1e0cb post-merge fixes 2016-11-17 11:23:05 +03:00
Svyatoslav Nikolsky 035583fac1 Merge branch 'master' into respect_minimal_protocol_version 2016-11-17 08:23:01 +03:00
debris 712b016a6a fixed handshake tests 2016-11-17 01:15:58 +01:00
debris fe9828dbdc respect minimal protocol version, fixed #141 2016-11-17 01:02:43 +01:00
debris 56e2dc02b1 limit number of inbound and outbound connections for regtests 2016-11-17 00:33:35 +01:00
debris 2fd794be97 applied clippy suggestions to make code more idiomatic 2016-11-16 18:30:30 +01:00
debris 90c6f6fdc3 ServerTask::Ignore 2016-11-16 11:18:13 +01:00
debris dc6acc6eee polishing p2p synchronous syncing 2016-11-15 13:11:05 +01:00
debris 6713503add synchronous syncing almost finished 2016-11-15 12:48:12 +01:00
debris 86cff63c30 sync synchronizer part done 2016-11-14 09:56:58 +01:00
debris 6b38929222 cleanup session init and on_message 2016-11-09 22:36:29 +01:00
debris 078a71ba15 simplified threshold and configurable synchronizers 2016-11-09 21:42:17 +01:00
debris da769b253a response synchronizer 2016-11-09 15:46:34 +01: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 5b93c5dc40 regression tests support 2016-11-05 15:32:57 +01:00