- Aug 28, 2020
-
-
Max Inden authored
* client/*: Treat protocol name as str and not [u8] Notification protocol names are in practice always valid utf8 strings. Instead of treating them as such in the type system, thus far they were casted to a [u8] at creation time. With this commit protocol names are instead treated as valid utf8 strings throughout the codebase and passed as `Cow<'static, str>` instead of `Cow<'static, [u8]>`. Among other things this eliminates the need for string casting when logging. * client/network: Don't allocate when protocol name is borrowed
-
- Jul 29, 2020
-
-
Pierre Krieger authored
* Add NetworkService::send_notifications * Doc * Doc * API adjustment * Address concerns * Make it compile * Start implementation * Progress in the implementation * Change implementation strategy again * More work before weekend * Finish changes * Minor doc fix * Revert some minor changes * Apply suggestions from code review * GroupError -> NotifsHandlerError * Apply suggestions from code review Co-authored-by: Roman Borschel <[email protected]> * state_transition_waker -> close_waker * Apply suggestions from code review Co-authored-by: Roman Borschel <[email protected]> * Finish renames in service.rs * More renames * More review suggestsions applied * More review addressing * Final change * 512 -> 2048 Co-authored-by: Roman Borschel <[email protected]>
-
- Jul 21, 2020
-
-
pscott authored
* Improve overall performance * Clean up code Co-authored-by: Bastian Köcher <[email protected]> * Remove needless :: Co-authored-by: Bastian Köcher <[email protected]> * Remove needless :: Co-authored-by: Kian Paimani <[email protected]> Co-authored-by: Bastian Köcher <[email protected]> Co-authored-by: Kian Paimani <[email protected]>
-
- Jul 15, 2020
-
-
Pierre Krieger authored
* Move the legacy protocol handshake to the legacy substream * Fix tests * Remove line that wasn't supposed to be committed * Remove hack * Rework how it's done * Some little changes * update_chain wasn't doing its thing * Fix service tests not calling update_chain * Update client/network/src/protocol/generic_proto/behaviour.rs Co-authored-by: Max Inden <[email protected]> * [WIP] * Revert "[WIP]" This reverts commit 2b892e6a . * Update client/network/src/protocol.rs Co-authored-by: Max Inden <[email protected]> * Fix received message not being handshake * Update client/network/src/protocol/generic_proto/behaviour.rs Co-authored-by: Max Inden <[email protected]> Co-authored-by: Max Inden <[email protected]>
-
- Jul 14, 2020
-
-
Pierre Krieger authored
-
- Jul 08, 2020
-
-
Pierre Krieger authored
* Send Status message on all newly-opened legacy substreams * Fix tests
-
- Jun 11, 2020
-
-
Roman Borschel authored
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.
-
- May 26, 2020
-
-
Pierre Krieger authored
* Don't iterate over peers in generic_proto::behaviour::poll * Improve comment * Rework to use DelayIds
-
- May 21, 2020
-
-
Arkadiy Paronyan authored
-
- May 20, 2020
-
-
Pierre Krieger authored
* Turn a SmallVec into VecDeque for performances * Fix the other SmallVecs
-
- May 18, 2020
-
-
Pierre Krieger authored
* Add an error if we discover our own network identity * Fix tests
-
- May 15, 2020
-
-
Pierre Krieger authored
* Fix lots of small nits in sc-network * Update client/network/src/protocol/sync/blocks.rs Co-authored-by: Arkadiy Paronyan <[email protected]> * Fix warning * Yes. The line width. Co-authored-by: Arkadiy Paronyan <[email protected]>
-
- May 13, 2020
-
-
Pierre Krieger authored
* Fix state mismatch in behaviour.rs * Add TODO
-
Pierre Krieger authored
* Add mitigation for the state inconsistency issue * Add logging
-
- May 12, 2020
-
-
Pierre Krieger authored
-
- Apr 22, 2020
-
-
Pierre Krieger authored
* Send a status message on block announce handshake * Make sure to send the handshake to all handlers
-
- Apr 21, 2020
-
-
Pierre Krieger authored
-
- Apr 09, 2020
-
-
Roman Borschel authored
-
Pierre Krieger authored
* Report local force-closing connections to Prometheus * Also report ping timeouts separately * Address concerns of #5571
-
- Apr 08, 2020
-
-
Roman Borschel authored
* Adapt to rust-libp2p#1440. * Further adapt to libp2p/master. * Update to libp2p-0.17 * Finishing touches. * Remove stray TODO. * Incorporate review feedback. * Remove unused import.
-
- Apr 03, 2020
-
-
Pierre Krieger authored
* Add a sub_libp2p_notifications_queues_size Prometheus metric * Fix network tests * Address review
-
- Apr 01, 2020
-
-
Pierre Krieger authored
-
- Mar 30, 2020
-
-
Pierre Krieger authored
* Make transactions and block announces use notifications * Add documentation
-
- Mar 05, 2020
-
-
Gavin Wood authored
* Add some metrics * Address concerns
-
- Feb 21, 2020
-
-
Pierre Krieger authored
* Open one substream for each notifications protocol * Fix WASM build * Apply suggestions from code review Co-Authored-By: Toralf Wittner <[email protected]> * Address concerns * Use unsigned-varint to read the varint * Use unsigned-varint * Forgot Cargo.lock Co-authored-by: Toralf Wittner <[email protected]>
-
- Feb 17, 2020
-
-
Pierre Krieger authored
* Fix potential peerset panic at initialization * Also fix legacy_proto/behaviour.rs
-
Pierre Krieger authored
* Update libp2p to 0.16 * Actually update to libp2p 0.16
🤦 * Fix missed updates * Fix peerset tests
-
- Feb 10, 2020
-
-
Ashley authored
* Make WASM browser thing compile * Fix * updated exit-future (github repo) * Switch to broadcast crate * Migrate client/cli * Switch exit-future to modernize branch * Small changes * Switch to cargo version and fix fg tests * fix basic-authorship * Fix crash on grafana macro * Fix grafana macro * Switch node python version * Disable record_metrics_slice in grafana macro on wasm * Update client/grafana-data-source/src/lib.rs * Revert "Update client/grafana-data-source/src/lib.rs" This reverts commit 888009a8. * Add wasm support for state machine * Switch to my own libp2p version * Revert "Switch to my own libp2p version" This reverts commit ce613871. * Revert "Add wasm support for state machine" This reverts commit de7eaa06 . * Add sc-browser * Squash * remove sc-browser * Fix keystore on wasm * stubs for removed functions to make env compatible with old runtimes * Add test (that doesn't work) * Fix build scripts * Revert basic-authorship due to no panics * Revert cli/informant * Revert consensus * revert offchain * Update utils/browser/Cargo.toml Co-Authored-By: Benjamin Kampmann <[email protected]> * export console functions * Add new chainspec * Fix ws in chain spec * revert chainspec * Fix chainspec * Use an Option<PathBuf> in keystore instead of cfg flags * Remove crud * Only use wasm-timer for instant and systemtime * Remove telemetry changes * Assuming this is ok * Add a KeystoreConfig * Add stubs back in * Update libp2p * Revert "Add stubs back in" This reverts commit 4690cf18. * Remove commented js again * Bump kvdb-web version * Fix cli * Switch branch on futures-timer * Fix tests * Remove sc-client test build in check-web-wasm because there isn't a good way to build futures-timer with wasm-bindgen support in the build * Remove more things ^^ * Switch branch on futures-timer back * Put DB io stats behind a cfg flag * Fix things * Don't timeout transports on wasm * Update branch of futures-timer and fix bad merge * Spawn informant * Fix network test * Fix delay resets * Changes * Fix tests * use wasm_timer for transaction pool * Fixes * Switch futures-timer to crates * Only diagnose futures on native * Fix sc-network-test tests * Select log level in js * Fix syncing ;^) * Allow disabling colours in the informant * Use OutputFormat enum for informant * MallocSizeOf impl on transaction pool broke stuff because wasm_timer::Instant doesnt impl it so just revert the transaction pool to master * Update futures-diagnose * Revert "MallocSizeOf impl on transaction pool broke stuff because wasm_timer::Instant doesnt impl it so just revert the transaction pool to master" This reverts commit baa4ffc9 . * Pass whole chain spec in start_client * Get Instant::now to work in transaction pool again * Informant dep reordering Co-authored-by: Pierre Krieger <[email protected]> Co-authored-by: Bastian Köcher <[email protected]> Co-authored-by: Svyatoslav Nikolsky <[email protected]> Co-authored-by: Benjamin Kampmann <[email protected]> Co-authored-by: Demi Obenour <[email protected]>
-
- Jan 09, 2020
-
-
Pierre Krieger authored
* Entirely update substrate-telemetry to futures 0.3 * Add a Closed error * Update to libp2p 0.14 * More work * More work * More work * More work * Fix warnings * Remove unwrap() * Work on tests fixing * Fix network tests * Fix external network tests * Update libp2p and restore Yamux in discovery test * Ignore DNS if initializatio nfails * Restore variables ordering * Forgot browser-utils * Fix downfall after merge * Fix tests
-
- Jan 05, 2020
-
-
Shawn Tabrizi authored
-
- Dec 16, 2019
-
-
Tomasz Drwięga authored
* Rename: Phase 1. * Unify codec. * Fixing: Phase 2 * Fixing: Phase 3. * Fixing: Phase 4. * Fixing: Phase 5. * Fixing: Phase 6. * Fixing: Phase 7. * Fixing: Phase 8. Tests * Fixing: Phase 9. Tests!!! * Fixing: Phase 10. Moar tests! * Finally done! * More fixes. * Rename primitives:: to sp_core:: * Apply renames in finality-grandpa. * Fix benches. * Fix benches 2. * Revert node-template. * Fix frame-system in our modules.
-
- Dec 05, 2019
-
-
Pierre Krieger authored
* Move legacy_proto to protocol * Edition 2018ize legacy_proto * Some basic documentation
-
- Dec 03, 2019
-
-
Arkadiy Paronyan authored
-
- Nov 14, 2019
-
-
Benjamin Kampmann authored
* Adding first rough ouline of the repository structure * Remove old CI stuff * add title * formatting fixes * move node-exits job's script to scripts dir * Move docs into subdir * move to bin * move maintainence scripts, configs and helpers into its own dir * add .local to ignore * move core->client * start up 'test' area * move test client * move test runtime * make test move compile * Add dependencies rule enforcement. * Fix indexing. * Update docs to reflect latest changes * Moving /srml->/paint * update docs * move client/sr-* -> primitives/ * clean old readme * remove old broken code in rhd * update lock * Step 1. * starting to untangle client * Fix after merge. * start splitting out client interfaces * move children and blockchain interfaces * Move trie and state-machine to primitives. * Fix WASM builds. * fixing broken imports * more interface moves * move backend and light to interfaces * move CallExecutor * move cli off client * moving around more interfaces * re-add consensus crates into the mix * fix subkey path * relieve client from executor * starting to pull out client from grandpa * move is_decendent_of out of client * grandpa still depends on client directly * lemme tests pass * rename srml->paint * Make it compile. * rename interfaces->client-api * Move keyring to primitives. * fixup libp2p dep * fix broken use * allow dependency enforcement to fail * move fork-tree * Moving wasm-builder * make env * move build-script-utils * fixup broken crate depdencies and names * fix imports for authority discovery * fix typo * update cargo.lock * fixing imports * Fix paths and add missing crates * re-add missing crates
-
- Nov 05, 2019
-
-
Arkadiy Paronyan authored
* Network stats * Fixed tests
-
- Aug 09, 2019
-
-
Pierre Krieger authored
-
- Aug 07, 2019
-
-
Pierre Krieger authored
-
- Jul 29, 2019
-
-
* core/network: Fix bad import %s/runtime_primitives/sr_primitives/ * Cargo.lock: Update consensus-common-primitives parity-codec version * core/consensus/common: Remove obsolete package path
-
Pierre Krieger authored
-
- Jul 24, 2019
-
-
* Changes for the next libp2p release: * Updates to the Kademlia APIs. * Updated imports due to the extracted libp2p-swarm crate. * ... Still pending at least the following: * rust-libp2p/#1189 * rust-libp2p/#1191 * rust-libp2p/#1194 * Use Quorum::One. The previous choice was apparently arbitrary. * Use libp2p-0.11 from crates.io. Address feedback. * Correct imports after merge.
-