1. Mar 05, 2020
    • Benjamin Kampmann's avatar
      Reduce usage of `Blake2Hasher` (#5132) · 76acf5d6
      Benjamin Kampmann authored
      This reduces the usage of `Blake2Hasher` in the code base and replaces
      it with `BlakeTwo256`. The most important change is the removal of the
      custom extern function for `Blake2Hasher`. The runtime `Hash` trait is
      now also simplified and directly requires that the implementing type
      implements `Hashable`.
      76acf5d6
  2. Mar 04, 2020
  3. Mar 03, 2020
    • Gavin Wood's avatar
      Lazy payouts (#4474) · 75116bd8
      Gavin Wood authored
      * 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]>
      75116bd8
    • Bastian Köcher's avatar
      Update to SCALE 1.2.0 (#5113) · 870540b7
      Bastian Köcher authored
      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.
      870540b7
    • Ashley's avatar
      Add more metrics to prometheus (#5034) · a201f349
      Ashley authored
      * Add a few things
      
      * Add finality_grandpa_round
      
      * fix fg tests
      
      * Nitpicks
      
      * Nitpicks
      
      * Fix name of prometheus crate
      a201f349
  4. Mar 02, 2020
  5. Feb 28, 2020
  6. Feb 27, 2020
  7. Feb 26, 2020
  8. Feb 25, 2020
    • Benjamin Kampmann's avatar
      prepare version to alpha.1 (#5055) · 7c751574
      Benjamin Kampmann authored
      bump version to -alpha.1
      v2.0.0-alpha.1
      7c751574
    • Marcio Diaz's avatar
      Add steps setting to benchmarking CLI (#5033) · 063c0c38
      Marcio Diaz authored
      * Add steps setting to CLI, use max value to hit worst case.
      
      * Bump impl_version.
      
      * Apply review suggestion.
      063c0c38
    • Cecile Tonglet's avatar
      Fix: CI failing for some CLI tests (#5043) · a64dd527
      Cecile Tonglet authored
      * 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
      a64dd527
    • Benjamin Kampmann's avatar
      adding unleash to ci (#5020) · 993e5f69
      Benjamin Kampmann authored
      * 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
      993e5f69
  9. Feb 24, 2020
  10. Feb 21, 2020
  11. Feb 20, 2020
  12. Feb 19, 2020
  13. Feb 18, 2020
    • Nikolay Volf's avatar
      Build block without checking signatures (#4916) · dc92587b
      Nikolay Volf authored
      
      
      * in executive
      
      * in other places
      
      * to UnsafeResult
      
      * move doc comment
      
      * apply suggestions
      
      * allow validity mocking for TestXt
      
      * add test
      
      * augment checkable instead of another trait
      
      * fix im online test
      
      * blockbuilder dihotomy
      
      * review suggestions
      
      * update test
      
      * Update client/block-builder/src/lib.rs
      
      * updae spec_version
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      dc92587b
    • Tomasz Drwięga's avatar
      Inspection extension to node CLI (#4697) · d9952dd5
      Tomasz Drwięga authored
      * Initial inspect.
      
      * WiP
      
      * Add parsing tests.
      
      * Finalize CLI.
      
      * Update to latest substrate.
      
      * Remove unused imports.
      
      * Support ImportParams as well, to get the right pruning setting.
      
      * Mention in docs that hash is no 0x.
      
      * Move bytes above extrinsics.
      
      * Switch to fill helper from sc_cli.
      
      * Remove overwrite.
      
      * Fix error.
      
      * Fix error message.
      
      * Remove extra allow.
      
      * init_config
      d9952dd5
    • Ashley's avatar
      Re-enable networking on wasm (#4880) · c1a03a60
      Ashley authored
      * Use noise and timeouts on wasm
      
      * Don't use wasm-opt when compiling to wasm
      
      * Forgot lockfile
      
      * Add node about disabling wasm-opt
      
      * Enable timeouts in telemetry on wasm
      c1a03a60
    • Nikolay Volf's avatar
      Reusable bench-db & bench-keyring (#4955) · dececc3f
      Nikolay Volf authored
      * move to node-testing/bench
      
      * to tabs
      dececc3f
  14. Feb 17, 2020