1. Oct 02, 2019
    • DemiMarie-parity's avatar
      Upgrade dependencies whenever “easy” (#3556) · 0cfe7438
      DemiMarie-parity authored
      * Update all dependencies
      
      * Upgrade dependencies whenever “easy”
      
      “easy” means that there are no major changes required.
      
      * Fix build and bump paste dependency to 0.1.6
      
      * Remove dead code
      
      * Re-add = dependency for futures-preview
      
      * Add missing std features for runtime-io
      
      * Remove git dependencies
      
      as updated versions have been published to crates.io
      
      * try to debug bug
      
      * For sr-io, "std" should imply "no_oom" and "no_panic_handler".
      
      Otherwise, rustc complains (correctly) about duplicate lang items.
      
      * Add missing "runtime-io/std" features
      
      * Fix compilation errors
      
      * Prevent duplicate lang items
      
      Rust does not allow duplicate lang items.  When compiled without the
      `std` feature, `sr-io` defines two lang items.  Therefore, `sr-io`
      compiled without `feature = "std"` must not be linked with `std`.
      
      However, `pwasm-utils` and `wasmi-validation` both bring in `std` unless
      compiled with `default-features = "false"`.  This caused a duplicate
      lang item error.  Building both with `default-features = "false"`
      prevents this error.  When building with `feature = "std"`, they should
      both be built with the `std` feature, so this feature needs to be
      explicitly depended on.
      
      * Bump `impl_version`
      
      * Make tests pass
      
      Three tests used 1 less gas than they had previously.
      
      * Try to un-break build
      
      * Add a Cargo.lock file
      
      * Revert offchain code
      
      * Revert "Revert offchain code"
      
      This reverts commit d216d08c
      
      .
      
      * Don’t try to send a body with a GET request
      
      without adding a Transfer-Encoding or Content-Length header.
      
      This has always been wrong, but hyperium/hyper#1925 hid the bug until
      hyper was upgraded to 0.12.35.
      
      * Change some more GET requests to POST requests
      
      * Fix excess line width and remove an `extern crate`
      
      * Delete commented-out extern crate
      
      Co-Authored-By: default avatarSergei Pepyakin <[email protected]>
      
      * Fix regression in Cargo.toml files
      
      dev-dependencies need `default-features = false`, too.
      
      * Bump parity-wasm dependency
      
      * Bump `futures-preview`
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Update Cargo.lock files
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Update core/service/src/chain_ops.rs
      
      Co-Authored-By: default avatarSergei Pepyakin <[email protected]>
      0cfe7438
    • Marcio Diaz's avatar
      Optimize tree route to sync faster (#3665) · d7be2906
      Marcio Diaz authored
      * Introduce HeaderMetadata and use it for tree_route. Add lowest_common_ancestor.
      * Add tests.
      d7be2906
    • DemiMarie-parity's avatar
      BABE refactoring: split out verification (#3658) · 7010ec77
      DemiMarie-parity authored and asynchronous rob's avatar asynchronous rob committed
      * Refactor parts of BABE verification into separate module
      
      * Fix silly compiler error
      
      * Move more of the verification code to verification.rs
      
      * Remove some unused imports
      
      * Fix line width
      
      * fix testsuite compile error
      
      * Fix compile errors in tests
      
      * Move authorship-related code to its own files
      
      * fix compile errors in tests
      
      * Respond to review comments by @rphmeier
      
      * improve docs
      
      * fix compile error
      
      * Add missing doc comment
      7010ec77
    • Tomasz Drwięga's avatar
      Move offchain worker http helpers to `sr-primitives`. (#3733) · 223554e5
      Tomasz Drwięga authored
      * Move offchain helpers to sr-primitives.
      
      * Add some docs and fix tests.
      
      * Refresh cargo.lock
      
      * Bump runtime.
      
      * Don't run offchain http example.
      223554e5
  2. Oct 01, 2019
  3. Sep 30, 2019
  4. Sep 28, 2019
  5. Sep 27, 2019
  6. Sep 26, 2019
  7. Sep 25, 2019
  8. Sep 24, 2019
  9. Sep 23, 2019
    • Ashley's avatar
      use pdqselect for median_algorithm selection (#3636) · 1f158003
      Ashley authored and asynchronous rob's avatar asynchronous rob committed
      
      
      * use pdqselect for median_algorithm selection instead of sorting the whole vec
      
      * Make use of pqdselect clearer
      
      Co-Authored-By: default avatarAndré Silva <[email protected]>
      
      * Make use of pqdselect clearer
      
      Co-Authored-By: default avatarAndré Silva <[email protected]>
      1f158003
    • Michael Müller's avatar
      Send local GRANDPA authority id to telemetry (#3646) · 4b0652f5
      Michael Müller authored and asynchronous rob's avatar asynchronous rob committed
      
      
      * Fix indentation
      
      There is a space between the tabs.
      
      * Send local GRANDPA authority id to telemetry
      
      * Update core/finality-grandpa/src/lib.rs
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Generalize authority_id()
      
      * Shorten code
      
      * Do not send unfinalized authority sets to telemetry
      
      `update_authority_set()` is called from, among others,
      import side. These updates only track a pending change
      and may or may not happen, hence it's wrong to send
      this set to telemetry (which would assume that this is
      the current, finalized authority set).
      
      * Send current authority set and local authority id on set change
      4b0652f5
    • Jim Posen's avatar
      Decouple node-executor structures from wasmi (#3610) · 7b1d8224
      Jim Posen authored and Sergey Pepyakin's avatar Sergey Pepyakin committed
      * executor: Support non-Wasmi sandbox supervisor environments.
      
      * node-executor: Tests don't reference WasmExecutor directly.
      
      * executor: Simplify encoding of heap metadata.
      
      * executor: Decouple allocator from wasmi::MemoryRef.
      7b1d8224
    • asynchronous rob's avatar
      Fixing BABE epochs to change between blocks (#3583) · 426c26b8
      asynchronous rob authored
      
      
      * always fetch epoch from runtime
      
      * node integration tests don't test light nodes
      
      * give stand-in full node a FULL role
      
      * rejig babe APIs
      
      * introduce next-epoch-descriptor type
      
      * overhaul srml-BABE epoch logic
      
      * ensure VRF outputs end up in the right epoch-randomness
      
      * rewrite `do_initialize` to remove unnecessary loop
      
      * begin accounting for next epoch in epoch function
      
      * slots passes header to epoch_data
      
      * pass slot_number to SlotWorker::epoch_data
      
      * begin extracting epoch-change logic into its own module
      
      * aux methods for block weight
      
      * aux methods for genesis configuration
      
      * comment-out most, refactor header-check pipeline
      
      * mostly flesh out verifier again
      
      * reinstantiate babe BlockImport implementation
      
      * reinstate import-queue instantiation
      
      * reintroduce slot-worker implementation
      
      * reinstate pretty much all the rest
      
      * move fork-choice logic to BlockImport
      
      * fix some, but not all errors
      
      * patch test-runtime
      
      * make is_descendent of slightly more generic
      
      * get skeleton compiling when passing is_descendent_of
      
      * make descendent-of-builder more succinct
      
      * restore ordering of authority_index / slot_number
      
      * start fiddling with tests
      
      * fix warnings
      
      * improve initialization architecture and handle genesis
      
      * tests use correct block-import
      
      * fix BABE tests
      
      * fix some compiler errors
      
      * fix node-cli compilation
      
      * all crates compile
      
      * bump runtime versions and fix some warnings
      
      * tweak fork-tree search implementation
      
      * do backtracking search in fork-tree
      
      * node-cli integration tests now work
      
      * fix broken assumption in test_connectivity
      
      * babe tests fail for the right reasons.
      
      * test genesis epoch logic for epoch_changes
      
      * test that epochs can change between blocks
      
      * First BABE SRML test
      
      * Testing infrastructure for BABE
      
      Also includes a trivial additional test.
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * A little more test progress
      
      * More work on BABE testing
      
      * Try to get the tests working
      
      * Implement `UintAuthorityId`-based test mocks
      
      * Fix compilation errors
      
      * Adjust to upstream changes
      
      * Block numbers are ignored in BABE epoch calculation
      
      * authority_index() should ignore invalid authorities
      
      * Fix compile error
      
      * Add tests that session transitions happen
      
      * Check if BABE produces logs
      
      It currently does not.
      
      * Fix test suite
      
      This was really nasty, due to a type confusion that showed up as an
      off-by-1 buffer error.
      
      * Add additional tests
      
      Most of these were derived from the current output, so they are only
      useful to guard against regressions.
      
      * Make the tests more readable
      
      Also bump impl_version.
      
      * Fix excessive line width
      
      * Remove unused imports
      
      * Update srml/babe/src/lib.rs
      
      Co-Authored-By: default avatarAndré Silva <[email protected]>
      
      * try to fix imports
      
      * Fix build errors in test suite
      
      * tests did not pass
      
      * Try to get at least one digest to be output
      
      Currently, the code emits either no digests (if I don’t call
      `Session::rotate_session()` or two digests (if I do), which is wrong.
      
      * More tests
      
      They still don’t work, but this should help debugging.
      
      * fix silly error
      
      * Don’t even try to compile a broken test
      
      * remove broken check_epoch test and add one for genesis epoch
      
      * Check that the length of the pre-digests is correct
      
      * Bump `impl_version`
      
      * use epoch_for_descendent_of even for genesis
      
      * account for competing block 1s
      
      * finish srml-babe docs
      
      Co-Authored-By: default avatarAndré Silva <[email protected]>
      
      * address grumbles
      426c26b8
    • asynchronous rob's avatar
      improve justification docs · bbe90e31
      asynchronous rob authored
      bbe90e31
  10. Sep 21, 2019
  11. Sep 20, 2019