Arkadiy Paronyan
340f0b6f58
Don't ping all nodes on start ( #1656 )
...
* Don't ping all nodes on start
* Fixed test
2016-07-19 09:24:19 +02:00
Arkadiy Paronyan
8d0e05adb7
Make sure reserved peers are in the node table ( #1616 )
2016-07-14 10:38:53 +02:00
Robert Habermeier
36d3d0d7d7
replace synchronization primitives with those from parking_lot ( #1593 )
...
* parking_lot in cargo.toml
* replace all lock invocations with parking_lot ones
* use parking_lot synchronization primitives
2016-07-13 19:59:59 +02:00
Nikolay Volf
d3695d0b72
Major sync <-> client interactions refactoring ( #1572 )
...
* chain notify trait
* replaced network service with io service
* fix ethcore crate warnings
* refactored network service without generic
* ethcore fix
* ethsync refactoring
* proper linking of notify
* manage network interface
* rpc crate rebinding
* full rewire
* sync internal io service
* fix deadlock
* fix warnings and removed async io
* sync imported message propagation
* fix rpc warnings
* binart warnings
* test fixes
* rpc mocks and tests
* fix util doctest
* fix message name and removed empty notifier
* pointers mess & dark mode fixed
* fixed sync doctest
* added few warnings
* fix review
* new convention match
* fix error unwraps
* doctest fix
2016-07-11 17:02:42 +02:00
arkpar
f48d030f0b
Init public interface with IO message
2016-07-09 11:48:52 +02:00
Gav Wood
3b662c285f
Switch out .X().unwrap() for .unwrapped_X
2016-07-07 09:37:31 +02:00
Gav Wood
456ad9e21b
Remove .lock().unwrap() idiom into locked().
2016-07-06 19:52:34 +02:00
Gav Wood
cd7b046d80
Fix and add info messages ( #1552 )
...
* Display information on journal database on startup.
* Minor restyling.
* Client handles the enode message to avoid repeats.
* Avoid unneeded copies *and* reduce code.
* Fix up typo.
2016-07-06 18:28:11 +02:00
Tomasz Drwięga
5c2ca9a0cb
Fixing warnings
2016-07-01 02:08:14 +02:00
Gav Wood
93a89049ed
More colour!
2016-06-30 08:20:34 +02:00
Arkadiy Paronyan
60b70dada1
Reduced IO messages; removed panics on IO notifications ( #1457 )
2016-06-27 19:30:13 +02:00
Tomasz Drwięga
5bf906625b
Fixing warnings
2016-06-23 12:19:38 +02:00
Arkadiy Paronyan
11314a660d
Sync optimization ( #1385 )
...
* Minor sync fixes
* Fixed session count sub
* handle NewBlock when downloading
* Accept new blocks right away
* block collection update fixed
2016-06-22 12:10:26 +02:00
Robert Habermeier
951512f9c9
Reserved peers rpc API ( #1360 )
...
* reserved peers: lock them, use a hashset, and provide to networkcontext
* adding and removing reserved peer service API
* add NonReservedPeerMode, and setters in host
* setting non reserved mode, restriction accepted connections
* implement RPC apis
* fix deadlock
* fix rpc tests
2016-06-21 13:56:33 +02:00
Arkadiy Paronyan
855ae91c4c
Merge pull request #1354 from ethcore/warnings-fix
...
Fixing clippy warnings
2016-06-20 21:21:51 +02:00
Tomasz Drwięga
da7b30628b
Fixing warnings
2016-06-20 15:20:55 +02:00
Robert Habermeier
7a6fa97d98
Revert "Revert "Reserved peers, reserved-only flag""
2016-06-20 14:13:33 +02:00
Robert Habermeier
3d3041d418
Revert "Reserved peers, reserved-only flag"
2016-06-20 14:09:41 +02:00
Robert Habermeier
06a3557e3e
reserved_only CLI flag
2016-06-20 12:17:06 +02:00
Robert Habermeier
2ea45134ab
prefer pinned nodes when establishing peer connections.
2016-06-19 20:58:02 +02:00
Robert Habermeier
a4dacca262
CLI option and network configuration
2016-06-19 15:59:12 +02:00
Tomasz Drwięga
81df97a737
Fixing warnings ( #1321 )
2016-06-18 15:11:10 +02:00
Arkadiy Paronyan
ec654feaf8
Syncing fix ( #1320 )
...
* Fixed aborting peer for expired session
* Don't ban for usesless
2016-06-18 15:10:24 +02:00
Arkadiy Paronyan
591fa9625d
Merge pull request #1313 from ethcore/net
...
Network start/stop
2016-06-18 11:04:24 +02:00
Arkadiy Paronyan
29e286572c
Fixed loosing peers on incoming connections. ( #1293 )
...
* Deactivate peer if it has no new data
* Fixed node table timer registration
* Fixed handshake timeout expiration
* Extra trace
* Fixed session count calculation
* Only deactivate incapable peers in ChainHead state
* Timer registration is not needed
2016-06-18 10:52:46 +02:00
arkpar
c340d8a34f
Tests
2016-06-17 18:26:54 +02:00
arkpar
67ffac1df9
Check for session expiration on peer registration
2016-06-17 16:01:33 +02:00
arkpar
b38488dd07
Network shutdown
2016-06-17 12:58:28 +02:00
Arkadiy Paronyan
71131c41e5
Security audit issues fixed ( #1279 )
...
* Restrict network key file permissions
* Check for overflow in str to bigint conversion
* RLP decoder overflow check
2016-06-15 00:58:08 +02:00
arkpar
8c7bcdafdb
Continue reading session data in the same iteration if available
2016-06-13 20:57:04 +02:00
Arkadiy Paronyan
6b12334136
Windows build ( #1253 )
...
* Networking refactoring
* Fixed typo
* Trace logging
* Updated dependencies for windows build
* Windows fixes
* use mio 0.5
* nix build
* Windows build fix
* style
* removed unused import
* ipc crate version bump
* ipc config for named pipes
* tweaks and fixes
* tweaks and fixes
* final version bump
* Fixed tests
* Disable color output on windows
* Added missing doc
2016-06-13 18:55:24 +02:00
Tomasz Drwięga
3905717d5d
Fixing warnings
2016-06-03 11:36:30 +02:00
Arkadiy Paronyan
8596a347ea
Networking refactoring ( #1172 )
...
* Networking refactoring
* Make sure the same socket is reused
* Safer atomic ordering
* Replaced eq with ==
2016-06-02 11:49:56 +02:00
Tomasz Drwięga
256557d3cc
Removing warnings
2016-05-23 11:46:01 +02:00
arkpar
9836c79962
Fixed connecting to local nodes on startup
2016-05-11 00:08:35 +02:00
Arkadiy Paronyan
c34e3535e0
Net etiquette: Track useless peers, Send out disconnect packet ( #1028 )
2016-05-02 14:48:30 +02:00
arkpar
67d04c5952
Fixed bootnode URL and error message
2016-04-02 19:01:41 +02:00
arkpar
6e9ea76aab
Auto detect available port
2016-03-20 16:21:49 +01:00
Arkadiy Paronyan
2ec40604d9
Revert "Auto detect available port"
2016-03-20 12:12:58 +01:00
arkpar
da027e93cf
Auto detect available port
2016-03-19 21:00:05 +01:00
arkpar
c8b65c769b
Fixed handshake leak
2016-03-14 13:54:06 +01:00
arkpar
361280a9be
Limit incoming connections
2016-03-12 19:52:37 +01:00
Tomasz Drwięga
f724cab92d
Merge branch 'master' into updating_clippy
...
Conflicts:
ethcore/src/lib.rs
sync/src/chain.rs
sync/src/lib.rs
util/src/keys/store.rs
util/src/lib.rs
2016-03-11 19:17:09 +01:00
Tomasz Drwięga
d84e008e00
Removing superflous check for nightly
2016-03-11 11:16:49 +01:00
Tomasz Drwięga
8709dd28f8
Fixing clippy warnings
2016-03-11 10:58:51 +01:00
Tomasz Drwięga
cbc2c0cf0c
Fixing clippy warnings. When building on nightly it is required to enable clippy
2016-03-07 14:34:17 +01:00
arkpar
003d1fd0cc
Network tracing improvements
2016-03-05 23:32:38 +01:00
arkpar
182aec2f94
Fixed potential deadlock on startup
2016-03-04 22:01:36 +01:00
Tomasz Drwięga
212aac42bd
Removing clippy warnings
2016-02-29 23:09:51 +01:00
arkpar
34bc02af1e
Merge branch 'master' of github.com:ethcore/parity into network
2016-02-26 14:23:10 +01:00