Skip to content
Snippets Groups Projects
  1. Jun 26, 2020
  2. Jun 25, 2020
  3. Jun 24, 2020
  4. Jun 23, 2020
    • Cecile Tonglet's avatar
      Ensure the listen addresses are consistent with the transport (#6436) · 4bf044ea
      Cecile Tonglet authored
      * Initial commit
      
      Forked at: 82bdf1a8
      
      
      No parent branch.
      
      * Ensure the listen addresses are consistent with the transport
      
      * Update client/network/src/error.rs
      
      * Update client/network/src/service.rs
      
      * Better implementation
      
      * Fix bad previous impl
      
      * add boot_nodes
      
      * reserved nodes
      
      * test boot nodes
      
      * reserved nodes tests
      
      * add public_addresses and make specific error type
      
      * Update client/network/src/error.rs
      
      Co-authored-by: default avatarPierre Krieger <pierre.krieger1708@gmail.com>
      
      Co-authored-by: default avatarPierre Krieger <pierre.krieger1708@gmail.com>
      4bf044ea
    • Max Inden's avatar
      client/network/service: Add primary dimension to connection metrics (#6472) · bd79b3de
      Max Inden authored
      * client/network/service: Add primary dimension to connection metrics
      
      Two nodes can be interconnected via one or more connections. The first
      of those connections is called the primary connection.
      
      This commit adds another dimension to the
      `sub_libp2p_connections_{closed,opened}_total` metrics to differentiate
      primary and non-primary connections being opened / closed.
      
      By intuition more than one connection between two nodes is rare.
      Tracking the fact whether a connection is primary or not will help prove
      or disprove this intuition.
      
      * .maintain/monitoring: Ensure to sum over all connections_closed variants
      
      * client/network/service: Rename is_primary to is_first
      
      * client/network/service: Split by metric name with two additional metrics
      
      * Revert ".maintain/monitoring: Ensure to sum over all connections_closed variants"
      
      This reverts commit 2d2f93e414440b9fc9e8f7fae6fe48bd95af6b8f.
      
      * client/network/service: Remove labels from distinct metrics
      bd79b3de
    • Ashley's avatar
      Fix the browser node and ensure it doesn't colour the informant output (#6457) · d976f712
      Ashley authored
      * Fix browser informant
      
      * Fix documentation
      
      * Add an informant_output_format function to the cli config
      
      * Wrap informant output format in an option
      
      * Revert batch verifier
      
      * Remove wasm-timer from primitives io cargo lock
      
      * Drop informant_output_format function
      
      * derive debug for output format
      d976f712
    • Cecile Tonglet's avatar
      impl Debug for sc_service::Configuration (#6400) · 63793c8b
      Cecile Tonglet authored
      * Initial commit
      
      Forked at: 252416d3
      
      
      No parent branch.
      
      * Make sc_service::Configuration derive Debug
      
      * Replace task_executor fn's input by proper TaskExecutor type (cleaner)
      
      * impl From<Fn> for TaskExecutor
      
      * Update client/cli/src/runner.rs
      
      * Add some doc, examples and tests
      
      * Replace Deref by fn spawn as suggested
      
      Co-authored-by: default avatarBastian Köcher <bkchr@users.noreply.github.com>
      63793c8b
    • pscott's avatar
      Optimize offchain worker api by re-using http-client (#6454) · ceb0fa63
      pscott authored
      * Fix typo in offchain's docs
      
      * Use Self keyword in AsyncApi::new()
      
      * Move httpclient to be part of OffchainWorkers to optimize block import
      
      * Fix compilation errors for tests
      
      * Add wrapper struct for HyperClient
      
      * Use lazy_static share SharedClient amongst OffchainWorkers. Remove the need to raise the fd limit
      
      * Revert "Use lazy_static share SharedClient amongst OffchainWorkers. Remove the need to raise the fd limit"
      
      This reverts commit 7af97498a2383b5d7405e27823db8fd97245da41.
      
      * Add lazy_static for tests
      ceb0fa63
    • Roman Borschel's avatar
      Avoid panic on dropping a `sc_network::service::out_events::Receiver`. (#6458) · 6aa8965f
      Roman Borschel authored
      * Avoid panic on dropping a `Receiver`.
      
      * CI
      6aa8965f
  5. Jun 22, 2020
  6. Jun 21, 2020
  7. Jun 19, 2020
    • Bastian Köcher's avatar
      Fix Babe secondary plain slots claiming (#6451) · 62ba0cc7
      Bastian Köcher authored
      We need to check that the public key of an authority exists in our
      keystore before we can successfully claim a plain secondary slot.
      62ba0cc7
    • Arkadiy Paronyan's avatar
      Validate encoding of extrinsics passed to runtime (#6442) · 7b344381
      Arkadiy Paronyan authored
      * Validate encoding of extrinsics passed to runtime
      
      * Bump codec version explicitly
      7b344381
    • Nikolay Volf's avatar
      add network propagated metrics (#6438) · 6e85555e
      Nikolay Volf authored
      6e85555e
    • Max Inden's avatar
      client/authority-discovery: Compare PeerIds and not Multihashes (#6414) · cbfbad6f
      Max Inden authored
      In order to tell whether an address is the local nodes address the
      authority discovery module previously compared the Multihash within the
      `p2p` Multiaddr protocol.
      
      rust-libp2p recently switched to a new PeerId representation (see [1]).
      Multihashes of the same PeerId in the new and the old format don't
      equal.
      
      Instead of comparing the Multihashes, this patch ensures the module
      compares the PeerIds
      
      [1] https://github.com/libp2p/rust-libp2p/issues/555
      cbfbad6f
    • Bastian Köcher's avatar
      Update sync chain info on own block import (#6424) · 7858828d
      Bastian Köcher authored
      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.
      7858828d
    • Cecile Tonglet's avatar
      More descriptive error message when invalid slot duration is used (#6430) · 2645659a
      Cecile Tonglet authored
      * Initial commit
      
      Forked at: 252416d3
      
      
      No parent branch.
      
      * Errors if slot_duration is zero
      
      * Errors if slot_duration is zero
      
      * Revert "Errors if slot_duration is zero"
      
      This reverts commit a9e9820e124571f73d3e498e969a74d01fd3fe96.
      
      * Update client/consensus/slots/src/lib.rs
      
      Co-authored-by: default avatarBastian Köcher <bkchr@users.noreply.github.com>
      2645659a
    • Bastian Köcher's avatar
      Track last blocks in informant display (#6429) · 40e48684
      Bastian Köcher authored
      This implements tracking of the last seen blocks in informant display
      to prevent printing the import message twice. In Cumulus we first import
      blocks as part of the block building with `new_best == false` and set
      the best block after we know which one was included by the relay chain.
      This leads to printing the import messages two times. This pr solves the
      problem by track the latest seen blocks to not print the message twice.
      40e48684
  8. Jun 18, 2020
    • Pierre Krieger's avatar
      dd7830d4
    • Rakan Alhneiti's avatar
      Babe VRF Signing in keystore (#6225) · d25f460b
      Rakan Alhneiti authored
      * Introduce trait
      
      * Implement VRFSigner in keystore
      
      * Use vrf_sign from keystore
      
      * Convert output to VRFInOut
      
      * Simplify conversion
      
      * vrf_sign secondary slot using keystore
      
      * Fix RPC call to claim_slot
      
      * Use Public instead of Pair
      
      * Check primary threshold in signer
      
      * Fix interface to return error
      
      * Move vrf_sign to BareCryptoStore
      
      * Fix authorship_works test
      
      * Fix BABE logic leaks
      
      * Acquire a read lock once
      
      * Also fix RPC acquiring the read lock once
      
      * Implement a generic way to construct VRF Transcript
      
      * Use make_transcript_data to call sr25519_vrf_sign
      
      * Make sure VRFTranscriptData is serializable
      
      * Cleanup
      
      * Move VRF to it's own module
      
      * Implement & test VRF signing in testing module
      
      * Remove leftover
      
      * Fix feature requirements
      
      * Revert removing vec macro
      
      * Drop keystore pointer to prevent deadlock
      
      * Nitpicks
      
      * Add test to make sure make_transcript works
      
      * Fix mismatch in VRF transcript
      
      * Add a test to verify transcripts match in babe
      
      * Return VRFOutput and VRFProof from keystore
      d25f460b
    • Pierre Krieger's avatar
      527cc35a
    • Arkadiy Paronyan's avatar
      Revert "Block packet size limit" · 850ee8b4
      Arkadiy Paronyan authored
      This reverts commit 08e0747d.
      850ee8b4
    • Arkadiy Paronyan's avatar
      Block packet size limit · 08e0747d
      Arkadiy Paronyan authored
      08e0747d
    • mattrutherford's avatar
      Runtime interface to add support for tracing from wasm (#6381) · 74a989f3
      mattrutherford authored
      
      * Add span recording to tracing implementation
      
      * Add tracing proxy
      
      * switch to rustc_hash::FxHashMap
      
      * Replace lazy_static and hashmap with thread_local and vec.
      
      * fix marking valid span as invalid while removing invalid spans
      
      * refactor, add wasm_tracing module in `support`
      
      * update registered spans
      
      * tidy up
      
      * typos
      
      * refactor
      
      * update flag name to signal lost trace - `is_valid_trace`
      
      * update flag name to signal lost trace - `is_valid_trace`
      
      * update docs
      
      * update docs
      
      * Use tracing Field recording to store the actual `name` and `target`
      from wasm traces.
      
      * fix debug log in subscriber + small refactor
      
      * add tests
      
      * handle misuse in case trying to exit span not held
      
      * Implement filter for wasm traces, simplify field recording for primitive types
      
      * remove superfluous warning
      
      * update docs
      
      * Update primitives/tracing/src/proxy.rs
      
      Co-authored-by: default avatarKian Paimani <5588131+kianenigma@users.noreply.github.com>
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBastian Köcher <bkchr@users.noreply.github.com>
      
      * update docs, apply suggestions
      
      * move Proxy from thread_local to `Extension`, rename macro
      
      * fix test
      
      * unify native & wasm span macro calls
      
      * implement wasm tracing control facility in primitives and frame
      
      * add cli flag `--wasm-tracing`
      
      * fix
      
      * switch to `Option<u4>` (possible performance degradation), switch
      to static mut bool
      
      * performance improvement using u64 vs Option<u64>
      
      * performance improvement moving concat to client
      
      * update docs
      
      * Update client/cli/src/params/import_params.rs
      
      Co-authored-by: default avatarCecile Tonglet <cecile@parity.io>
      
      * performance improvement
      
      * Revert "performance improvement"
      
      This reverts commit 55ff8817a86302cd93bb6197eb4ca5bc7f4fb524.
      
      * small refactor
      
      * formatting
      
      * bump impl_version
      
      * Update client/cli/src/config.rs
      
      Co-authored-by: default avatarBastian Köcher <bkchr@users.noreply.github.com>
      
      * update docs
      
      * small fixes, remove pub static
      
      * nit
      
      * add integration tests and refactor Subscriber
      
      * tests
      
      * revert formatting
      
      * try fix test that works locally but not in CI
      
      * try fix test that works locally but not in CI
      
      * debug test that works locally but not in CI
      
      * fix test that works locally but not in CI
      
      * remove pub visibility from bool in runtime
      
      * make TracingSpanGuard #[cfg(not(feature = "std"))], update docs, comments
      
      * make TracingProxy drop implementation conditional on !empty state
      
      * add docs for TraceHandler
      
      * remove blank line
      
      * update expect message
      
      * update tests
      
      * rename cli option to tracing_enable_wasm
      
      * rename cli option to tracing_enable_wasm
      
      * fix
      
      * ensure wasm-tracing features are wasm only
      
      * bump impl_version
      
      * bump impl_version
      
      * add `"pallet-scheduler/std"` to `[features]` `std` in node/runtime
      
      * refactor service to remove sp_tracing dependency
      
      * refactor: line width, trait bounds
      
      * improve LogTraceHandler output
      
      * fix test
      
      * improve tracing log output
      
      * Apply suggestions from code review
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBastian Köcher <bkchr@users.noreply.github.com>
      
      * swap wasm indication from trace name to a separate value
      
      * Update client/tracing/src/lib.rs
      
      * add docs
      
      * remove runtime features
      
      remove wasm_tracing option from CLI
      
      remove wasm_tracing flag from ProfilingSubscriber
      
      Co-authored-by: default avatarMatt Rutherford <mattrutherford@users.noreply.github.com>
      Co-authored-by: default avatarKian Paimani <5588131+kianenigma@users.noreply.github.com>
      Co-authored-by: default avatarBastian Köcher <bkchr@users.noreply.github.com>
      Co-authored-by: default avatarCecile Tonglet <cecile@parity.io>
      74a989f3
    • Pierre Krieger's avatar
      fec43fe6
  9. Jun 16, 2020
  10. Jun 12, 2020
    • Bastian Köcher's avatar
      Fix transaction pool event sending (#6341) · 56e2cec0
      Bastian Köcher authored
      This pr fixes a bug with the transaction pool not sending certain events
      like finalized and also fixes the order of events. The problem with the
      finalized event was that we did not extracted pruned extrinsics if there
      were not ready transactions in the pool. However this is wrong, if we
      have a re-org, a tx is clearly not ready anymore and we still need to
      send a pruned event for it because it is in a new block included. This
      also lead to sending "ready" events and tx being re-validated. The
      listener also only send the "finalized" event if it has seen a block as
      being included, which did not happen before with the old code.
      
      The second fix of the pr is the order of events. If we prune and retract the
      same transaction in the same block, we first need to send the "retract"
      event and after that the "pruned" event, because finalization takes
      longer and this would lead to the UI showing "retract" while it actually
      is included.
      56e2cec0
    • André Silva's avatar
      client: use appropriate ExecutionContext for initial sync / regular import (#6180) · 2b59d57c
      André Silva authored
      * client: use appropriate ExecutionContext for sync/import
      
      * client: remove dead code
      
      * client: ExecutionContext: distinguish between own and foreign imports
      
      * client: fix cli parameter doc
      
      * Revert "client: ExecutionContext: distinguish between own and foreign imports"
      
      This reverts commit 0fac11520704c364a82432c5b927e987ba043cdb.
      
      * primitives: add docs for ExecutionContext
      
      * cli: execution strategy docs
      
      * cli: use different execution context for importing block on validator
      
      * cli: remove defaults from execution context flags
      2b59d57c
  11. Jun 11, 2020