1. May 05, 2020
  2. May 04, 2020
    • Jon Häggblad's avatar
      Expose GRANDPA round state through RPC (#5375) · c0ccc24d
      Jon Häggblad authored
      
      
      * grandpa: wire up basic RPC call
      
      * grandpa: make it compile against GRANDPA with expose round state
      
      * grandpa: use shared voter state to expose RPC endpoint
      
      * grandpa: restructure into nested structs
      
      * grandpa: return background rounds too
      
      * grandpa: return error when endpoint not ready
      
      * grandpa: collect grandpa rpc deps
      
      * grandpa: decide to use concrete AuthorityId in finality-grandpa-rpc
      
      * grandpa: remove unncessary type annotation
      
      * grandpa: move error code to const
      
      * grandpa: remove unnecessary WIP comment
      
      * grandpa: remove Id type parameter for SharedVoterState
      
      * grandpa: update tests to add shared_voter_state in parameters
      
      * grandpa: remove old deprecated test
      
      * grandpa: fix getting the correct set_id
      
      * grandpa: make SharedVoterState a struct
      
      * grandpa: wrap shared_voter_state in rpc_setup
      
      * grandpa: replace spaces with tabs
      
      * grandpa: limit RwLock write attempt to 1 sec
      
      * grandpa: add missing doc comments and remove some pub
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarTomasz Drwięga <[email protected]>
      Co-Authored-By: default avatarHernando Castano <[email protected]>
      
      * grandpa: update function name call after change in finality-grandpa
      
      * grandpa: group pub use and only export voter::report
      
      * grandpa: add missing docs
      
      * grandpa: extract out structs used for json serialization
      
      * grandpa: stick to u32 for fields intended for js
      
      * grandpa: move Error type to its own file
      
      * grandpa: group pub use better
      
      * Apply code review suggestion
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * grandpa: use correct version of finality-granpda in rpc crate
      
      * grandpa: add back basic rpc unit test
      
      * grandpa: replace SharedVoterState::new() with empty()
      
      * node: cleanup grandpa::SharedVoterState usage in macro
      
      * grandpa: remove VoterState error variant
      
      * grandpa: enable missing futures compat feature
      
      * grandpa: fix typo in error variant
      
      * grandpa: remove test_utils
      
      * grandpa: allow mocking rpc handler components
      
      * grandpa: rename serialized to report in rpc module
      
      * grandpa: add proper test for RPC
      
      * grandpa: update to finality-grandpa v0.12.1
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      Co-authored-by: default avatarDemi Obenour <[email protected]>
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      Co-authored-by: default avatarHernando Castano <[email protected]>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      c0ccc24d
    • Wei Tang's avatar
      Correct BABE randomness by calculating InOut bytes directly in pallet (#5876) · 2b67057a
      Wei Tang authored
      
      
      * vrf: remove Raw* types
      
      * babe: remove Raw* types
      
      * pallet-babe: switch representation of RawVRFOutput to Randomness
      
      * pallet-babe: calculate inout within the pallet
      
      * Remove make_transcript duplication
      
      * Bump spec version
      
      * Fix frame tests
      
      * and_then -> map
      
      * Always enable u64_backend
      
      * Fix nostd compile
      
      * fix import: should not use std
      
      * Remove unused definition of RawVRFOutput
      
      * Remove unused import of RuntimeDebug
      
      Co-authored-by: default avatarGavin Wood <[email protected]>
      2b67057a
    • Bastian Köcher's avatar
      Expose that `BasicQueue` expects blocking spawn (#5860) · 30394132
      Bastian Köcher authored
      * Expose that `BasicQueue` expects blocking spawn
      
      Up to now `BasicQueue` expected a closure that to spawn a `Future`.
      This was expected to be a closure that spawns a blocking future.
      However, this wasn't documented anywhere. This pr introduces a new trait
      `SpawnBlocking` that exposes this requirement to the outside.
      
      * Feedback
      30394132
    • Arkadiy Paronyan's avatar
      Use header cache when creating state. (#5868) · e897928f
      Arkadiy Paronyan authored
      
      
      * Use header cache for state_at
      
      * Fixed warnings
      
      * Update client/db/src/lib.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      e897928f
    • Nikolay Volf's avatar
      Update wasmtime (#5822) · c4285c95
      Nikolay Volf authored
      
      
      * update wasmtime
      
      * update tests
      
      * Update client/executor/wasmtime/src/host.rs
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * wip
      
      * use master-candidate
      
      * update with patches
      
      * update versions
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      c4285c95
    • Pierre Krieger's avatar
      Report tasks panics in metrics (#5878) · a67ca031
      Pierre Krieger authored
      * Report tasks panics in metrics
      
      * Renames
      
      * Renames
      a67ca031
    • Bastian Köcher's avatar
      Fix `sync` logging (#5879) · 89e52af3
      Bastian Köcher authored
      89e52af3
  3. Apr 30, 2020
  4. Apr 29, 2020
  5. Apr 28, 2020
  6. Apr 27, 2020
  7. Apr 25, 2020
  8. Apr 24, 2020
    • André Silva's avatar
      babe: remove error fallback from threshold calculation (#5764) · 688f7021
      André Silva authored
      * babe: remove error fallbacks from threshold calculation
      
      * babe: fix indent
      
      * babe: fix domain
      
      * babe: fix compilation
      
      * babe: improve expect
      
      * babe: add one more note about p's limit
      688f7021
    • Max Inden's avatar
      client/authority-discovery: Reduce log level replaced by metrics · 2078b2b2
      Max Inden authored
      Instead of logging value-found-event-handling failures or value-put
      failures on error level, log them on debug level only additionally
      recording them via Prometheus.
      
      Motivation is that both events can happen in "normal" operations and
      thus clutter the logs.
      2078b2b2
    • Wei Tang's avatar
      babe: secondary blocks with VRF (#5501) · cddb42c6
      Wei Tang authored
      
      
      * babe: secondary blocks with VRF
      
      * Fix node runtime compile
      
      * Fix test-utils runtime interface
      
      * Fix babe tests
      
      * typo: v == 2
      
      * babe: support online configuration upgrades
      
      * Fix rpc tests
      
      * Fix runtime version tests
      
      * Switch to use NextConfigDescriptor instead of changing runtime interface
      
      * Fix tests
      
      * epoch-changes: map function that allows converting with different epoch types
      
      * Add migration script for the epoch config change
      
      * Fix docs for PrimaryAndSecondaryVRFSlots
      
      * Add docs of `SecondaryVRF` in babe crate
      
      * babe-primitives: Secondary -> SecondaryPlain
      
      * babe-client: Secondary -> SecondaryPlain
      
      * Fix migration tests
      
      * test-utils-runtime: Secondary -> SecondaryPlain
      
      * Fix missing name change in test-utils-runtime
      
      * Fix migration: Epoch should be EpochV0
      
      * Update client/consensus/babe/src/lib.rs
      
      Co-Authored-By: default avatarAndré Silva <[email protected]>
      
      * Fix new epochChanges version
      
      * Fix babe-primitives naming changes
      
      * Fix merge issues in babe-client
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      Co-authored-by: default avatarAndré Silva <[email protected]>
      cddb42c6
    • Bernhard Schuster's avatar
      feat/ocw/bookkeeping (#5200) · f267590d
      Bernhard Schuster authored
      
      
      Co-Authored-By: default avatarKian Paimani <[email protected]>
      Co-Authored-By: default avatarTomasz Drwięga <[email protected]>
      f267590d