1. Mar 10, 2020
  2. Mar 09, 2020
  3. Mar 06, 2020
  4. Mar 05, 2020
    • Gavin Wood's avatar
      Revert quote fixed version and upgrade failure (#5152) · 8c672e10
      Gavin Wood authored
      * Revert "use fixed quote (#5135)"
      
      This reverts commit bea883b3
      
      .
      
      * Upgrade failure version
      
      * Update frame/staking/reward-curve/Cargo.toml
      
      Co-Authored-By: default avatarAndré Silva <[email protected]>
      
      * Ahh I'm dumb
      
      Co-authored-by: default avatarGavin Wood <[email protected]>
      Co-authored-by: default avatarAndré Silva <[email protected]>
      8c672e10
    • Gavin Wood's avatar
      Add lots of networking metrics for Prometheus (#5126) · e6cc799a
      Gavin Wood authored
      * Add some metrics
      
      * Address concerns
      e6cc799a
    • Gavin Wood's avatar
      adacbd18
    • Gavin Wood's avatar
      Remove `Backend::destroy_state` (#5068) · fca34f61
      Gavin Wood authored
      * Remove `Backend::destroy_state`
      
      This removes the `destroy_state` function of `Backend` and instead moves
      the functionality into the `Drop` implementation of the state. This
      makes it much easier to work with the state, as the user no longer needs
      to call` destroy_state` manually. However, it requires that we switch
      from `RwLock` to `ReentrantMutex` as while importing a block we maybe
      need to lock again in `drop`.
      
      * Bring back the `RwLock` and some other clean ups
      
      * Fix compilation
      fca34f61
    • Gavin Wood's avatar
      Remove substrate-ui.parity.io from CORS whitelist (#5142) · bb1b68d2
      Gavin Wood authored
      The only up-to-date deployment of PolkadotJS apps is currently on https://polkadot.js.org/apps/.
      https://substrate-ui.parity.io is only useful as deliberately kept outdated version of Apps, to be used for projects still on Substrate 1.0
      It cannot be used with the up-to-date chains running the Substrate 2.0 codebase, and probably won't be maintained much longer.
      bb1b68d2
    • Gavin Wood's avatar
    • Gavin Wood's avatar
      remove derivation of debug in no_std (#5146) · 870436e9
      Gavin Wood authored
      870436e9
    • Gavin Wood's avatar
      Don't remove invalid transactions when skipping. (#5121) · 9e52443b
      Gavin Wood authored
      
      
      * Don't remove invalid transactions when skipping.
      
      * Use a special kind of extrinsic instead of arbitrary limit.
      
      * Fix txpool tests.
      
      * Attempt to create more blocks.
      
      * Bump lock
      
      Co-authored-by: default avatarGavin Wood <[email protected]>
      Co-authored-by: default avatarNikolay Volf <[email protected]>
      9e52443b
    • Benjamin Kampmann's avatar
      removes use of sc_client::Client from sc-rpc (#5063) · 744dfe5a
      Benjamin Kampmann authored
      
      
      * removes use of sc_client::Client from sc-rpc
      
      * remove Client impl from sc-finality-benches
      
      * remove client impl from sc-finality-grandpa
      
      * read_proof accepts iterator
      
      * remove generic Executor param from ExecutorProvider
      
      * fix long ass line
      
      * code style changes
      
      * merge with master
      
      Co-authored-by: default avatarArkadiy Paronyan <[email protected]>
      744dfe5a
    • Gavin Wood's avatar
      Expose the `runtime-benchmarks` feature to the cli crate (#5143) · 0f28c33a
      Gavin Wood authored
      This exposes the `runtime-benchmarks` feature via the cli crate and
      makes sure the benchmarking can be enabled. This requires that the user
      goes to `bin/node/cli` and runs `cargo build --features
      runtime-benchmarks` to build a node that has the feature enabled.
      0f28c33a
    • Gavin Wood's avatar
      Introduce default-setting prime for collective (#5137) · 2c1ce061
      Gavin Wood authored
      
      
      * Introduce default-setting prime for collective
      
      * Docs.
      
      * Elections phragmen supports prime
      
      * Fix
      
      * Membership supports prime
      
      * Fix
      
      * Update frame/collective/src/lib.rs
      
      Co-Authored-By: default avatarShawn Tabrizi <[email protected]>
      
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      2c1ce061
    • Benjamin Kampmann's avatar
      Better wasm instance cache (#5109) · c37cfbf8
      Benjamin Kampmann authored
      
      
      * Wasm instance cache
      
      * Reduce slot locking
      
      * Fixed test
      
      * Dispose of instance in case of error
      
      * Fixed benches
      
      * Style, comments, some renames
      
      * Replaced upgradable lock with mutex
      
      * Bump dependencies
      
      * Re-export CallInWasm
      
      * Update client/executor/src/wasm_runtime.rs
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Update client/executor/src/native_executor.rs
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Update client/executor/src/native_executor.rs
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Update client/executor/src/wasm_runtime.rs
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Update client/executor/wasmtime/src/runtime.rs
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Update client/executor/src/wasm_runtime.rs
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Update client/executor/src/wasm_runtime.rs
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Update client/executor/src/wasm_runtime.rs
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Indents
      
      * Whitespace
      
      * Formatting
      
      * Added issue link
      
      Co-authored-by: default avatarBenjamin Kampmann <[email protected]>
      Co-authored-by: default avatarGavin Wood <[email protected]>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      c37cfbf8
    • Gavin Wood's avatar
      9a1524b8
    • Gavin Wood's avatar
      Introduce `on_runtime_upgrade` (#5058) · eb418161
      Gavin Wood authored
      * Initial idea of `on_runtime_upgrade`
      
      * Runtime storage for module version
      
      * Gui shawntabrizi runtime upgrade (#5118)
      
      * adding unleash to ci (#5020)
      
      * adding unleash to ci
      
      * fixing formatting
      
      * with a dot please
      
      * alpha.3 now
      
      * do not publish testing helpers
      
      * remove old test-helpers cruft
      
      * fix cargo.lock
      
      * with alpha 4
      
      * do not publish runtime-interface-test either
      
      * disable more test crates from publishing
      
      * switch to alpha.5
      
      * replace tempdir with tempfile
      
      * update lru
      
      * switch to bytes 0.5
      
      * release script fixes
      
      * switch on and to latest alpha
      
      * BUT THE SPACES
      
      * Fix: CI failing for some CLI tests (#5043)
      
      * Initial commit
      
      Forked at: 41bb2193
      
      
      Parent branch: origin/master
      
      * Increase killing grace period of CLI tests and display more info
      
      * Use --dev everywhere possible
      
      * Put pruning mode to its own params struct
      
      * Add pruning params to export-blocks command
      
      * Added missing file
      
      * Removed not-dev mode in tests
      
      * Add pruning mode to the revert command
      
      * Decrease killing grace period again
      
      * Move back unsafe_pruning to import_params
      
      * Applied proposed changes
      
      * aura: remove unused tx pool (#5046)
      
      * aura: remove unused transaction pool parameter
      
      * node-template: remove transaction pool from aura
      
      * aura: fix tests
      
      * Extend rust nightly detection in `wasm-builder` (#5021)
      
      Instead of just testing `cargo` and `rustup run nightly`, we now test
      the `CARGO` env variable and also scan non default nightlies. The user
      is also now able to select the toolchain with `WASM_BUILD_TOOLCHAIN`.
      
      * Add steps setting to benchmarking CLI (#5033)
      
      * Add steps setting to CLI, use max value to hit worst case.
      
      * Bump impl_version.
      
      * Apply review suggestion.
      
      * Remove indices from node-template (#5025)
      
      * Remove indices from node-template
      
      * Use identity lookup instead
      
      * Bump impl
      
      * clean cargo.toml
      
      * Fix documentation for "BlockBuilder::push_trusted" (#5051)
      
      * fix doc
      
      * rephrase
      
      * do not check unleash on every PR, only master and tags (#5054)
      
      * do not check unleash on every PR, only master and tags
      
      * move scripts folder
      
      * add signed-tag check to CI
      
      * remove publish-to-crates-io dependencies
      
      Co-authored-by: default avatars3krit <[email protected]>
      
      * prepare version to alpha.1 (#5055)
      
      bump version to -alpha.1
      
      * Sync: validate block responses for required data (#5052)
      
      * Less verbose state-db logging
      
      * Validate block responses for block bodies
      
      * Update client/network/src/protocol.rs
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Added validation test
      
      * Disconnect on missing header as well
      
      * Typo
      
      Co-Authored-By: default avatarAndré Silva <[email protected]>
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      Co-authored-by: default avatarAndré Silva <[email protected]>
      
      * Make these chainspecs fields private (#5031)
      
      * Fix dockerfile (#5059)
      
      * Adds documentation for `wipe` and `commit` (#5053)
      
      * Adds documentation for `wipe` and `commit`
      
      This adds documentation to `wipe` and `commit` of `Externalities`.
      Besides that it removes the default implementation that would just panic
      and requires that all implementers of the trait implement the functions.
      
      * Update primitives/externalities/src/lib.rs
      
      Co-Authored-By: default avatarjoe petrowski <[email protected]>
      
      Co-authored-by: default avatarjoe petrowski <[email protected]>
      
      * Fix the issue with `trybuild`'s `ui` tests (#4992)
      
      * repro ui bug
      
      * fix the tests
      
      * test with the new image
      
      * test without CARGO_HOME
      
      * test without fixes
      
      * test again
      
      * fix trybuild old versions
      
      * bump CArgo.lock
      
      * fix trybuild newest versions
      
      * bump Cargo.lock
      
      * trying on the latest image
      
      * bump Cargo.lock
      
      * run with the old image
      
      * ci will be green on the image from 2020-02-19 [skip ci]
      
      * bump Cargo.lock
      
      * Activate publishing of draft releases... (#5062)
      
      * Activate publishing of draft releases...
      
      ... And fix the message sending (missing parameter).
      
      * publish_draft_release.sh now checks latest...
      
      ... release on github rather than just a tag
      
      * Fix/div by zero (#5041)
      
      * Handle gas_price being zero separately
      
      * Bump spec_version
      
      * Add a unit & integration tests for gas price = 0
      
      * set missing metadata fields, prepping alpha.2 (#5067)
      
      * setting first batch of descriptions
      
      * fix what I just broke
      
      * next batch
      
      * and pallets, too
      
      * last batch
      
      * set cargo.lock
      
      * keep'em dev-deps
      
      * bump version to alpha.2
      
      * Fix revalidation not revalidating multiple times (#5065)
      
      * removes use of sc_client::Client from sc_finality_grandpa (#5030)
      
      * removes use of sc_client::Client from sc_finality_grandpa
      
      * code formatting
      
      * code formatting
      
      * removes use of sc_client::Client from sc_finality_grandpa
      
      * Remove deprecated host functions (#5038)
      
      Sadly we need to keep one function `ext_blake2_256`. This function is
      manually defined in `sp-core`.
      
      * removes use of sc_client::Client from sc_basic_authorship (#5050)
      
      * removes use of sc-client from sc-basic-authorship
      
      * refactor use of ProposerFactory
      
      * correct dep path
      
      * pallet-transaction-payment clean up (#5070)
      
      * Formatting clean up
      
      * Introduce separate setters for the fees.
      
      * *: Rename prometheus-exporter crate to substrate-prometheus-end… (#5076)
      
      This patch renames the crate for the following two reasons:
      
      1. The prometheus-exporter crate introduces native in-process Prometheus
      style instrumentation to the Substrate project. Within the Prometheus
      ecosystem the term "exporter" is used for external processes exposing
      metrics for e.g. the Linux Kernel. In-process exposition would be
      described via the term "endpoint".
      
      2. "prometheus-exporter" is generic and ignores the fact that it is only
      usable within the context of Substrate. In addition the name
      "prometheus-exporter" is already taken on crates.io.
      
      * rename `browser-utils` to `substrate-browser-utils` (#5079)
      
      * prepping for Alpha.3 (#5080)
      
      * Bump to alpha.3
      
      * update gitlab-ci
      
      * Propagate DispatchError for benchmarks. (#5075)
      
      * Propagate DispatchError for benchmarks.
      
      * Apply review suggestions.
      
      * Use RuntimeString.
      
      * fix expect
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Add options to overwrite range bounds in benchmark command. (#5072)
      
      * Add --mins --maxs to benchmark command.
      
      * Apply review suggestions.
      
      * Update yamux to version 0.4.4. (#5086)
      
      * Remove more instances of futures01 (#4633)
      
      * Start removing last few instances of futures01
      
      * Use to_poll on wasm
      
      * Revert "Use to_poll on wasm"
      
      This reverts commit 1c61728f
      
      .
      
      * Fix fg test
      
      * Upgrade network test futures
      
      * Update offchain hyper version
      
      * Update service test
      
      * bump tokio to 0.2.10
      
      * Removed some unneeded tokios
      
      * fixes
      
      * fix run_until_all_full
      
      * Make service test debuggable
      
      * Update client/offchain/src/api/http.rs
      
      Co-Authored-By: default avatarDemi Obenour <[email protected]>
      
      * Add service_test to test-int output
      
      * nitpicking
      
      * Finally fix test
      
      * Give up and revert client/serviec/test
      
      * Revert gitlab ci too
      
      Co-authored-by: default avatarDemi Obenour <[email protected]>
      
      * Make export blocks default to json on stdout (#5090)
      
      * Make export blocks default to json on stdout
      
      * Multiline instead of single line to stay under 100 cols
      
      * Change --json flag to --binary, defaulting to json
      
      * Offence reporting returns a result (#5082)
      
      * Offence reporting returns a result
      
      * Bump spec_version
      
      * Use unwrap instead of assertions
      
      * Fix more review grumbles
      
      * Update to libp2p 0.16.2 (#5088)
      
      * Remove request ID from the new protocol (#5049)
      
      * Make sure we remove a peer on disconnect in gossip (#5104)
      
      * Make sure we remove peers on disconnect in gossip state machine
      
      * Clear up the code
      
      * Add a comment
      
      * Expose `state-db` memory info (#5110)
      
      This exposes memory statistics from the state-db.
      
      * Change extrinsic_count to extrinsic_index in pallet-utility (#5044)
      
      Co-authored-by: default avatarBenjamin Kampmann <[email protected]>
      
      * Add more metrics to prometheus (#5034)
      
      * Add a few things
      
      * Add finality_grandpa_round
      
      * fix fg tests
      
      * Nitpicks
      
      * Nitpicks
      
      * Fix name of prometheus crate
      
      * Update to SCALE 1.2.0 (#5113)
      
      This updates `parity-scale-codec` to `1.2.0`, which includes multiple
      performance improvements and a fix that bounds the capacity of a vector
      at decoding.
      
      * Lazy payouts (#4474)
      
      * TODOs
      
      * Remove superfluous:
      
      * partial implementation
      
      * full implementation
      
      * fix preferences
      
      * update comments
      
      * upgrade test WIP
      
      * fix more tests
      
      * fix cutoff
      
      * fix saturation
      
      * comment
      
      * upgrade mock
      
      * upgrade test
      
      * WIP migration
      
      * WIP migration
      
      * remove slot stake stuff
      
      * fix merge
      
      * migration of ledger
      
      * remove equalize from test
      
      * add test
      
      * fix
      
      * update doc
      
      * fix compilation
      
      * improve test readibility
      
      * improve doc
      
      * fix most todo
      
      * fix migration and test
      
      * remove println
      
      * WIP
      
      * add test and spec
      
      * weight
      
      * update doc
      
      * safer end_era
      
      * fix exposure of conversion
      
      * Revert "safer end_era"
      
      This reverts commit 72ff737d
      
      .
      
      * fix useless put
      
      * exposure clipped
      
      * doc
      
      * fix payout with clipped
      
      * fix node runtime
      
      * add doc
      
      * pluggable and generalized staking module
      
      * remove print
      
      * update doc
      
      * refactor
      
      * improve documentation and implementation
      
      * fix test
      
      * Fix test
      
      * fix test
      
      * fix test
      
      * fix remove lowest stake from exposure, not biggest.
      
      * nomination index arguments in nominator_payout
      
      * add test
      
      * try to fix offence
      
      * apply slashed and bond eras until active era
      
      * doc
      
      * update spec version
      
      * add test upgrade from previous test environment
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarShawn Tabrizi <[email protected]>
      
      * nominators upgrade has been cleaned
      
      * dynamic history depth implementation
      
      * make current_era - history_depth included
      
      * Change equality check to start era to less than or equal
      
      * Use era specific validator prefs
      
      * Add print statement and comment about start era if <
      
      * fix next_reward overflow
      
      * make more check for bad era claim for zero cost
      
      * small refactor
      
      * code refactor + fix use of deprecated storage
      
      * fix wasm build
      
      * add comment
      
      * Fix tests
      
      * remove outdated comment
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarShawn Tabrizi <[email protected]>
      
      * gather active era information into one storage
      
      Co-authored-by: default avatarthiolliere <[email protected]>
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      
      * impl on_runtime_upgrade
      
      Co-authored-by: default avatarBenjamin Kampmann <[email protected]>
      Co-authored-by: default avatarCecile Tonglet <[email protected]>
      Co-authored-by: default avatarAndré Silva <[email protected]>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      Co-authored-by: default avatarMarcio Diaz <[email protected]>
      Co-authored-by: default avatarNikolay Volf <[email protected]>
      Co-authored-by: default avatars3krit <[email protected]>
      Co-authored-by: default avatarArkadiy Paronyan <[email protected]>
      Co-authored-by: default avatarPierre Krieger <[email protected]>
      Co-authored-by: default avatarChevdor <[email protected]>
      Co-authored-by: default avatarjoe petrowski <[email protected]>
      Co-authored-by: default avatarDenis Pisarev <[email protected]>
      Co-authored-by: default avatarEric <[email protected]>
      Co-authored-by: default avatarSeun Lanlege <[email protected]>
      Co-authored-by: default avatarSergei Pepyakin <[email protected]>
      Co-authored-by: default avatarMax Inden <[email protected]>
      Co-authored-by: default avatarAshley <[email protected]>
      Co-authored-by: default avatarToralf Wittner <[email protected]>
      Co-authored-by: default avatarDemi Obenour <[email protected]>
      Co-authored-by: default avatarpscott <[email protected]>
      Co-authored-by: default avatarFedor Sakharov <[email protected]>
      Co-authored-by: default avatarGavin Wood <[email protected]>
      Co-authored-by: default avatarthiolliere <[email protected]>
      
      * make compile
      
      * Add some tests
      
      * docs
      
      * Remove "useless" code
      
      * Fix merge and use n + 1 block number
      
      * Fix tests
      
      * unfix ui tests
      
      * Update on_initialize.stderr
      
      * fix test
      
      * Fix test
      
      * Bump spec
      
      * Remove `on_finalise` and `on_initialise`
      
      * Use bool for tracking runtime upgraded
      
      * typo
      
      * Support runtime upgrade with `set_storage`
      
      * Refactor migration code location
      
      * add trailing newlines
      
      * Remove old `IsUpgraded` flag
      
      * Update state root
      
      * Exhaustive match statement
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarKian Paimani <[email protected]>
      
      Co-authored-by: default avatarBenjamin Kampmann <[email protected]>
      Co-authored-by: default avatarCecile Tonglet <[email protected]>
      Co-authored-by: default avatarAndré Silva <[email protected]>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      Co-authored-by: default avatarMarcio Diaz <[email protected]>
      Co-authored-by: default avatarNikolay Volf <[email protected]>
      Co-authored-by: default avatars3krit <[email protected]>
      Co-authored-by: default avatarArkadiy Paronyan <[email protected]>
      Co-authored-by: default avatarPierre Krieger <[email protected]>
      Co-authored-by: default avatarChevdor <[email protected]>
      Co-authored-by: default avatarjoe petrowski <[email protected]>
      Co-authored-by: default avatarDenis Pisarev <[email protected]>
      Co-authored-by: default avatarEric <[email protected]>
      Co-authored-by: default avatarSeun Lanlege <[email protected]>
      Co-authored-by: default avatarSergei Pepyakin <[email protected]>
      Co-authored-by: default avatarMax Inden <[email protected]>
      Co-authored-by: default avatarAshley <[email protected]>
      Co-authored-by: default avatarToralf Wittner <[email protected]>
      Co-authored-by: default avatarDemi Obenour <[email protected]>
      Co-authored-by: default avatarpscott <[email protected]>
      Co-authored-by: default avatarFedor Sakharov <[email protected]>
      Co-authored-by: default avatarGavin Wood <[email protected]>
      Co-authored-by: default avatarthiolliere <[email protected]>
      Co-authored-by: default avatarKian Paimani <[email protected]>
      eb418161
    • Gavin Wood's avatar
      Pass Prometheus `Registry` into `Client` (#5120) · 32d6ed9f
      Gavin Wood authored
      * Add a few metrics to Client
      
      * Improve PrometheusConfig
      
      * Fix client docs
      32d6ed9f
    • Gavin Wood's avatar
      Remove `sender` from `Applyable`. (#5129) · 3f96ea8f
      Gavin Wood authored
      3f96ea8f
    • Gavin Wood's avatar
      remove on_exit from grandpa (#5098) · 3272f26b
      Gavin Wood authored
      3272f26b
    • Gavin Wood's avatar
      Adds a session getter to historical proofs (#5125) · f74589ef
      Gavin Wood authored
      * Adds a session getter to historical proofs
      
      * Bump spec_version
      
      * Adds some useful trait derives to Proof
      f74589ef