1. Jul 13, 2021
  2. Jul 11, 2021
    • Benjamin Kampmann's avatar
      Attempting to fix publishing (#9140) · c78c2892
      Benjamin Kampmann authored
      
      
      * mark template and utils as non-publish
      
      * switch to development version for testing
      
      * activate unleash check
      
      * maybe if I disable all rules...
      
      * Fix isolated compilation of `max-encoded-len-derive` with `syn`
      
      error[E0369]: binary operation `==` cannot be applied to type `syn::Path`
        --> src/lib.rs:88:29
         |
      88 |             .filter(|attr| attr.path == parse_quote!(max_encoded_len_crate))
         |                            --------- ^^ ----------------------------------- _
         |                            |
         |                            syn::Path
      
      error: aborting due to previous error
      
      For more information about this error, try `rustc --explain E0369`.
      Error: could not compile `max-encoded-len-derive`
      
      * WIP: bump changes crates since v3 tag to next breaking
      
      cargo unleash version bump-breaking --changed-since v3.0.0
      cargo unleash version set-pre dev --changed-since v3.0.0
      
      FIXME: Don't modify crates that are not yet released, e.g.
      `max-encoded-len-derive`
      
      * Update lockfile
      
      * WIP: Bump sp-transaction-pool as well
      
      * WIP: Bump sp-offchain as well
      
      * WIP: Bump frame-system-rpc-runtime-api as well
      
      * WIP: Bump sp-authority-discovery as well
      
      * Manually deactivate dev-deps before `cargo unleash check`
      
      Otherwise we run into `Cycle detected` error.
      
      * Bump sp-consensus-slots
      
      * Add missing Cargo.lock change
      
      * Bump sp-consensus-vrf as well
      
      * Bump sp-keyring as well
      
      * Bump sp-consensus-pow as well
      
      * Try to speed up the `unleash-check` job
      
      Previously, the job took 106 minutes - let's see if explicitly
      specifying a `CARGO_TARGET_DIR` will help
      
      * fixup: Ensure the temp target dir exists for unleash check
      
      * Bump pallet-transaction-payment-rpc-runtime-api as well
      
      Needed for Polkadot
      
      * Bump pallet-transaction-payment-rpc as well
      
      Needed for Polkadot
      
      * Try updating crates after patching in the Polkadot CI job
      
      * Use another approach to update patched Substrate crates
      
      * Try to update all sp-core versions in Polkadot CI job
      
      * Simplify sp-core version checking
      
      * Apply another shellcheck lint
      
      * Just do the simplest thing I guess
      
      * Welp don't do --offline then
      
      * Clean up `unleash-check` job triggers
      
      Co-authored-by: default avatarDenis Pisarev <[email protected]>
      
      * Fix a note in unleash-check cache step
      
      * Add a note about temporary optimization in cargo-unleash
      
      * Pin a newer version of cargo-unleash
      
      Co-authored-by: default avatarIgor Matuszewski <[email protected]>
      Co-authored-by: default avatarDenis Pisarev <[email protected]>
      c78c2892
  3. Jul 09, 2021
    • Kian Paimani's avatar
      Make election benchmarks more *memory-aware* (#9286) · 3850a433
      Kian Paimani authored
      
      
      * Make benchmarks a bit better with mem
      
      * Make election benchmarks more *memory-aware*
      
      * Fix a few errors
      
      * cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_election_provider_multi_phase --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/election-provider-multi-phase/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * Manually fix the weights
      
      * Update lock file
      
      * remove dupe
      
      * Fix tests
      
      * cargo update pwasm
      
      Co-authored-by: default avatarParity Bot <[email protected]>
      3850a433
  4. Jul 08, 2021
    • Seun Lanlege's avatar
      sc-transcation-pool refactor (#9228) · 2ae9d367
      Seun Lanlege authored
      * Use TransactionPool trait
      
      * sc-transaction-pool-primitives
      
      * sc-transaction-pool-api
      
      * TP
      
      * bye sc_transaction_graph
      
      * fix line widths
      
      * fix import errors
      
      * fix import errors
      
      * fix import errors 🤦🏾‍♂️
      
      * fix import errors 🤦🏾‍♂️🤦🏾‍♂️🤦🏾‍♂️
      
      * remove sp-keyring
      2ae9d367
  5. Jul 07, 2021
    • Shawn Tabrizi's avatar
      Include `StorageInfo` in Benchmarking Pipeline (#9090) · b42b8fc5
      Shawn Tabrizi authored
      
      
      * extend storageinfo
      
      * extend_storage_info
      
      * use vec
      
      * add storage info to pipeline
      
      * get read and written keys
      
      * undo storageinfo move
      
      * refactor keytracker
      
      * return read / write count
      
      * playing with key matching
      
      * add basic `StorageInfo` constructor
      
      * add whitelisted to returned info
      
      * fix some test stuff
      
      * pipe comments into benchmark data
      
      * add_storage_comments
      
      * add comments to template
      
      * track only storage prefix
      
      * Update frame/benchmarking/src/lib.rs
      
      * cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_balances --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/balances/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * fix test
      
      * cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_balances --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/balances/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * remove test logs
      
      * add temp benchmark script
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarGuillaume Thiolliere <[email protected]>
      
      * remove keytracker and use trackedstoragekey
      
      * add comment for unknown keys
      
      * cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_timestamp --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/timestamp/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * remove duplicate comments with unknown keys
      
      * cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_timestamp --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/timestamp/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_balances --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/balances/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * refactor bench tracker, and fix results
      
      * cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_balances --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/balances/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * fix child tries in new tracker
      
      * extra newline
      
      * fix unused warning
      
      * cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_timestamp --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/timestamp/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * fix master merge
      
      * storage info usage refactor
      
      * remove now unused
      
      * fix refactor
      
      * use a vec for prefix
      
      * fix tests
      
      * also update writer to use vec
      
      * disable read and written keys for now
      
      * 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
      
      * fix test
      
      * Delete weights.rs
      
      * reset weights
      
      Co-authored-by: default avatarParity Bot <[email protected]>
      Co-authored-by: default avatarGuillaume Thiolliere <[email protected]>
      b42b8fc5
  6. Jul 05, 2021
    • ordian's avatar
      bump a bunch of deps in parity-common (#9263) · b61dd3e8
      ordian authored
      * bump a bunch of deps in parity-common
      
      * primitive-types 0.10.0
      
      * update Cargo.lock
      
      * downgrade a few more
      
      * this is unlikely to help
      
      * try something
      
      * Checkmate, Atheists!
      b61dd3e8
  7. Jul 02, 2021
    • George Angelopoulos's avatar
      fix prometheus log message terminology (#9256) · 3c701ae1
      George Angelopoulos authored
      A prometheus "server" typically refers to the prometheus process running
      on a central server which connects to various prometheus "exporters" and
      collects metrics. What is implemented here in substrate is a prometheus
      exporter.
      
      This patch fixes the associated log message to avoid confusion for new
      users.
      3c701ae1
  8. Jun 22, 2021
  9. Jun 17, 2021
  10. Jun 15, 2021
  11. 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
  12. Jun 08, 2021
  13. 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
  14. Jun 01, 2021
  15. May 29, 2021
  16. May 25, 2021
  17. May 19, 2021
  18. Apr 28, 2021
  19. Apr 27, 2021
  20. Apr 23, 2021
  21. Apr 21, 2021
  22. Apr 18, 2021
  23. Apr 12, 2021
  24. Apr 09, 2021
  25. Apr 08, 2021
  26. Apr 07, 2021
  27. Apr 03, 2021
  28. Mar 29, 2021
  29. Mar 24, 2021
  30. 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
  31. 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
  32. Mar 15, 2021
  33. Mar 11, 2021
  34. 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
  35. Mar 09, 2021
  36. 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
  37. Mar 05, 2021