1. Feb 28, 2022
    • Ross Bulat's avatar
      doc corrections (#10936) · 89b5dafc
      Ross Bulat authored
      89b5dafc
    • omadoyeabraham's avatar
      Integrate try-runtime into substrate node template (#10909) · 05877df7
      omadoyeabraham authored
      * [10892-integrate-try-runtime-into-node-template] - Integrated try-runtime into node template
      
      * [10892-integrate-try-runtime-into-node-template] Added match arms for try-runtime in command.rs
      
      * [10892-integrate-try-runtime-into-node-template] Added match arms for try-runtime in command.rs
      
      * Added feature flag for try-runtime in node-template/node and enabled try-runtime for node-template/runtime
      
      * Added missing type annotations for try-runtime SubCommand in node-template
      
      * Added missing type annotations for try-runtime SubCommand in node-template
      
      * Implemented frame_try_runtime::TryRuntime<Block> for the node-template Runtime
      05877df7
  2. Feb 26, 2022
    • Davide Galassi's avatar
      Replace libsecp256k1 with secp256k1 (#10798) · 4aab84cc
      Davide Galassi authored
      * Replace libsecp256k1 with secp256k1
      
      * Wipe ecdsa secret key from memory on drop
      
      * Some comments for a known issue
      
      * Safer core crypto primitives `from_slice` constructor
      
      Previous version panics if slice lenght is not the expected one.
      
      * Unit test fix
      
      * Enable use of global secp256k1 context
      
      * Better comments for ecdsa `Pair` drop
      
      * Replace `libsecp256k1` with `seco256k1` in `beefy-mmr`
      
      Used to convert ecdsa public key to ETH address
      
      * Replace `libsecp256k1` with `secp256k1` in FRAME `contracts`benchmarks
      
      * Temporary rollback of `beefy-mmr` to libsecp256k1
      
      Check for detected build issues
      
      * Cargo fmt
      
      * Rollback of FRAME `contracts` benchmarks to `libsecp256k1`
      
      * Rollback for unrelated changes
      
      * Typo fix
      
      * Add comments for deprecated `ecdsa_verify` and `secp256k1_ecdsa_recover`
      4aab84cc
    • Kian Paimani's avatar
      Minor improvements to `bounded_vec` and `defensive`. (#10873) · b77d3f91
      Kian Paimani authored
      
      
      * Fix a few things in bounded_vec
      
      * add test for try_extend
      
      * Update frame/support/src/storage/bounded_vec.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * some review comments
      
      * use swap
      
      * remove clone
      
      * use pop instead of truncate
      
      * remove warn
      
      * review comments
      
      * Update frame/support/src/storage/bounded_vec.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * fix rustdoc
      
      * fix links
      
      * undo link
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      b77d3f91
  3. Feb 25, 2022
  4. Feb 24, 2022
  5. Feb 23, 2022
  6. Feb 22, 2022
  7. Feb 21, 2022
  8. Feb 20, 2022
  9. Feb 19, 2022
  10. Feb 18, 2022
  11. Feb 17, 2022
  12. Feb 16, 2022
  13. Feb 15, 2022
    • Pierre Krieger's avatar
      Mark sync_state_genSyncSpec JSON-RPC as safe (#10832) · 9a788396
      Pierre Krieger authored
      * Mark sync_state_genSyncSpec JSON-RPC as safe
      
      * Note that parameter is unused
      
      * Ideally I'd wait for compilation to be finished before pushing, but it's really taking a long time
      
      * Remove deny_unsafe parameter
      
      * Remove unused dependency
      9a788396
    • Davide Galassi's avatar
      Fix beefy mock ecdsa keys (#10854) · 6f53b974
      Davide Galassi authored
      Compressed ECDSA keys requires to have 0x02 or 0x03 as their first byte
      in order to allow public key recovery.
      
      Nevertheless the test was working because of the `unwrap_or_default()`
      at the end of the conversion routine (i.e. the invalid keys were
      converted to an empty vector).
      6f53b974
    • Alexander Samusev's avatar
      [ci] fix publish-rustdocs (#10858) · 4519145d
      Alexander Samusev authored
      4519145d
    • Koute's avatar
      43c3e709
    • Alexander Theißen's avatar
      contracts: Fix `seal_call` weights (#10796) · b82cfbac
      Alexander Theißen authored
      
      
      * Fix call weights
      
      * Fix instantiate benchmark
      
      * cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * Remove stale and superflous comments
      
      * `decrement_refcount` should be infallible
      
      * Don't hardcode increment_refcount, decrement_refcount
      
      * Rename CopyIn/CopyOut
      
      * Fix warning in tests
      
      Co-authored-by: default avatarParity Bot <[email protected]>
      b82cfbac
  14. Feb 14, 2022
    • Bastian Köcher's avatar
      wasm-builder: Support latest nightly (#10837) · 47622d69
      Bastian Köcher authored
      * wasm-builder: Support latest nightly
      
      With latest nightly, aka rust version 1.60+ namespaced features are added. This changes the handling
      of optional dependencies. We currently have features that enable optional dependencies when `std` is
      enabled. This was before no problem, but now the wasm-builder detects them as enabled. To support
      the transition period until 1.60 is released as stable, this pr adds an heuristic to not enable these
      optional crates in the wasm build when they are enabled in the `std` feature. This heuristic fails
      when someones enables these optional dependencies from the outside as well as via the `std` feature,
      however we hope that no one is doing this at the moment. When namespaced features are enabled, these
      dependencies needs to be enabled using `dep:dependency-name` to solve this properly.
      
      https://doc.rust-lang.org/cargo/reference/unstable.html#namespaced-features
      
      * Remove accidentally added features
      47622d69