1. Jun 17, 2021
  2. Jun 15, 2021
  3. Jun 09, 2021
    • Zeke Mostov's avatar
      [try-runtime-cli] Offchain worker support (#8966) · f0120d3b
      Zeke Mostov authored
      
      
      * make remote-ext work with ws and safe RPCs
      
      * Update docs.
      
      * Update utils/frame/remote-externalities/Cargo.toml
      
      Co-authored-by: default avatarNiklas Adolfsson <[email protected]>
      
      * Fix test
      
      * Update lock file
      
      * Update utils/frame/remote-externalities/src/lib.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Fix build again.
      
      * checkpoint, merging the paged rpc now
      
      * revert lifetime stuff
      
      * WIP: remote client init not working
      
      * Small cleanups
      
      * use jsonrpsee alpha.7
      
      * WIP
      
      * Executiing without errors
      
      * Reorg & cleanup
      
      * Trivial cleaning
      
      * Add txpool & keystore extension
      
      * Small cleaning
      
      * More :cleaning
      
      * Flags: page-size, override-code
      
      * WIP
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * Remove heap_pages
      
      * Dry code extraction from state
      
      * Formatting
      
      * More formatting
      
      * Add issue todo
      
      * Use jsonrpsee 0.2.0
      
      * Try trigger gitlab
      
      * Fix "block_import_works" test
      
      * fix native_big_block_import_fails_on_fallback test
      
      * fix commit should work
      
      * Rewrite UI tests
      
      * Revert "Rewrite UI tests"
      
      This reverts commit ada7f670f701c21fb399946a3f6918453f537bcb.
      
      * try again with UI
      
      * Use const for legacy heap pages val
      
      * Move parse module to its own file
      
      * Move rpc_api module to its own file
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarPeter Goodspeed-Niklaus <[email protected]>
      
      * trait names: Block, not B
      
      * Corect HEAP_PAGES_TEST_LEGACY export
      
      * Update utils/frame/remote-externalities/src/rpc_api.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * Revert test_ext heap_page insert; adjust storage root instead
      
      * Doc comments for try_runtime::cli::Command
      
      * TryRuntime stub
      
      * trailing comma
      
      * Remove unused dev dep in frame-executive
      
      * Improve parse::hash variable name & error index
      
      * Use Result for rpc_api fns
      
      * Richer err messagges
      
      * Remove HEAP_PAGE_TEST_LEGACY
      
      * Update bin/node/executor/tests/basic.rs
      
      Co-authored-by: default avatarkianenigma <[email protected]>
      Co-authored-by: default avatarKian Paimani <[email protected]>
      Co-authored-by: default avatarNiklas Adolfsson <[email protected]>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      Co-authored-by: default avatarPeter Goodspeed-Niklaus <[email protected]>
      f0120d3b
  4. Jun 08, 2021
  5. Jun 07, 2021
    • cheme's avatar
      Compact proof utilities in sp_trie. (#8574) · f01c3966
      cheme authored
      * validation extension in sp_io
      
      * need paths
      
      * arc impl
      
      * missing host function in executor
      
      * io to pkdot
      
      * decode function.
      
      * encode primitive.
      
      * trailing tab
      
      * multiple patch
      
      * fix child trie logic
      
      * restore master versionning
      
      * bench compact proof size
      
      * trie-db 22.3 is needed
      
      * line width
      
      * split line
      
      * fixes for bench (additional root may not be needed as original issue was
      with empty proof).
      
      * revert compact from block size calculation.
      
      * New error type for compression.
      
      * Adding test (incomplete (failing)).
      Also lacking real proof checking (no good primitives in sp-trie crate).
      
      * There is currently no proof recording utility in sp_trie, removing
      test.
      
      * small test of child root in proof without a child proof.
      
      * remove empty test.
      
      * remove non compact proof size
      
      * Missing revert.
      
      * proof method to encode decode.
      f01c3966
  6. Jun 01, 2021
  7. May 29, 2021
  8. May 25, 2021
  9. May 19, 2021
  10. Apr 28, 2021
  11. Apr 27, 2021
  12. Apr 23, 2021
  13. Apr 21, 2021
  14. Apr 18, 2021
  15. Apr 12, 2021
  16. Apr 09, 2021
  17. Apr 08, 2021
  18. Apr 07, 2021
  19. Apr 03, 2021
  20. Mar 29, 2021
  21. Mar 24, 2021
  22. Mar 23, 2021
    • Steve Biedermann's avatar
      Improve remote-externalities (#8397) · f9b6c869
      Steve Biedermann authored
      
      
      * make builder generic to allow using different hash types
      
      * expose "cache", "block_number" and "modules" as cli options for live state
      
      * Change Builder to be generic over Block instead of Hash
      add rpc method to get hash from block number
      allow passing of block numbers and hashes
      
      * fix live tests
      
      * fix formatting in utils/frame/remote-externalities/src/lib.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * change cli to only accept block hashes
      break up lines that were too long
      use starts_with instead of match s.get
      use unwrap_or_default instead of unwrap_or(Vec::new())
      
      * improve error message
      
      * fix indentation
      
      * replace Block with sp_runtime::testing::Block
      
      * Move cache test out of remote-test feature tests
      Add cache file (contains only "Proxy" module) for local test
      
      * simplify match expression to and_then
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * Combine the two cfg attributes into one
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * Restrict visibility of test_prelude use statements to crate level
      
      * Fix usage of and_then
      
      * Rename cache to snapshot
      
      * Remove fully qualified path for Debug
      
      * Refine naming. snapshot to state_snapshot
      
      * Remove unnecessary comment
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      Co-authored-by: default avatarDavid <[email protected]>
      f9b6c869
  23. Mar 18, 2021
    • Shaun Wang's avatar
      Replace 'Module' with 'Pallet' in construct_runtime macro (#8372) · 2e552244
      Shaun Wang authored
      * Use 'Pallet' struct in construct_runtime.
      
      * Fix genesis and metadata macro.
      
      * Fix 'Pallet' type alias.
      
      * Replace 'Module' with 'Pallet' for all construct_runtime use cases.
      
      * Replace more deprecated 'Module' struct.
      
      * Bring back AllModules and AllPalletsWithSystem type, but deprecate them.
      
      * Replace deprecated 'Module' struct from merge master.
      
      * Minor fix.
      
      * Fix UI tests.
      
      * Revert UI override in derive_no_bound.
      
      * Fix more deprecated 'Module' use from master branch.
      
      * Fix more deprecated 'Module' use from master branch.
      2e552244
  24. Mar 15, 2021
  25. Mar 11, 2021
  26. Mar 10, 2021
    • Tomasz Drwięga's avatar
      Custom RPC for Merkle Mountain Range pallet (#8137) · f3d4355a
      Tomasz Drwięga authored
      * Add MMR custom RPC.
      
      * Change RuntimeApi to avoid hardcoding leaf type.
      
      * Properly implement the new RuntimeAPI and wire up RPC.
      
      * Extract Offchain DB as separate execution extension.
      
      * Enable offchain DB access for offchain calls.
      
      * Fix offchain_election tests.
      
      * Skip block initialisation for proof generation.
      
      * Fix integration test setup.
      
      * Fix offchain tests. Not sure how I missed them earlier 🤷.
      
      * Fix long line.
      
      * One more test missing.
      
      * Update mock for multi-phase.
      
      * Address review grumbbles.
      
      * Address review grumbles.
      
      * Fix line width of a comment
      f3d4355a
  27. Mar 09, 2021
  28. Mar 06, 2021
    • Niklas Adolfsson's avatar
      refactor(remote ext): use jsonrpsee (#8105) · 6bd09c07
      Niklas Adolfsson authored
      
      
      * A clean new attempt
      
      * Checkpoint to move remote.
      
      * A lot of dependency wiring to make it feature gated.
      
      * bad macro, bad macro.
      
      * refactor(remote ext): use jsonrpsee
      
      * refactor(remote ext): use jsonrpsee
      
      * Undo the DB mess.
      
      * fix(remote ext): use max limit `u32::MAX`
      
      * resolve TODOs
      
      * jsonrpsee switch to `hyper` as backend
      
      * Update utils/frame/try-runtime/remote-externalities/src/lib.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * update jsonrpsee
      
      * remove boiler-plate
      
      * suppress warnings to CI happy
      
      * Unbreak his build
      
      * Use option
      
      * fix nit; make it work again
      
      * fix err message.
      
      * Update utils/frame/remote-externalities/Cargo.toml
      
      * Fix uri stuff
      
      * remove needless clone
      
      Co-authored-by: default avatarkianenigma <[email protected]>
      Co-authored-by: default avatarKian Paimani <[email protected]>
      Co-authored-by: default avatarkianenigma <[email protected]>
      6bd09c07
  29. Mar 05, 2021
  30. Mar 02, 2021
    • Shawn Tabrizi's avatar
      Make Benchmark Output Analysis Function Configurable (#8228) · cdc59db5
      Shawn Tabrizi authored
      
      
      * Integrate `output-analysis`
      
      * fix test
      
      * use default
      
      * cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=frame_system --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/system/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * Update frame/system/src/weights.rs
      
      * cargo run --release --features runtime-benchmarks --manifest-path bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=frame_system --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/system/src/weights.rs --template=./.maintain/frame-weight-template.hbs --output-analysis=max
      
      * Update frame/system/src/weights.rs
      
      * dont discard value_dist and model
      
      * feedback
      
      Co-authored-by: default avatarParity Benchmarking Bot <[email protected]>
      cdc59db5
  31. Mar 01, 2021
    • Bastian Köcher's avatar
      Init `RuntimeLogger` automatically for each runtime api call (#8128) · 68390d40
      Bastian Köcher authored
      
      
      * Init `RuntimeLogger` automatically for each runtime api call
      
      This pr change the runtime api in such a way to always and automatically
      enable the `RuntimeLogger`. This enables the user to use `log` or
      `tracing` from inside the runtime to create log messages. As logging
      introduces some extra code and especially increases the size of the wasm
      blob. It is advised to disable all logging completely with
      `sp-api/disable-logging` when doing the wasm builds for the on-chain
      wasm runtime.
      
      Besides these changes, the pr also brings most of the logging found in
      frame to the same format "runtime::*".
      
      * Update frame/im-online/src/lib.rs
      
      Co-authored-by: default avatarGuillaume Thiolliere <[email protected]>
      
      * Update test-utils/runtime/Cargo.toml
      
      * Fix test
      
      * Don't use tracing in the runtime, as we don't support it :D
      
      * Fixes
      
      Co-authored-by: default avatarGuillaume Thiolliere <[email protected]>
      68390d40
  32. Feb 26, 2021
  33. Feb 25, 2021
  34. Feb 19, 2021
  35. Feb 17, 2021
    • Cecile Tonglet's avatar
      Fix telemetry span not entering properly attempt 3 (#8043) · 27274c42
      Cecile Tonglet authored
      
      
      * Fix tracing tests (#8022)
      
      * Fix tracing tests
      
      The tests were not working properly.
      
      1. Some test was setting a global subscriber, this could lead to racy
      conditions with other tests.
      
      2. A logging test called `process::exit` which is completly wrong.
      
      * Update client/tracing/src/lib.rs
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * Review comments
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * Fix tracing spans are not being forwarded to spawned task (#8009)
      
      * Fix tracing spans are not being forwarded to spawned task
      
      There is a bug that tracing spans are not forwarded to spawned task. The
      problem was that only the telemetry span was forwarded. The solution to
      this is to use the tracing provided `in_current_span` to capture the
      current active span and pass the telemetry span explictely. We will now
      always enter the span when the future is polled. This is essentially the
      same strategy as tracing is doing with its `Instrumented`, but now
      extended for our use case with having multiple spans active.
      
      * More tests
      
      * Proper test for telemetry and prefix span
      
      * WIP
      
      * Fix test (need to create & enter the span at the same time)
      
      * WIP
      
      * Remove telemtry_span from sc_service config
      
      * CLEANUP
      
      * Update comment
      
      * Incorrect indent
      
      * More meaningful name
      
      * Dedent
      
      * Naming XD
      
      * Attempt to make a more complete test
      
      * lint
      
      * Missing licenses
      
      * Remove user data
      
      * CLEANUP
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * CLEANUP
      
      * Apply suggestion
      
      * Update bin/node/cli/tests/telemetry.rs
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * Wrapping lines
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      Co-authored-by: default avatarDavid <[email protected]>
      27274c42
  36. Feb 10, 2021
  37. Feb 04, 2021