Arkadiy Paronyan
7b34438178
Validate encoding of extrinsics passed to runtime ( #6442 )
...
* Validate encoding of extrinsics passed to runtime
* Bump codec version explicitly
2020-06-19 19:27:16 +00:00
Nikolay Volf
6e85555e0b
add network propagated metrics ( #6438 )
2020-06-19 17:40:39 +03:00
Bastian Köcher
7858828d98
Update sync chain info on own block import ( #6424 )
...
Before we only updated the chain info of sync when we have imported
something using the import queue. However, if you import your own
blocks, this is not done using the import queue and so sync is not
updated. If we don't do this, it can lead to sync switching to "major
sync" mode because sync is not informed about new blocks. This
especially happens on Cumulus, where a collator is selected multiple
times to include its block into the relay chain and thus, sync switches
to major sync mode while the node is still building blocks.
2020-06-19 16:00:58 +02:00
Pierre Krieger
dd7830d481
Remove --legacy-network-protocol CLI flag ( #6411 )
2020-06-19 00:23:58 +02:00
Pierre Krieger
527cc35afb
Increase network buffer sizes even more ( #6080 )
2020-06-18 11:55:45 +00:00
arkpar
850ee8b43a
Revert "Block packet size limit"
...
This reverts commit 08e0747d2b .
2020-06-18 10:43:03 +02:00
arkpar
08e0747d2b
Block packet size limit
2020-06-18 10:39:54 +02:00
Pierre Krieger
fec43fe6d7
Remove penalty on duplicate Status message ( #6377 )
2020-06-18 09:34:53 +02:00
Svyatoslav Nikolsky
194b3dfb17
fix BlockAttributes encoding ( #6281 )
2020-06-16 22:51:45 +02:00
Pierre Krieger
0787b189fa
Use /dns/ instead of /dns4/ ( #6369 )
2020-06-16 22:49:44 +02:00
Roman Borschel
731e7d77c7
Find the alive incoming entry on disconnect. ( #6320 )
...
When a peer in `Incoming` state disconnects, the "alive" entry
in the `incoming` list for that peer must be updated (set to `false`).
Currently the entry that is updated may be an earlier entry for the
same peer that is already no longer alive. This can happen if a
peer repeatedly connects (incoming) and disconnects between invocations to
`poll()` of the behaviour.
2020-06-11 11:55:55 +02:00
Roman Borschel
273f31b7aa
Avoid self-lookups in Authority Discovery ( #6317 )
...
* Ensure authority discovery avoids self-lookups.
Thereby additionally guard the `NetworkService` against
adding the local peer to the PSM or registering a
"known address" for the local peer.
* Clarify comments.
* See if returning errors is ok.
2020-06-10 18:50:37 +02:00
Denis Pisarev
f9c0c6a719
New CI image ( #6223 )
...
* fix (ci): hotfix Docker release
* change (ci): moving to the tested CI image with a proper name
* change (ci): rename substrate-ci-linux
* Reduce the lots_of_incoming_peers_works test load (#6314 )
* change (ci): moving to the tested CI image with a proper name
* change (ci): rename substrate-ci-linux
* Reduce the lots_of_incoming_peers_works test load (#6314 )
Co-authored-by: Bastian Köcher <git@kchr.de >
Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com >
2020-06-10 13:12:21 +02:00
Pierre Krieger
07b984b609
Add a test for lots of nodes connecting at the same time ( #6247 )
...
* Add a test for lots of nodes connecting at the same time
* Do small change
2020-06-09 16:30:34 +02:00
Cecile Tonglet
8034285da4
Allow adding a prefix to the informant ( #6174 )
...
* Initial commit
Forked at: 1d93746b64
Parent branch: origin/master
* Add a Service Configuration's field + adapt informant + provide means to CLI
* CLEANUP
Forked at: 1d93746b64
Parent branch: origin/master
* fix tests
* fixed bad path to object
* Change OutputFormat enum to struct
* Add informant_prefix to builder and service
* Revert "Change OutputFormat enum to struct"
This reverts commit cd86c583c92668426c35cc174401155bf2880c1f.
* Revert "fix tests"
This reverts commit a3c306ebe94720f350c5bc74b9c5fcde2565d340.
* Revert "Add a Service Configuration's field + adapt informant + provide means to CLI"
This reverts commit 9c2e7267423305705916c30d605893524113c8e3.
* Implementation using the ServiceBuilder
* reduce line length
* fix line width again
* WIP
Forked at: 1d93746b64
Parent branch: origin/master
* WIP
Forked at: 1d93746b64
Parent branch: origin/master
* WIP
Forked at: 1d93746b64
Parent branch: origin/master
* use struct instead of enum
* WIP
Forked at: 1d93746b64
Parent branch: origin/master
* Update client/service/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* improve doc
* Update client/service/src/builder.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/service/src/builder.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* change code
* Update client/informant/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* enable_color
* reorg log
* remove macro
* Removed builder for informant prefix
* fix doc
* Update client/informant/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/informant/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/informant/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/informant/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/service/src/builder.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/service/src/builder.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/service/src/builder.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2020-06-09 14:29:01 +02:00
Nikolay Volf
65ba701f50
Fix transaction pool & network issues ( #6288 )
...
* fix & tweaks
* address review
* line width
2020-06-08 23:58:08 +02:00
Benjamin Kampmann
881072e590
Intent to release rc3 ( #6290 )
2020-06-08 23:29:52 +02:00
Pierre Krieger
34b7cc8a7a
Sentry nodes and validator nodes also imply reserved ( #6251 )
2020-06-04 23:57:02 +02:00
Arkadiy Paronyan
31921c4eb9
Use number of downloaded blocks for test ( #6234 )
2020-06-04 23:41:48 +02:00
Pierre Krieger
3fef099893
Fix service tests not calling update_chain ( #6232 )
2020-06-04 12:06:44 +00:00
Pierre Krieger
e77490714d
Fix libp2p features ( #6229 )
...
* Fix libp2p features
* Remove the opt-level of some now-unused crates
2020-06-03 13:24:44 +00:00
Gavin Wood
4adac40c07
Generalised proxies ( #6156 )
...
* Initial work
* It should work
* Fix node
* Fix tests
* Initial test
* Tests
* Expunge proxy functionality from democracy and elections
* Allow different proxy types
* Repotted
* Build
* Build
* Making a start on weights
* Undo breaking change
* Line widths.
* Fix
* fix tests
* finish benchmarks?
* Storage name!
* Utility -> Proxy
* proxy weight
* add proxy weight
* remove weights
* Update transfer constraint
* Again, fix constraints
* Fix negation
* Update frame/proxy/Cargo.toml
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Remove unneeded event.
* Grumbles
* Apply suggestions from code review
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2020-06-02 18:15:15 +02:00
Pierre Krieger
7a969aa401
Remove ReportHandle ( #6213 )
2020-06-02 17:16:53 +02:00
Nikolay Volf
5759cee2e9
Update import metrics and add verification time ( #6170 )
...
* refactor import reporting and add time
* Update primitives/consensus/common/src/metrics.rs
Co-authored-by: Max Inden <mail@max-inden.de >
* remove (crate)
* fix longer lines
* swap names to avoid api breaking
Co-authored-by: Max Inden <mail@max-inden.de >
2020-06-01 11:08:59 +02:00
Pierre Krieger
cf185302fa
Improve the log messages printed when a listener closes ( #6162 )
...
* Improve the log messages printed when a listener closes
* Oops, didn't finish the expired listen addrs thing
2020-05-27 19:55:54 +02:00
Pierre Krieger
e2e44f005c
Add a warning when the user passes a legacy PeerId ( #6158 )
...
* Add a warning when the user passes a legacy PeerId
* Update client/network/src/config.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2020-05-27 19:55:13 +02:00
Pierre Krieger
9906a2e39d
Don't iterate over peers in generic_proto::behaviour::poll ( #6142 )
...
* Don't iterate over peers in generic_proto::behaviour::poll
* Improve comment
* Rework to use DelayIds
2020-05-26 21:23:32 +02:00
Benjamin Kampmann
b64f55089d
Releasing rc2 ( #6136 )
2020-05-26 14:32:23 +02:00
Benjamin Kampmann
fb32ac8c51
Tagging as rc1
2020-05-25 18:30:48 +02:00
Pierre Krieger
d18a55d391
Bump to libp2p v0.19.1 ( #6125 )
2020-05-25 17:26:36 +02:00
Pierre Krieger
c6e23b615f
Add a note about the deprecation of register_notifications_protocol ( #6111 )
2020-05-22 12:43:55 +02:00
Arkadiy Paronyan
5bf9e63181
Optimize network poll ( #6099 )
2020-05-21 13:54:50 +02:00
Pierre Krieger
c8339f9694
Turn a SmallVec into VecDeque for performances ( #6091 )
...
* Turn a SmallVec into VecDeque for performances
* Fix the other SmallVecs
2020-05-20 21:12:49 +02:00
Pierre Krieger
717fa95bc7
Restore the empty line after the license ( #6088 )
2020-05-20 13:08:27 +00:00
Arkadiy Paronyan
f275c6ab0b
Detect obsolete block responses ( #6077 )
2020-05-19 17:06:52 +02:00
Pierre Krieger
8b9bd9018e
Upgrade to libp2p v0.19 - Changes the default PeerId representation ( #6064 )
...
* Upgrade to libp2p v0.19
* Listen on IPv6 by default
* Increase channels sizes
* Use spec-compliant noise protocol
* Show legacy PeerId
* Switch order of Noise protocols
* Switch to crates.io version
* Fix subkey's version
* Fix line width and Wasm build
* I think Wasm is fixed for real this time
2020-05-18 19:57:08 +02:00
Pierre Krieger
7536de97b1
Print an error if we discover our own network identity ( #6047 )
...
* Add an error if we discover our own network identity
* Fix tests
2020-05-18 18:42:44 +02:00
Nikolay Volf
d5411969ac
fix whitespace ( #6062 )
2020-05-18 13:51:28 +02:00
Benjamin Kampmann
7c565085e9
resetting to -dev ( #6050 )
2020-05-16 19:03:04 +02:00
Arkadiy Paronyan
cdb7808a0e
Remove on_block_imported ( #6039 )
...
* remove on_block_imported
* Update client/network/src/service.rs
Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com >
Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com >
2020-05-16 12:59:34 +02:00
Benjamin Kampmann
d7463d348f
Releasing Alpha.8 ( #6048 )
2020-05-15 21:56:56 +02:00
Benjamin Kampmann
efc4849f1a
Meter block import results via prometheus ( #6025 )
2020-05-15 17:25:51 +02:00
Pierre Krieger
6ecdf20a1f
Fix lots of small nits in sc-network ( #6028 )
...
* Fix lots of small nits in sc-network
* Update client/network/src/protocol/sync/blocks.rs
Co-authored-by: Arkadiy Paronyan <arkady.paronyan@gmail.com >
* Fix warning
* Yes. The line width.
Co-authored-by: Arkadiy Paronyan <arkady.paronyan@gmail.com >
2020-05-15 12:58:52 +01:00
Benjamin Kampmann
be8c96adec
Relax substrate licensing scheme ( #5947 )
2020-05-15 13:21:56 +02:00
Pierre Krieger
074d80f519
Fix potential state mismatch in behaviour.rs ( #6013 )
...
* Fix state mismatch in behaviour.rs
* Add TODO
2020-05-13 19:50:01 +02:00
Pierre Krieger
10492c0689
Add mitigation for the state inconsistency issue ( #5996 )
...
* Add mitigation for the state inconsistency issue
* Add logging
2020-05-13 14:54:59 +02:00
Pierre Krieger
0a11c48aa1
Turn an error! into a debug! ( #6000 )
2020-05-12 19:22:41 +02:00
Max Inden
1ede6d1e36
client/network: Remove default Kademlia DHT in favor of per protocol DHT ( #5993 )
...
Substrate was previously running both a chain specific Kademlia DHT as
well as the `/ipfs/kad/1.0.0` Kademlia DHT for backwards compatibility.
(See 4db45a8 for details.)
With the end of the transition period this commit removes the former
only leaving the latter and thus preventing the discovery of
incompatible nodes via Kademlia.
2020-05-12 19:07:36 +02:00
Pierre Krieger
b4b1293c78
Restore the reputation penalty for timeouts ( #5984 )
2020-05-12 17:08:05 +02:00
Pierre Krieger
e5a36c8fa9
Small fix to block response completion reporting ( #5967 )
...
* Small fix to block response completion reporting
* while -> if
2020-05-11 17:39:39 +02:00