Skip to content
  1. Jul 26, 2020
  2. Jul 23, 2020
  3. Jul 22, 2020
    • Wei Tang's avatar
      Better handling of stable-only build (#6569) · ac8de557
      Wei Tang authored
      
      
      * Better handling of stable-only build
      
      * Fix node template build
      
      * Fix wasm builder node-template version mismatch
      
      * Fix load_spec error
      
      * Add , in parameter
      
      * Add descrptive panic messages in tests
      
      * Add descriptive tests in node/executor benches
      
      * Fix missing compact_code_unwrap
      
      * Add missing wasm_binary_unwrap function for executor integration test
      
      * Only define import_sp_io in no_std
      
      * Small Cargo.toml styling fix
      
      * Bump wasm-builder to 2.0.0
      
      * Fix all `with_wasm_builder_from_crates` version in Substrate
      
      * Use `with_wasm_builder_from_crates` for node-template
      
      Co-authored-by: default avatarGavin Wood <[email protected]>
      ac8de557
  4. Jul 21, 2020
  5. Jul 20, 2020
  6. Jul 17, 2020
  7. Jul 14, 2020
  8. Jul 12, 2020
    • Bastian Köcher's avatar
      Make signature batching use specialized methods (#6616) · 8ab23faf
      Bastian Köcher authored
      It was a mistake to use the `*_verify` methods for signature batching.
      This pr move the signature batching into their own functions. This is
      required, because otherwise transaction signature verification infers
      with other signature verifications.
      
      This pr also temporarily disables signature batching. The functionality
      stays, but we need to make sure that all nodes have the new runtime
      interface, before we can bring back signature batching.
      8ab23faf
  9. Jul 11, 2020
  10. Jul 10, 2020
  11. Jul 09, 2020
  12. Jul 08, 2020
  13. Jul 07, 2020
  14. Jul 04, 2020
    • André Silva's avatar
      babe: report equivocations (#6362) · a9c21b8b
      André Silva authored
      * slots: create primitives crate for consensus slots
      
      * offences: add method to check if an offence is unknown
      
      * babe: initial equivocation reporting implementation
      
      * babe: organize imports
      
      * babe: working equivocation reporting
      
      * babe: add slot number to equivocation proof
      
      * session: move duplicate traits to session primitives
      
      * babe: move equivocation stuff to its own file
      
      * offences: fix test
      
      * session: don't have primitives depend on frame_support
      
      * babe: use opaque type for key owner proof
      
      * babe: cleanup client equivocation reporting
      
      * babe: cleanup equivocation code in pallet
      
      * babe: allow sending signed equivocation reports
      
      * node: fix compilation
      
      * fix test compilation
      
      * babe: return bool on check_equivocation_proof
      
      * babe: add test for equivocation reporting
      
      * babe: add more tests
      
      * babe: add test for validate unsigned
      
      * babe: take slot number in generate_key_ownership_proof API
      
      * babe: add benchmark for equivocation proof checking
      
      * session: add benchmark for membership proof checking
      
      * offences: fix babe benchmark
      
      * babe: add weights based on benchmark results
      
      * babe: adjust weights after benchmarking on reference hardware
      
      * babe: reorder checks in check_and_report_equivocation
      a9c21b8b
  15. Jul 03, 2020
  16. Jul 02, 2020
    • Bastian Köcher's avatar
      Move `create_inherents` into the block-builder (#6553) · 4f7f312b
      Bastian Köcher authored
      
      
      * Move `create_inherents` into the block-builder
      
      This moves the `create_inherents` call into the block-builder. This has
      the advantage that `create_inherents` will be able to reuse the same
      context that will be used when applying the extrinsics and we also save
      one call to `on_initialize`. To make sure that `create_inherents` does
      not modify any state, we execute it in a transaction that is
      rolled-back after doing the runtime call.
      
      * Feedback and build fix
      
      * Update primitives/runtime/src/lib.rs
      
      Co-authored-by: default avatarSergei Shulepov <[email protected]>
      
      * Update client/block-builder/src/lib.rs
      
      Co-authored-by: default avatarSergei Shulepov <[email protected]>
      4f7f312b
    • pscott's avatar
      Update SubstrateCli to return String (#6550) · 540ae1c1
      pscott authored
      
      
      * Update SubstrateCli to return String
      
      * Add default implementation for executable_name()
      
      * Use display instead of PathBuf
      
      * Get file_name in default impl of executable_name
      
      * Remove String::from and use .into()
      
      * Use default impl for executable_name()
      
      * Use .as_str() and remove useless .to_string()
      
      * Update only sp-io when running companion build
      
      * Remove unneeded update of sp-io in CI
      
      Co-authored-by: default avatarCecile Tonglet <[email protected]>
      540ae1c1
  17. Jul 01, 2020
    • cheme's avatar
      Restrict `Protected` to some heap types. (#6471) · 424d5c72
      cheme authored
      * Restrict `Protected` to some heap types.
      
      * Comment abut Protected usage.
      
      * Remove Protected from crypto, use secrecy crate for existing uses.
      
      * use a parse function
      
      * fix error convert
      
      * Rename and move secretY string function.
      
      * std result
      424d5c72
    • David's avatar
      Fix mocking multiple http calls in the same function call (#6510) · d73de3be
      David authored
      
      
      * Fix mocking multiple http calls in the same function call
      
      Fixes an issue where a function call would perform more than one http request and wait for each to complete before proceeding. The `RequestId` comes from the length of the `requests` collection in the `OffchainState` and if a request is completed before the next one starts it will be removed and the "next expected" will be off by one. This PR tries to fix that by using a request counter that tracks how many requests have been performed so that we can `remove()` items from the `expected_requests` at the right index.
      
      I suspect that this is a sub-optimal soluton and perhaps requests and their mocks should live side by side in the same collection, e.g. in a tuple of `(PendingRequest, Option<ExpectedRequest>)`.
      
      * Update primitives/core/src/offchain/testing.rs
      
      Co-authored-by: default avatarBernhard Schuster <[email protected]>
      
      * Update primitives/core/src/offchain/testing.rs
      
      Co-authored-by: default avatarBernhard Schuster <[email protected]>
      
      * Panic on overflow
      
      * Update primitives/core/src/offchain/testing.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Use a Deque and push/pop expected requests
      
      * fix test
      
      Co-authored-by: default avatarBernhard Schuster <[email protected]>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      d73de3be
  18. Jun 30, 2020
  19. Jun 26, 2020
  20. Jun 25, 2020
  21. Jun 24, 2020
    • Shawn Tabrizi's avatar
      Add DB Read/Write Tracking to Benchmarking Pipeline (#6386) · 935ee6f5
      Shawn Tabrizi authored
      * initial mockup
      
      * add and wipe
      
      * track writes
      
      * start to add to pipeline
      
      * return all reads/writes
      
      * Log reads and writes from bench db
      
      * causes panic
      
      * Allow multiple commits
      
      * commit before ending benchmark
      
      * doesn't work???
      
      * fix
      
      * Update lib.rs
      
      * switch to struct for `BenchmarkResults`
      
      * add to output
      
      * fix test
      
      * line width
      
      * @Kianenigma
      
       review
      
      * Add Whitelist to DB Tracking in Benchmarks Pipeline (#6405)
      
      * hardcoded whitelist
      
      * Add whitelist to pipeline
      
      * Remove whitelist pipeline from CLI, add to runtime
      
      * clean-up unused db initialized whitelist
      
      * Add regression analysis to DB Tracking (#6475)
      
      * Add selector
      
      * add tests
      
      * debug formatter for easy formula
      
      * Update client/db/src/bench.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      Co-authored-by: default avatararkpar <[email protected]>
      Co-authored-by: default avatarKian Paimani <[email protected]>
      935ee6f5