- Mar 26, 2020
-
-
Pierre Krieger authored
* Improve sc-network's documentation for network protocols * Add note about protocol id * Apply suggestions from code review Co-Authored-By:
Max Inden <mail@max-inden.de> Co-authored-by:
Max Inden <mail@max-inden.de>
-
Arkadiy Paronyan authored
* Allow syncing to peers with finalized common block * Added test
-
pscott authored
* Check for url validity when creating TelemetryEndpoints * Update code that used TelemetryEndpoints::new() * Update commennts that referred to TelemetryEndpoints::new() * Add tests for telemetry * Fix typo and fix code in docs * Return error on failing to override telemetry * Use expect instead of suppressing errors on must-be-valid telemetry endpoints * Update telemetry unit tests to use expect instead of unwrap * Implement custom deserializer for TelemetryEndpoints * Fix typo * Apply suggestions from code review Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com>
-
- Mar 25, 2020
-
-
Max Inden authored
* client/finality-grandpa/src/until_imported: Refactor BlockGlobalMessage `BlockGlobalMessage` owns an `inner` which contains (1) a count for the amount of outstanding blocks to be waited on and (2) the message itself. Given that both is already wrapped in an `Arc` there is no need to keep track of the outstanding blocks, given that it simply corresponds to the amount of strong reference counts on the `Arc` itself. This commit removes the atomic counter within `inner` and piggy backs on the `Arc` reference counter instead. * client/finality-grandpa/src/until_imported: Remove useless match * client/finality-grandpa/src/until_imported.rs: Remove unused var Co-Authored-By:
André Silva <andre.beat@gmail.com> * client/finality-grandpa/src/until_imported: Address comment suggestion Co-authored-by:
André Silva <andre.beat@gmail.com>
-
Joshy Orndorff authored
* delias outer node template * dealias pallet template * Fix mock * attempt to fix warning * Revert "attempt to fix warning" This reverts commit 3d39142b877fb7ae2bd9bd0b31442a00d4c8f0bf. * Add call to test interface.
-
André Silva authored
* always depend on latest alpha version * integrate arithmetic fuzzer into root workspace
-
Tomasz Drwięga authored
* WiP * Support source in the runtime API. * Finish implementation in txpool. * Fix warning. * Fix tests. * Apply suggestions from code review Co-Authored-By:
Kian Paimani <5588131+kianenigma@users.noreply.github.com> Co-Authored-By:
Nikolay Volf <nikvolf@gmail.com> * Extra changes. * Fix test and benches. * fix test * Fix test & benches again. * Fix tests. * Update bumpalo * Fix doc test. * Fix doctest. * Fix doctest. Co-authored-by:
Kian Paimani <5588131+kianenigma@users.noreply.github.com> Co-authored-by:
Nikolay Volf <nikvolf@gmail.com>
-
Nikolay Volf authored
* fix propagation in network * Update client/service/src/lib.rs Co-Authored-By:
Bastian Köcher <bkchr@users.noreply.github.com> * fix suggestion Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com>
-
- Mar 24, 2020
-
-
Wei Tang authored
* Split PrimaryPreDigest and SecondaryPreDigest * Update client/consensus/babe/src/lib.rs Co-Authored-By:
André Silva <andre.beat@gmail.com> * Update primitives/consensus/babe/src/digests.rs Co-Authored-By:
André Silva <andre.beat@gmail.com> * Update primitives/consensus/babe/src/digests.rs Co-Authored-By:
André Silva <andre.beat@gmail.com> * Update primitives/consensus/babe/src/digests.rs Co-Authored-By:
André Silva <andre.beat@gmail.com> Co-authored-by:
André Silva <andre.beat@gmail.com>
-
Nikolay Volf authored
* use versioning for deprecated api, remove deprecated api from regular verification * Update primitives/core/src/sr25519.rs * add test to transaction pool Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com>
-
Bastian Köcher authored
* Print an error when a bootnode is on a different chain * Fix tests
-
Benjamin Kampmann authored
* bump pre-version * Changelog alpha.4->alpha.5 * repo + homepage to sp-consensus-vrf * Add default rocksdb feature to `frame-benchmarking-cli` (#5367) * Add default rocksdb feature * Update Cargo.toml Co-authored-by:
Shawn Tabrizi <shawntabrizi@gmail.com>
-
Stanislav Tkach authored
* Get rid of rustc_hex in favor of hex * Use HexDisplay
-
- Mar 23, 2020
-
-
Bastian Köcher authored
Currently when we connect to a bootnode and it returns a different peer id, than the one we provided, we disconnect silently. This pr changes the behavior to printing an error when a bootnode returns a different peer id than the provided one.
-
Wei Tang authored
* Init vrf crate without type alias * Generic PreDigest definition for BABE * Fix BABE vrf interface change * Missing default-features def in sp-consensus-babe * Fix sp-consensus-babe compile * frame-babe: fix type inference * Unify type definitions of vrf output/proof and randomness * frame-babe: fix tests * Bump node impl version * Update cargo lock * Derive Copy for RawVRFOutput and RawVRFProof * Fix duplicated derive Co-authored-by:
Gavin Wood <gavin@parity.io>
-
Pierre Krieger authored
-
Max Inden authored
A gossip validator returns `ValidationResult::Discard` for messages that should not be processed nor kept due to not being useful for the node. Examples are out-of-scope messages or messages with bad signatures. The corresponding log message did not reflect this, thus the update through this patch. One caveat is a finality grandpa neighbor packet. Given that the concept of neighbor packets is handled in the finality grandpa gossip validator only, valid neighbor packets are always discarded on the `client/network-gossip` layer.
-
- Mar 21, 2020
-
-
ddorgan authored
-
joe petrowski authored
* minor fixes to CLI arg docs * Update client/cli/src/params/shared_params.rs Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com>
-
- Mar 20, 2020
-
-
André Silva authored
* grandpa: allow noting same set in gossip with different authorities * grandpa: add test for note_set behavior
-
Bastian Köcher authored
-
Pierre Krieger authored
* Remove the #[doc(hidden)] reexports of sc_network * Fix tests not building
-
Benjamin Kampmann authored
-
joe petrowski authored
-
- Mar 19, 2020
-
-
Gavin Wood authored
* Remove migration code. * Fix cargo * Bump spec version
-
Bastian Köcher authored
-
Benjamin Kampmann authored
* switching to released wasmtime * update depdencies in general * Update fdlimit * Update parity common deps * Also update schnorrkel * update kvdb-rocksdb * update further dependents * also update primitive types * update cargo.lock * update merlin * Bumping evm version
-
Arkadiy Paronyan authored
* Don't queue duplicate blocks * Keep queue_blocks on restart
-
Roman Borschel authored
env_logger::init() can lead to panics on concurrent test execution. See: https://gitlab.parity.io/parity/substrate/-/jobs/422283
-
André Silva authored
-
André Silva authored
* grandpa: support for hard forking any pending standard changes * grandpa: expose authority_set_hard_forks in block import constructor * grandpa: don't break the public api
-
- Mar 18, 2020
-
-
Max Inden authored
* client/network-gossip/src/bridge: Finish when network even stream closes Previously within `<GossipEngine as Future>::poll` one would poll the `network_event_stream` ignoring all messages other than `Poll::Ready(Some())`. Ignoring `Poll::Ready(None)` leads to a panic on the next poll of the stream, gien that it is not fused. By design `network_event_stream` does not close unless an unbounded send into it fails, or the `NetworkWorker` gets shut down. > The stream never ends (unless the `NetworkWorker` gets shut down). > (client/network/src/service.rs) An `unbounded_send` to fail on an unbounded channel is unlikely. The `NetworkWorker` shutting down is not unlikely. In such case the `GossipEngine` should shut down as well. With this patch a `<GossipEngine as Future>` finishes on `Poll::Ready(None)` returned from `network_event_stream`. * client/finality-grandpa/communication: Error on gossip engine finished Have `<NetworkBridge as Future>::poll` return `Poll::Ready(Err)` instead of `Poll::Ready(Ok)` to be consistent with the handling of the neighbor packet worker stream and the gossip validator report stream. Both `Err` as well as `Ok` shut down the `NetworkBridge` as well as the `VoterWorker`. * client/network-gossip/src/bridge: Add regression test * client/network-gossip: Move substrate test client to dev dependencies * client/network-gossip: Remove TODO Addressed in a follow up pull request. * client/network-gossip/bridge: Put match on newline after loop * client/finality-grandpa/src/observer: Fix regression test Make sure the event stream sender side is not dropped till the end.
-
Benjamin Kampmann authored
* Adding missing metadata for benchmark-pallet * Missed to bump a few * release on roling tag * Wasm executors were missed
-
Benjamin Kampmann authored
* Version bump * Split generate_changelog.sh into separate script Can be run in the format `generate_changelog.sh $previous_version $version`. * remove early exit from publish_draft_release.sh * adding changelog * ci: change last_github_release to also find pre-releases Co-authored-by:
Martin Pugh <pugh@s3kr.it>
-
Toralf Wittner authored
If polling encounters a `Poll::Pending` we need to return it instead of continuing the loop which may turn it into a blocking operation, causing problems with executors.
-
- Mar 17, 2020
-
-
Nikolay Volf authored
* make sure return ready iterator once state is updated * update sc_basic_authorship tests * update node tests * fix manual seal * actually fix service test * add tests * Update client/basic-authorship/src/basic_authorship.rs Co-Authored-By:
Tomasz Drwięga <tomusdrw@users.noreply.github.com> * helper function * review suggestions * warning and continue * add debug log * use futures::chennel::oneshot * use declaration bound * no option for updated_at * no allocation * ready_at / ready * Update client/transaction-pool/src/lib.rs Co-Authored-By:
Bastian Köcher <bkchr@users.noreply.github.com> * Update client/transaction-pool/src/lib.rs Co-Authored-By:
Bastian Köcher <bkchr@users.noreply.github.com> * Update client/transaction-pool/src/lib.rs Co-Authored-By:
Bastian Köcher <bkchr@users.noreply.github.com> * Update client/transaction-pool/src/lib.rs Co-Authored-By:
Bastian Köcher <bkchr@users.noreply.github.com> * Update client/transaction-pool/src/lib.rs Co-Authored-By:
Bastian Köcher <bkchr@users.noreply.github.com> * Update client/transaction-pool/src/lib.rs Co-Authored-By:
Bastian Köcher <bkchr@users.noreply.github.com> Co-authored-by:
Tomasz Drwięga <tomusdrw@users.noreply.github.com> Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com>
-
Arkadiy Paronyan authored
-
Max Inden authored
* client/network/src/protocol: Start Prometheus metric help with capital * client/network/src/protocol: Differentiate metric status as label Prometheus query language is powerful through its multi-dimensional data model. Metric names are hirarchical whereas labels enable data to become multi-dimensional. Exposing the justification of finality-proof status as a label allows for more powerful queries. * client/network/src/protocol: Remove 'Total' from non counter metric help The word 'total' is reserved for accumulating counters. Counters have to be monotonically increasing. `obsolete_requests` can decrease, thereby it is defined as a `Gauge` and not a `Counter`. For more details on metric naming see https://prometheus.io/docs/practices/naming/
-
- Mar 16, 2020
-
-
Wei Tang authored
* fork-tree: prune returns all pruned node data * epoch-changes: split EpochHeader vs epoch data * EpochChanges::viable_epoch and add missing comments * Incoperate the new epoch_changes interface for BABE * Fix BABE tests * Fix fork-tree pruning issue * Fix tests * Fix pruning algorithm * fork-tree: implement map function for mapping one value type to another * Add migration script for new epoch changes scheme * Update utils/fork-tree/src/lib.rs Co-Authored-By:
André Silva <andre.beat@gmail.com> * Update client/consensus/slots/src/lib.rs Co-Authored-By:
André Silva <andre.beat@gmail.com> * Remove authorities_len.is_none check, which is duplicate of unwrap_or(false) * Update client/consensus/epochs/src/lib.rs Co-Authored-By:
André Silva <andre.beat@gmail.com> * Update client/consensus/epochs/src/lib.rs Co-Authored-By:
André Silva <andre.beat@gmail.com> * No trailing ; for return statement * Use VERSION_KEY for migration * Fix issues that removed nodes are not properly added into removed list * Add comments indicating end_slot is non-inclusive * fork-tree: use &mut F for map type declaration * Add tests for v0 epoch_changes migration * Fix babe RPC tests Co-authored-by:
André Silva <andre.beat@gmail.com>
-
Nikolay Volf authored
-