Skip to content
  1. Jun 05, 2019
    • Svyatoslav Nikolsky's avatar
      Restore integration tests (#2620) · 012ce587
      Svyatoslav Nikolsky authored
      * restored test_consensus
      
      * restored test_sync
      
      * run integration tests only on CI
      
      * use single test-thread for integration tests
      
      * post-merge fix
      
      * panic when integration test runs for too long
      
      * add some traces to integration logs
      
      * manual wait -> timeout
      
      * post-merge fix
      
      * post-merge fix
      012ce587
    • Pierre Krieger's avatar
      Minor sync refactoring (#2767) · 9ad9f7ee
      Pierre Krieger authored
      * Make maintain_sync private
      
      * Remove sync::Context::peer_info
      
      * Print errors if sync state mismatch
      
      * Line width
      9ad9f7ee
  2. Jun 04, 2019
  3. Jun 03, 2019
  4. Jun 01, 2019
  5. May 31, 2019
    • Gavin Wood's avatar
      Remove unneeded derive (#2743) · 4446107f
      Gavin Wood authored
      4446107f
    • Tomasz Drwięga's avatar
      Offchain-worker APIs stubs (#2615) · 308ab4f2
      Tomasz Drwięga authored
      * WiP: HTTP Apis.
      
      * Working on the API.
      
      * Add docs, clean up the API.
      
      * Expose ext_ stuff as well.
      
      * Implement HTTP helpers for offchain sr-io.
      
      * Remove HTTP stuff.
      
      * Revert "Remove HTTP stuff."
      
      This reverts commit 7cca029d6ae93c5849b50edfcc6d2c313ba3e5bf.
      
      * HTTP apis.
      
      * Additional offchain methods.
      
      * Make it compile.
      
      * Implement wasm-ext boundary of offchain methods.
      
      * Add stubs for offchain stuff to prevent panics.
      
      * Fix tests.
      
      * Addres some more issues.
      
      * Introduce typedef, use unsafe from_utf8
      
      * Bump runtime version.
      
      * Introduce error to distinguish deadline and io errors.
      
      * Add local_storage_cas
      
      * Some tests for offchain stuff.
      
      * Address more grumbles.
      
      * Fix tests compilation.
      
      * Fix borked merge.
      
      * Improve docs for expected return values from ext functions.
      
      * Adding new sign/enrypt/decrypt APIs.
      308ab4f2
    • Bastian Köcher's avatar
      Remove `StorageList` (#2725) · 80b18c85
      Bastian Köcher authored
      * Remove `StorageList`
      
      `StorageList` is not used anymore by `decl_storage!` and thus, it can be
      removed.
      
      * Fixes tests
      80b18c85
    • Svyatoslav Nikolsky's avatar
      Import headers from BlockAnnounce message on light nodes (#2731) · 0d9fad43
      Svyatoslav Nikolsky authored
      * import headers from announce message on light
      
      * lines width
      
      * added comments
      0d9fad43
  6. May 30, 2019
  7. May 29, 2019
    • DemiMarie-parity's avatar
      Update runtime dependencies (#2721) · 683fd5d3
      DemiMarie-parity authored
      683fd5d3
    • Tomasz Drwięga's avatar
      Remove InherentsPool and introduce non-propagateable transactions. (#2695) · 25b9c12c
      Tomasz Drwięga authored
      * Remove InherentsPool.
      
      * Introduce transactions that are not propagated over the network.
      
      * Bump spec version.
      
      * Use separate flag for propagation.
      
      * Fix tests.
      25b9c12c
    • DemiMarie-parity's avatar
      Update dependencies (#2718) · 8d378cb2
      DemiMarie-parity authored
      I am taking charge of ~monthly dependency updates, as per a suggestion
      from @rphmeier.
      8d378cb2
    • André Silva's avatar
      core: import equivocated aura and babe blocks (#2709) · 7e591a8f
      André Silva authored
      * core: import equivocated aura and babe blocks
      
      * core: cleanup check_equivocation handling
      
      * fix: use map_err on Aura
      
      * core: slots: remove unneeded Arc and minimize cloning
      
      * core: fix slots equivocation tests
      
      * core: slots: remove unused import
      
      * core: remove unnecessary comments
      7e591a8f
    • Gavin Wood's avatar
      Maps are appendable too (#2716) · fccc5516
      Gavin Wood authored
      
      
      * Maps are appendable too
      
      * Update srml/support/src/storage/hashed/generator.rs
      
      Co-Authored-By: default avatarTomasz Drwięga <[email protected]>
      
      * Update srml/support/src/storage/mod.rs
      
      Co-Authored-By: default avatarTomasz Drwięga <[email protected]>
      
      * Fix docs
      
      * Make Appendable public
      
      * Bump runtime version
      fccc5516
    • Kian Peymani's avatar
      Limited Unbonding Chunks. (#2700) · 810d2712
      Kian Peymani authored
      * Limit number of unlocking chunks.
      
      * Bump.
      810d2712
    • thiolliere's avatar
      derive codec for inherent data (#2714) · 91a241ad
      thiolliere authored
      * derive codec for inherent data
      
      * increase spec version
      91a241ad
    • DemiMarie-parity's avatar
      Introduce inherent digests (#2466) · c7d1204c
      DemiMarie-parity authored
      
      
      * Introduce inherent digests
      
      * Implement inherent digests
      
      * fix silly error
      
      * Implementation of inherent digests in BABE
      
      All tests pass. There are still limitations:
      
      1. The runtime strips out inherent digests, so BABE must re-add them.
      2. The test runtime checks that it can re-compute all digests.  It
         can’t, so I had to comment out that test.
      
      * Fix compilation and seal import
      
      Seals were not imported correctly: the pre-digest was imported twice,
      instead of both it and the seal being imported.  Also, other parts of
      the code did not compile due to incomplete refactoring.
      
      * Remove bogus assertion
      
      * Fix testsuite compilation
      
      * Remove unused import
      
      * Fix compiler diagnostics
      
      * Add inherent digest parameters to block constructors
      
      This enforces that inherent digests are added first.
      
      * Fixup Cargo.lock
      
      * Fix build errors
      
      * Re-add an incorrectly removed import
      
      * Bump primitive-types version
      
      * Update Cargo.lock
      
      * Refactoring
      
      * Use inherent digests for AuRa
      
      They do reach the runtime, but get stripped.  I have not figured out
      where.
      
      * Fix compilation errors
      
      * Fix compilation errors due to incorrect types
      
      * Fix whitespace
      
      Suggested-by: default avatarTomasz Drwiega <[email protected]>
      
      * Add preamble
      
      Suggested-by: default avatarTomasz Drwiega <[email protected]>
      
      * Fix silly compile error
      
      * Refactor pre-digest finding code into a separate function
      
      * Remove unwanted assertion
      
      It is too likely to bring down the entire blockchain.
      
      Suggested-by: default avatarTomasz Drwiega <[email protected]>
      
      * Use `find_pre_digest` after runtime, too
      
      Also, use `Member` trait rather than rolling our own requirements.
      
      Suggested-by: default avatarTomasz Drwiega <[email protected]>
      
      * Fix various warnings
      
      mostly due to upgrading the dependency on `error_chain`.
      
      * Pre-digests nearly complete
      
      This nearly completes the implementation of pre-runtime digests.
      
      * `Seal2` → `Seal` and fix test suite
      
      * Try to fix the storage error
      
      * Try to fix storage (again)
      
      * Fix tests
      
      * Hopefully finish pre-runtime digests
      
      The key is to pass *only* the pre-runtime digests to the runtime.  The
      others must be stripped out by `initialize_block`.
      
      * Fix silly typo
      
      * Fix another silly mistake
      
      * Remove unnecessary filtering of BABE pre-digests
      
      We no longer get duplicate BABE pre-digests, so if they appear, the
      header should be rejected outright.
      
      * Update Cargo.lock files
      
      * Reformatting
      
      * Fix silly typo in inherent digest code
      
      Also, revert `error.rs` files that contained calls to the `error_chain!`
      macro.
      
      * Try to keep the runtime from stripping pre-digests
      
      Currently runs into the “Storage root must match that calculated”
      assertion.
      
      * Don’t compute storage root until storage changes are done.
      
      Also, fix a compilation error.
      
      * Fix compile-time error
      
      * Fix compilation errors
      
      * Fix more compile errors
      
      * Hopefully it compiles this time…
      
      * Fix compilation and add docs
      
      * Prevent BABE from adding duplicate pre-runtime digests
      
      Found by comparing with the AuRa code.  I also did some refactoring.
      
      * Respond to review and fix some warnings
      
      * Delete some dead code introduced earlier
      
      * More dead code goes away
      
      * `ref mut` → `&mut`
      
      * Respond to review and fix some warnings
      
      * Fix compilation error
      
      * Remove unneeded `HashT` type parameter
      
      Suggested-by: default avatarRobert Habermeier <[email protected]>
      
      * Remove spurious #[allow(deprecated)]
      
      * Document inherent digest parameter to `build_block`
      
      * Delete `Simple` trait
      
      It wasn’t needed
      
      * delete wrongly added files
      
      * Fix trait bounds
      
      * Digest serialization tests
      
      I also did some reformatting and cleanup.
      
      * Apply suggestions from code review
      
      Reformatting
      
      Co-Authored-By: default avatarAndré Silva <[email protected]>
      
      * Swap two arguments to `propose` and `propose_with`
      
      Also, remove some needless unsafe code.
      
      * Remove bogus `#![allow(deprecated)]` annotations
      
      With the removal of the deprecated `Seal` variant, these are not needed.
      
      * Add a missing `#[allow(deprecated)]` in the AuRa tests
      
      * Fix silly compile error
      
      * Fix silly compiler error
      
      RLS did not tell me that I hadn’t fixed `babe/lib.rs`, so I missed it.
      
      * Fixes made automatically by Cargo
      c7d1204c
    • Pierre Krieger's avatar
      Rewrite sync and network layers to use futures (#2683) · e9a4c80c
      Pierre Krieger authored and Arkadiy Paronyan's avatar Arkadiy Paronyan committed
      * Remove background thread from network
      
      * Primarily use tokio-timer instead of tokio
      
      * Minor style fix
      
      * Reintroduce tokio as an optional dependency
      
      * Renames
      
      * Line width
      
      * Ctxt -> Context
      
      * Merge NetworkWorker and NetworkService
      e9a4c80c
  8. May 28, 2019
    • Pierre Krieger's avatar
      Fix compilation (#2708) · 643e3094
      Pierre Krieger authored
      643e3094
    • Stanislav Tkach's avatar
      Use $crate inside of native_executor_instance and parameter_types macros (#2702) · 1df8ac97
      Stanislav Tkach authored
      * Use  inside of native_executor_instance macro
      
      * Same for the parameter_types macro
      1df8ac97
    • Pierre Krieger's avatar
    • Michael Müller's avatar
      Transaction factory (#2481) · a706d994
      Michael Müller authored
      
      
      * Fix typos
      
      * Add transaction factory
      
      `cargo run -- purge-chain -y --chain dev && cargo run -- --dev --transaction-factory 10`
      
      * Fix comment and remove build deps
      
      * Move crate to test-utils
      
      * Switch from flag to subcommand
      
      `cargo run -- factory --dev --num 5`
      
      * Decouple factory from node specifics
      
      * Introduce different manufacturing modes
      
      * Remove unrelated changes
      
      * Update Cargo.lock
      
      * Use SelectChain to fetch best block
      
      * Improve expect proof
      
      * Panic if factory executed with unsupported chain spec
      
      * Link ToDo comments to follow-up ticket
      
      * Address comments and improve style
      
      * Remove unused dependencies
      
      * Fix indent level
      
      * Replace naked unwrap
      
      * Update node/cli/src/factory_impl.rs
      
      * Fix typo
      
      * Use inherent_extrinsics instead of timestamp
      
      * Generalize factory and remove saturated conversions
      
      * Format imports
      
      * Make it clearer that database needs to be empty
      
      * Ensure factory settings
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Update test-utils/transaction-factory/src/lib.rs
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Fix match guard syntax
      
      * Simplify import, remove empty line
      
      * Update node/cli/Cargo.toml
      
      * Update lockfile
      a706d994
    • Luke Schoen's avatar
      docs: Try fix typo (#2677) · 81112423
      Luke Schoen authored
      81112423