Skip to content
  1. May 15, 2020
  2. May 12, 2020
  3. May 11, 2020
    • Jon Häggblad's avatar
      Don't repeatedly lookup keys in `babe_epochAuthorship` rpc function (#5962) · 66931028
      Jon Häggblad authored
      * 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
      66931028
  4. May 08, 2020
  5. May 05, 2020
  6. May 04, 2020
    • Wei Tang's avatar
      Correct BABE randomness by calculating InOut bytes directly in pallet (#5876) · a00a4ca5
      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]>
      a00a4ca5
    • Bastian Köcher's avatar
      Expose that `BasicQueue` expects blocking spawn (#5860) · 9c5536e0
      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
      9c5536e0
  7. Apr 30, 2020
  8. Apr 29, 2020
  9. Apr 28, 2020
    • André Silva's avatar
      29c127a0
    • Web3 Philosopher's avatar
      Move sc-client into sc-service (#5502) · 4fa5941f
      Web3 Philosopher authored
      * Drop client from sc-network and sc-client-db, move LongestChain to sc-client-api
      
      * move leaves, cht, in_mem to sc-client-api, drop client from sc-finality-grandpa
      
      * drop sc-service from sc-rpc
      
      * drop sc-service from sc-consensus-aura
      
      * drop sc-client from manual-seal and babe
      
      * drop sc-client from utils/frame/rpc/system and utils/frame/benchmarking-cli
      
      * drop sc-client from bin/node and bin/node-template
      
      * drop sc-client
      
      * fix tests
      
      * remove check -p sc-client from gitlab.yml
      
      * fix warnings
      
      * fixes ui test
      
      * fix light client tests
      
      * adds associated Client type to AbstractService
      
      * adds UsageProvider to Client
      
      * fixed ui test, again
      
      * tried and failed to get node-cli to compile for wasm
      
      * thanks to tomaka for helping me get node-cli to compile for wasmm
      
      * ui test pls pas 🙏🏾
      
      
      
      * all tests passing 🪄
      
      * no_run documentation code
      
      * rm -f documentation code
      
      * ClientProvider
      
      * fix mega trait
      
      * move LongestChain to sc-consensus, use adds minimal bounds to AbstractService::Client
      
      * adds license to sc-consensus
      
      Co-authored-by: default avatarBenjamin Kampmann <[email protected]>
      4fa5941f
    • Wei Tang's avatar
      Versioned NextConfigDescriptor for BABE (#5789) · 7784bdef
      Wei Tang authored
      7784bdef
  10. Apr 25, 2020
  11. Apr 24, 2020
    • André Silva's avatar
      babe: remove error fallback from threshold calculation (#5764) · 3793fbf9
      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
      3793fbf9
    • Wei Tang's avatar
      babe: secondary blocks with VRF (#5501) · 969720c2
      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]>
      969720c2
    • Wei Tang's avatar
      babe: support online configuration upgrades (#5514) · 770cc24c
      Wei Tang authored
      
      
      * babe: support online configuration upgrades
      
      * 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 migration tests
      
      * 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 unused imports
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      770cc24c
  12. Apr 23, 2020
  13. Apr 17, 2020
  14. Apr 15, 2020
  15. Apr 14, 2020
  16. Apr 07, 2020
  17. Apr 01, 2020
  18. Mar 31, 2020
  19. Mar 30, 2020
  20. Mar 28, 2020
  21. Mar 27, 2020
  22. Mar 25, 2020
  23. Mar 24, 2020
  24. Mar 23, 2020
    • Wei Tang's avatar
      Simplify BABE pre-digest definitions (#5289) · 9c7261fa
      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: default avatarGavin Wood <[email protected]>
      9c7261fa