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
Dmitry Kashitsyn
9e01d4feaa
Refactor resource and error handling in wasm ( #6074 )
...
* Refactor resource and error handling in wasm
* Fixes based on review
2020-05-20 12:28:13 +02:00
Arkadiy Paronyan
cd89c93e39
Bump wasmtime version ( #6081 )
2020-05-20 11:43:33 +02:00
Arkadiy Paronyan
f275c6ab0b
Detect obsolete block responses ( #6077 )
2020-05-19 17:06:52 +02:00
André Silva
9a4e23d594
service: fix RPC unsafe exposed address detection ( #6070 )
2020-05-19 02:16:48 +01:00
Joshy Orndorff
1d8ddd7a98
Make GrandpaBlockImport public ( #6068 )
2020-05-18 20:13:30 +00: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
Arkadiy Paronyan
d1bf24caef
Fix parallel code execution in wasmtime ( #6055 )
...
* Bump wasmtime version
* Proper test
2020-05-18 18:42:25 +02:00
Nikolay Volf
dd573374e0
Add block construction prometheus metrics ( #6030 )
...
* Add basic authorship metrics
* fixes
* no arc
* move to crate
* Update client/proposer-metrics/Cargo.toml
Co-authored-by: Max Inden <mail@max-inden.de >
* remove prefix
* use HistogramTimer
* Update client/proposer-metrics/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/basic-authorship/src/basic_authorship.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/basic-authorship/src/basic_authorship.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/basic-authorship/src/basic_authorship.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/basic-authorship/src/basic_authorship.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/basic-authorship/src/basic_authorship.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/proposer-metrics/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/proposer-metrics/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Max Inden <mail@max-inden.de >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2020-05-18 13:48:44 +00:00
André Silva
09a16a30a6
grandpa: minor cleanup for gossip round start instant ( #5976 )
...
* grandpa: move gossip round start instant to LocalView
* grandpa: round duration is 2 gossip periods
2020-05-18 12:53:33 +01: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
Rakan Alhneiti
292d456277
Aura fix: make sure the key exists locally ( #6054 )
...
* Fix AURA
* Add test to make sure claim slot works as expected
2020-05-16 19:00:58 +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
satellitex
302c543b49
Added RuntimePublic for ecdsa public key. ( #6029 )
...
* add generate ecdsa, etc to keystore
* impl ecdsa needed traits
* add ecdsa to sr_io
* add ecdsa to application-crypto
* add ecdsa to test-utils
* add ecdsa debug derive
* fix ecdsa public
2020-05-15 15:04:38 +00:00
Rakan Alhneiti
f36f57b0bf
Use sign_with in consensus ( #6008 )
...
* Add derive_more to sp_core
* Convert Vec to Signature
* Use sign_with in AURA and BABE
* Signing errors
* Update slots to return consensus result
* Fix use
* Clone public key
* Match block_params
* WIP
* Use to_public_crypto_pair
* Pass public key only to block import params
* Address PR review
* Fix consensus RPC
* Fix babe tests
* adjust uses
* Fix line widths
2020-05-15 15:03:52 +00: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
Andrew Plaza
a31f4f6a5c
bump kvdb-* versions ( #6017 )
2020-05-15 11:17:39 +02:00
Pierre Krieger
d169a48dfb
Don't log the yamux errors by default ( #6034 )
2020-05-14 18:21:07 +02:00
Bastian Köcher
73389df860
Fix RPC tests for machines with a high number of cores ( #6021 )
2020-05-14 11:08:39 +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
Bastian Köcher
daf8cf0600
Handle clap errors manually and don't reset SIGPIPE ( #6012 )
...
Instead of resetting `SIGPIPE` to the system default handler, we now
handle a clap error manually and ignore any error when writing to
`stdout`/`stderr`. In this way, the node does not silently stops when it
encounters a `SIGPIPE` in normal mode and we still support piping of the
cli output.
2020-05-13 19:43:38 +02:00
Jon Häggblad
b99033368b
Fix minor clippy lints in grandpa ( #5988 )
...
* grandpa: fix clippy lints about identity conversions
* grandpa: fix clippy lints about unwrap_or_default
* grandpa: fix clippy lints about explicit return
* grandpa: fix clippy lints about unnecessary intermediary
* grandpa: fix clippy lints about to_string
* grandpa: fix clippy lints about unused imports
* grandpa: fix clippy lints about increments
* grandpa: fix clippy lints about unnecessary matches
* grandpa: fix clippy lints about struct arguments
* Fix clippy::redundant_clone
* Fix clippy::clone_on_copy
* Fix clippy::or_fun_call
* Fix clippy::identity_conversion
2020-05-13 17:40:52 +01: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
Bastian Köcher
7b19d3c4ce
Give more meaningful error on missing feature when opening a db ( #5999 )
2020-05-13 11:40:10 +01:00
Igor Żuk
eadf28881d
Monitor transactions rejected from the pool as invalid ( #5992 )
2020-05-13 12:02:14 +02:00
Bastian Köcher
e4edd502bf
Only send last finalized block to telemetry ( #6003 )
...
Instead of informing the telemetry about each block that is finalized,
we only need to send the last finalized block. This removes log spam on
initial sync.
2020-05-12 22:08:24 +01: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
9220bdf361
Spawn the network worker with spawn_blocking ( #5909 )
...
* Spawn the network worker with spawn_blocking
* Some comment adjustments
* Fix shutdown not working
2020-05-12 17:12:32 +02:00
Pierre Krieger
b4b1293c78
Restore the reputation penalty for timeouts ( #5984 )
2020-05-12 17:08:05 +02:00
Svyatoslav Nikolsky
246f7ae368
get tx_hashes from watcher ( #5981 )
2020-05-12 15:46:05 +02:00
André Silva
c91e681db2
babe: minor rpc nits ( #5974 )
...
* babe: fix formatting
* babe: re-use same epoch data in epoch_authorship rpc method
2020-05-12 15:18:15 +02:00
André Silva
871761694e
grandpa: update to finality-grandpa v0.12.3 ( #5972 )
2020-05-12 12:16:46 +01:00
Max Inden
1ce85590ff
client/finality-granpda/until_imported: Rework pinning ( #5983 )
...
An `UntilImported` stream wraps a `Stream` of incoming messages and
waits for blocks those messages are based on before passing the messages
on.
The above `Stream` of incoming messages implements `Unpin`, thus there
is no need to use `pin_project` on the `UntilImported` struct. Instead
one only has to add the `Unpin` trait bound on the `I` trait parameter.
2020-05-12 11:48:28 +01:00
Pierre Krieger
0690bb51a8
Allow passing multiple --log CLI options ( #5982 )
...
* Allow passing multiple --log CLI options
* Comment typo
2020-05-12 11:46:06 +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
Pierre Krieger
ed6c5bb190
Properly log when we discard a sync response ( #5969 )
2020-05-11 14:31:56 +02:00
Jon Häggblad
66931028f4
Don't repeatedly lookup keys in babe_epochAuthorship rpc function ( #5962 )
...
* babe: don't repeatedly lookup keys in authorship rpc function
Expose a new function `claim_slot_using_keypars` in Babe so that the `babe_epochAuthorship` can
lookup authorship for all slots in the epoch without repeatedly looking up keys in the keystore.
Time to run the `babe_epochAuthorship` RPC call goes from 7s to 25ms on a local dev chain on my
machine.
* babe: pass reference to slice instead of ref to Vec
* babe: fix bunch of clippy warnings
2020-05-11 10:48:34 +02:00
Nikolay Volf
679c91e18c
Refactor network transactions handling ( #5939 )
...
* change propagation
* add bound
2020-05-11 10:36:00 +02:00
Arkadiy Paronyan
e0b17dd7a9
Bump wasmtime again ( #5950 )
...
* Update wasmtime (#5822 )
* update wasmtime
* update tests
* Update client/executor/wasmtime/src/host.rs
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
* wip
* use master-candidate
* update with patches
* update versions
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Bump version
* Added parallel execution test
Co-authored-by: Nikolay Volf <nikvolf@gmail.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2020-05-08 22:22:54 +02:00
Joshy Orndorff
2ae3fe121c
Fix light clients in manual seal nodes ( #5955 )
...
* WIP
* WIP
2020-05-08 11:18:32 +02:00
Bastian Köcher
6a6f2554b4
Make sure config_mut returns a mutable reference ( #5942 )
2020-05-07 22:07:46 +02:00
Pierre Krieger
a8fac92396
Disconnect node after sync request cancelled ( #5945 )
2020-05-07 15:07:52 +02:00
Nikolay Volf
ffb2d09aa1
change to vecdeque ( #5937 )
2020-05-07 12:50:07 +02:00