1. Nov 10, 2021
  2. Nov 04, 2021
  3. Oct 31, 2021
    • thiolliere's avatar
      Automatic pallet parts in construct_runtime (#9681) · 4292e18e
      thiolliere authored
      
      
      * implement automatic parts
      
      * ui tests
      
      * rename
      
      * remove unnecessary exclude
      
      * better doc
      
      * better doc
      
      * fix genesis config
      
      * fix UI tests
      
      * fix UI test
      
      * Revert "fix UI test"
      
      This reverts commit a910351c0b24cfe42195cfd97d83a416640e3259.
      
      * implemented used_parts
      
      * Update frame/support/procedural/src/construct_runtime/mod.rs
      
      Co-authored-by: default avatarKeith Yeung <[email protected]>
      
      * doc + fmt
      
      * Update frame/support/procedural/src/construct_runtime/parse.rs
      
      Co-authored-by: default avatarKeith Yeung <[email protected]>
      
      * add doc in the macro
      
      * remove yet some more parts
      
      * fix ui test
      
      * more determnistic error message + fix ui tests
      
      * fix ui test
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarKeith Yeung <[email protected]>
      
      * do refactor + fix ui tests
      
      * fmt
      
      * fix test
      
      * fix test
      
      * fix ui test
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarKeith Yeung <[email protected]>
      
      * refactor
      
      * remove even more part in node-runtime
      
      * fix test
      
      * Add flow chart for the construct_runtime! execution flow
      
      * Fix typo
      
      * Ignore snippets that don't contain code
      
      * Refactor some code in expand_after
      
      * Rename expand_after to match_and_insert
      
      * cargo fmt
      
      * Fix rename
      
      * Remove frame_support argument to construct_runtime_parts
      
      * Make use of tt-call to simplify intermediate expansions
      
      * cargo fmt
      
      * Update match_and_insert documentation
      
      * Reset cursor to 0 when no matching patterns are found
      
      * Reorder struct fields on MatchAndInsertDef
      
      * Add test for dependency renames and fix frame-support import
      
      * Add more doc comments
      
      * Update frame/support/test/compile_pass/src/lib.rs
      
      Co-authored-by: default avatarGuillaume Thiolliere <[email protected]>
      
      Co-authored-by: default avatarKeith Yeung <[email protected]>
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      4292e18e
  4. Oct 30, 2021
    • Shawn Tabrizi's avatar
      Add Baseline FRAME Benchmarks (#9691) · 2d556c44
      Shawn Tabrizi authored
      
      
      * create and add baseline
      
      * fix import
      
      * try a different name
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=frame_benchmarking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/benchmarking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=frame_benchmarking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/benchmarking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=frame_benchmarking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/benchmarking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * increase repeats
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=frame_benchmarking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/benchmarking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * Update baseline.rs
      
      * Update baseline.rs
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=frame_benchmarking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/benchmarking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=frame_benchmarking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/benchmarking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=frame_benchmarking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/benchmarking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=frame_benchmarking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/benchmarking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * improve hash benchmark
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=frame_benchmarking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/benchmarking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=frame_benchmarking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/benchmarking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=frame_benchmarking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/benchmarking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=frame_benchmarking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/benchmarking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      Co-authored-by: default avatarParity Bot <[email protected]>
      2d556c44
  5. Oct 29, 2021
    • Bastian Köcher's avatar
      pallet-scheduler: Introduce `OriginPrivilegeCmp` (#10078) · 95b8fd61
      Bastian Köcher authored
      
      
      * pallet-scheduler: Introduce `OriginPrivilegeCmp`
      
      When a scheduled task should be canceled, the origin that tries to
      cancel the task is compared to the origin the task should be executed
      with. Before this pr this check only allowed that both origins are
      equal. However, this is problematic as this means that for example a
      council origin it needs to be have the same amount of yes votes to
      cancel the scheduled task. While a council origin with more yes votes
      should be able to cancel this task. This happened recently on Kusama and
      lead to a failed cancelation of a scheduled task. With this pr the two
      origins are compared and the cancelling origin needs to have greater or
      equal privileges as the origin that scheduled the task. What a greater,
      equal or less privilege is, can be configured in the runtime.
      
      For simplicity, a `EqualPrivilegeOnly` implementation is provided that
      only checks if two origins are equal. So, this mimics the old behaviour.
      
      * FMT
      
      * fix import
      
      * Small optimizations
      
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      95b8fd61
  6. Oct 11, 2021
    • Alexander Popiak's avatar
      Add Deposit and Withdraw Events to Balances Pallet (#9425) · 32900294
      Alexander Popiak authored
      
      
      * add Deposit and Withdraw events to balances
      
      + add deposit_event() calls where appropriate to signal fund movement
      + adjust and extend tests
      
      * line length
      
      * move events to the end to avoid changing indices
      
      * bump spec_version
      
      * cargo fmt
      
      * adjust block import bench to new event count
      
      * fix node executor tests
      
      * adjust import bench comment
      
      * fix typo and formatting
      
      * adjust event number
      
      * fix copy pasta
      
      * fix contracts pallets tests
      
      * cargo fmt
      
      * WIP fix events in tests
      
      * fix offences tests
      
      * fix tests
      
      * cargo +nightly fmt
      
      * fix contracts pallets tests
      
      * cargo +nightly fmt
      
      * fix offences tests
      
      * formatting and compile fixes
      
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      32900294
  7. Oct 08, 2021
  8. Oct 06, 2021
  9. Oct 04, 2021
  10. Sep 30, 2021
  11. Sep 22, 2021
    • Georges's avatar
      Generate storage info for pallet babe (#9760) · 5922da95
      Georges authored
      
      
      * Adding MaxEncodedLen for:
      * NextConfigDescriptor
      * AllowedSlots
      * BabeEpochConfiguration
      
      In prepation for adding storage information on pallet babe
      
      * Adding stotage_info to pallet babe
      
      Refactored UNDER_CONSTRUCTION_SEGMENT_LENGTH to become a runtime
      parameter MaxSegmentLength
      
      * Reinstate Slice as opposed to Vec
      
      * Refactoring code to make it neater
      
      * Replace `MaxSegmentLength` by
      `UNDER_CONSTRUCTION_SEGMENT_LENGTH`
      Stop exposing the bounds to the runtime
      
      * Removing extra line
      
      Co-authored-by: default avatarthiolliere <[email protected]>
      5922da95
    • Kian Paimani's avatar
      Use the automated call decode weight for `submit_unsigned` benchmark (#9766) · f86d4128
      Kian Paimani authored
      
      
      * Use the automated call decode weight for  benchmark
      
      * cargo run --quiet --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
      
      * cargo run --quiet --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
      
      * cargo run --quiet --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
      
      * cargo run --quiet --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
      
      * reduce the boundaries
      
      * Fix
      
      * Fox
      
      * cargo run --quiet --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
      
      * reduce the numbers even less
      
      * cargo run --quiet --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
      
      * Fix a few things
      
      * cargo run --quiet --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
      
      * cargo run --quiet --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
      
      * update comment
      
      Co-authored-by: default avatarParity Bot <[email protected]>
      f86d4128
    • Georges's avatar
      Adding storage_info to pallet grandpa (#9817) · 0fcc2ef6
      Georges authored
      
      
      Converting some `Vec` to `WeakBoundedVec`
      Adding `MaxAuthorities` type to bound the `WeakBoundedVec`
      
      Co-authored-by: default avatarthiolliere <[email protected]>
      0fcc2ef6
  12. Sep 21, 2021
  13. Sep 20, 2021
    • Georges's avatar
      Generate storage info for pallet im_online (#9654) · cddafd52
      Georges authored
      * Integrating WrapperOpaque from PR #9738
      
      * Adding storage_info to pallet im-online
      Changing some `Vec` to `WeakBoundedVec`
      Adding the following bounds:
      * `MaxKeys
      * `MaxPeerInHeartbeats`
      * `MaxPeerDataEncodingSize`
      to limit the size of `WeakBoundedVec`
      
      * Fix syntax
      
      * Need to clone keys
      
      * Changes in formatting
      cddafd52
  14. Sep 17, 2021
    • Zeke Mostov's avatar
      Implement `pallet-bags-list` and its interfaces with `pallet-staking` (#9507) · 669972a1
      Zeke Mostov authored
      
      
      * remove extra whitespace
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * only emit rebag event on success
      
      * add doc explaining the term voter
      
      * revamp/simplify rebag test
      
      * ensure genesis accounts are placed into the correct nodes/bags
      
      * bond_extra implicitly rebags
      
      * types at top; doc public type
      
      * start sketching out adjustable thresholds
      
      * add integrity test for voter bag threshold requirements
      
      * get rid of BagIdx
      
      This reorganizes bag storage such that bags are always referred to
      by their upper threshold. This in turn means that adding and removing
      bags is cheaper; you only need to migrate certain voters, not all of them.
      
      * implement migration logic for when the threshold list changes
      
      * start sketching out threshold proc macros
      
      * further refine macro signatures
      
      * WIP: implement make_ratio macro
      
      * start rethinking the process of producing threshold lists
      
      The macro approach seems to be a non-starter; that only really works
      if we're throwing around numeric literals everywhere, and that's just
      not nice in this case.
      
      Instead, let's write helper functions and make it really easy to
      generate the tables in separate, permanent files, which humans
      can then edit.
      
      * write helper functions to emit voter bags module
      
      * WIP: demo generating voter bags for a realistic runtime
      
      This isn't yet done, becuase it seems to take a Very Long Time to run,
      and it really shouldn't. Need to look into that.
      
      Still, it's a lot closer than it was this morning.
      
      * rm unnecessary arg_enum
      
      * fix voter bags math
      
      Turns out that when you're working in exponential space, you need
      to divide, not subtract, in order to keep the math working properly.
      
      Also neaten up the output a little bit to make it easier to read.
      
      * add computed voter bags thresholds to node
      
      * fixup some docs
      
      * iter from large bags to small, fulfuilling the contract
      
      * make tests compile
      
      * add VoterBagThresholds to some configs
      
      * ensure that iteration covers all voters even with implied final bag
      
      * use sp_std::boxed::Box;
      
      * fix unused import
      
      * add some more voter bags tests
      
      * file_header.txt
      
      * integrity test to ensure min bag exceeds existential weight
      
      * add more debug assertions about node list length
      
      * rm unused imports
      
      * Kian enters
      
      * Update frame/election-provider-support/src/onchain.rs
      
      Co-authored-by: default avatarZeke Mostov <[email protected]>
      
      * Suggestions for #9081 (Store voters in unsorted bags) (#9328)
      
      * Add some debug asserts to node::get and remove_node
      
      * Improve the debug asserts in remove_node
      
      * improve debug asserts
      
      * Space
      
      * Remove bad assertions
      
      * Tests: WIP take_works
      
      * Take test
      
      * Doc comment
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * Test storage is cleaned up;
      
      * formatting
      
      * Switch to simpler thresholds
      
      * Update the storage cleanup test
      
      * Remove hardcoded values from benchmark to make it more robust
      
      * Fix tests to acces bags properly
      
      * Sanity check WIP; tests failing
      
      * Update sanity checks to be more correct
      
      * Improve storage cleanup tests
      
      * WIP remote_ext_tests
      
      * Some notes on next steps
      
      * Remove some stuff that was for remote-ext tests
      
      * Some more cleanup to reduce diff
      
      * More :clean:
      
      * Mo cleanin
      
      * small fix
      
      * A lot of changes from kian
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      Co-authored-by: default avatarkianenigma <[email protected]>
      
      * merge fallout
      
      * Run cargo +nightly fmt
      
      * Fix a bunch of stuff, remove not needed runtime arg of make-bags
      
      * add logs
      
      * Glue the new staking bags to the election snapshot (#9415)
      
      * Glue the new staking bags to the election snapshot
      
      * add CheckedRem (#9412)
      
      * add CheckedRem
      
      * fix
      
      * Run fmt
      
      * Test comment
      
      Co-authored-by: default avatarXiliang Chen <[email protected]>
      Co-authored-by: default avataremostov <[email protected]>
      
      * Update node runtime with VoterSnapshotPerBlock
      
      * Unit test for pallet-staking unsorted bags feature (targets #9081) (#9422)
      
      * impl notional_bag_for_works
      
      * Add tests: insert_as_works & insert_works
      
      * Impl test: remove_works
      
      * Trivial cleaning
      
      * Add test: update_position_for_works
      
      * Write out edge case; probably can delete later
      
      * Add test: bags::get_works
      
      * Add test: remove_node_happy_path_works
      
      * Add test: remove_node_bad_paths_documented
      
      * WIP: voting_data_works
      
      * done
      
      * Improve test voting_data_works
      
      * Add comment
      
      * Fill out test basic_setup_works
      
      * Update: iteration_is_semi_sorted
      
      * Improve remove_works
      
      * Update update_position_for_works; create set_ledger_and_free_balance
      
      * Improve get_works
      
      * Improve storage clean up checks in remove test
      
      * Test: impl rebag_works + insert_and_remove_works
      
      * forgot file -  Test: impl rebag_works + insert_and_remove_works
      
      * Small tweak
      
      * Update voter_bags test to reflect unused bags are removed
      
      * Unbond & Rebond: do_rebag
      
      * Prevent infinite loops with duplicate tail insert
      
      * Check iter.count on voter list in pre-migrate
      
      * undo strang fmt comment stuff
      
      * Add in todo
      
      Co-authored-by: default avatarkianenigma <[email protected]>
      
      * Try prepare for master merge
      
      * Reduce diff
      
      * Add comment for test to add
      
      * Add in code TODO for update_position efficiency updates
      
      * Initial impl compiles
      
      * impl StakingVoterListStub
      
      * Sample impl<T: Config> VoterListProvider<T> for VoterList<T>
      
      * impl VoterListProvider for voter-bags
      
      * WIP integrate pallet-voter-bags to staking mock
      
      * the trait `pallet_staking::pallet::pallet::Config` is not implemented for `mock::Test`
      
      * random
      
      * pushing my stuff
      
      * Mock working
      
      * WIP voter list tests
      
      * Add bag insert, remove tests
      
      * Add test for bag insert and remove
      
      * Add remaining tests for VoterList
      
      * Add tests for node
      
      * Add rebag works
      
      * Add rebag extrinsic tests
      
      * Rename to bags-list and name the list .. list!
      
      * Rename VoterBagThresholds => BagThresholds
      
      * Add test count_works
      
      * Test on_update_works
      
      * test sanity check
      
      * a round of test fixes
      
      * push a lot of changes
      
      * my last changes
      
      * all bags-list test work; fmt
      
      * Beautify some tests
      
      * Doc comment for bags-list
      
      * Add insert warnings
      
      * Setup initial benchmark
      
      * Wire up WeightInfo
      
      * is_terminal wip; everything broken!
      
      * Is terminal working
      
      * add TODOs for remove_node
      
      * clean up remoe_node
      
      * Fix all staking tests
      
      * retire VoterBagFor
      
      * commit
      
      * bring in stashed changes
      
      * save
      
      * bench pipeline works now, but I can't run stuff
      
      * sabe
      
      * benchmarks now run, but we have a failure
      
      * WIP: Wire up make_bags
      
      * bags-thresholds compiles
      
      * Fix most build issues
      
      * This will fix all the tests
      
      * move bag thresholds to bags-list
      
      * Move bag-thresholds bin to within pallet-bags
      
      * Remove some unnescary TODOs
      
      * Impl tets wrong_rebag_is_noop
      
      * assert remove is a noop with bad data
      
      * Assert integrity test panics
      
      * Return an error when inserting duplicates
      
      * Update to handle error in staking pallet when inserting to list
      
      * Test contains and on_insert error
      
      * Test re-nominate does not mess up list or count
      
      * Everything builds and works, only the benchmark...
      
      * fuck yeah benchmarks
      
      * more cleanup, more hardening.
      
      * use the bags list again
      
      * fix benhc
      
      * Some questions and changs for List::migration
      
      * Fix migration removed_bags and new_bags usage
      
      * Some trivial aesthetic changes
      
      * Some more trivial changes
      
      * tiny changes/
      
      * mega rename
      
      * fix all tests and ci build
      
      * nit
      
      * Test and fix migration
      
      * nit
      
      * fmt
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * fmt
      
      * remove unused
      
      * make a few things pub
      
      * make node also pub.. for remote-ext test
      
      * Fix all tests again
      
      * Force bag changes in relevant benchmarks (targets #9507) (#9529)
      
      * force rebag for unbond, rebond, and bond_extra
      
      * nit
      
      * Improve utils
      
      * fmt
      
      * nits
      
      * Move generate_bags to its own pallet
      
      * Get runtime-benchmarks feature setup with prepare_on_update_benchmark
      
      * Withdraw unbonded kill working
      
      * Nominate bench working
      
      * some cleanup
      
      * WIP
      
      * update to check head pre & post conditions
      
      * Add some post condition verification stuff for on_remove
      
      * Update nominate
      
      * fmt
      
      * Improvements
      
      * Fix build
      
      * fix build with polkadot companion
      
      * Update frame/bags-list/src/list/tests.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * move generate-bag from frame to utils
      
      * wip
      
      * refactor WIP
      
      * WIP save
      
      * Refactor working
      
      * some variable renaming
      
      * WIP: prepare to remove head checks
      
      * Finish MvP refactor
      
      * Some cleanup
      
      * Soem more cleanup
      
      * save
      
      * fix a lot of stuff
      
      * Update client/db/src/bench.rs
      
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      
      * Apply suggestions from code review
      
      * Apply suggestions from code review
      
      * Fix some issues that came from trying to merge comments on github
      
      * some small changes
      
      * simplify it
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      Co-authored-by: default avatarkianenigma <[email protected]>
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      
      * Build works
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarGuillaume Thiolliere <[email protected]>
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarGuillaume Thiolliere <[email protected]>
      
      * Remove commented out debug assert
      
      * Remove some unused deps and some unused benchmarking stuff
      
      * Fix stakings ElectionDataProvider clear
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_bags_list --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/bags-list/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_bags_list --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/bags-list/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_bags_list --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/bags-list/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_bags_list --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/bags-list/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * Improving staking pallet-bags-list migration
      
      * fix build and some comments;
      
      * comment
      
      * Reduce visibility in bags list components
      
      * make node.bag_upper only accesible to benchmarks
      
      * Address some feedback; comments updates
      
      * use nominator map comment
      
      * fix vec capacity debug assert
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarGuillaume Thiolliere <[email protected]>
      
      * clarify VoterSnapshotPerBlock
      
      * Reduce diff on create_validators by wrapping with_seed
      
      * Some small improvements to staking benches
      
      * Soem comment updates
      
      * fix vec capacity debug assert ... for real this time
      
      * Reduce ListBags viz
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * Remove supports_eq_unordered & Support eq_unordered
      
      * Update utils/frame/generate-bags/src/lib.rs
      
      Co-authored-by: default avatarGuillaume Thiolliere <[email protected]>
      
      * Make total-issuance & minimium-balance CLI args; Dont use emptry ext
      
      * Improve docs for generate bags CLI args
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * Don't use default bags weight in node runtime
      
      * Feature gating sanity_check not working
      
      * Feature gate sanity check by creating duplicate fns
      
      * Fix line wrapping
      
      * Document VoteWeightProvider
      
      * Make bags ext-builder not a module
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * use pallet_bags_list instead of crate in mock
      
      * Make get_bags test helper fn live in List
      
      * use remove_from_storage_unchecked for node removal
      
      * Remove count of ids removed in remove_many
      
      * Add node sanity check, improve list sanity check
      
      * Do a list sanity check after on_update
      
      * List::migrate: clean up debug assert, exit early when no change in thresholds
      
      * Improve public doc comments for pallet_bags_list::list::List
      
      * Improve public doc comments for pallet_bags_list::list::List
      
      * Update generate bags docs
      
      * Fix grammar in bags-list benchmark
      
      * Add benchmark case for `rebag` extrinsic
      
      * Add count parameter to List::clear; WIP adding MaxEncodedLen to list'
      
      * MaxEncodeLen + generate_storage_info not working for Bag or Node
      
      * Get MaxEncodeLen derive to work
      
      * Try to correctly feature gate SortedListProvider::clear
      
      * Use u32::MAX, not u32::max_value
      
      * Get up to nominators_quota noms
      
      * SortedListProvider::clear takes an Option
      
      * Eplicitly ignore SortedListProvider return value
      
      * Fix doc comment
      
      * Update node-runtime voter snapshot per block
      
      * Add test get_max_len_voters_even_if_some_nominators_are_slashed
      
      * Add test only_iterates_max_2_times_nominators_quota
      
      * Fix generate bags cargo.toml
      
      * use sp_std vec
      
      * Remove v8 migration hooks from pallet-staking
      
      * Update npos trait
      
      * Try respect line width
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_bags_list --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/bags-list/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * Update frame/bags-list/src/benchmarks.rs
      
      * Unwrap try-runtime error; remove sortedlistprovider pre upgrade len  check
      
      * trigger ci
      
      * restore
      
      * trigger ci
      
      * restore
      
      * trigger ci
      
      * revert
      
      * trigger ci
      
      * revert
      
      Co-authored-by: default avatarPeter Goodspeed-Niklaus <[email protected]>
      Co-authored-by: default avatarKian Paimani <[email protected]>
      Co-authored-by: default avatarPeter Goodspeed-Niklaus <[email protected]>
      Co-authored-by: default avatarkianenigma <[email protected]>
      Co-authored-by: default avatarXiliang Chen <[email protected]>
      Co-authored-by: default avatarParity Benchmarking Bot <[email protected]>
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      Co-authored-by: default avatarGuillaume Thiolliere <[email protected]>
      669972a1
  15. Sep 15, 2021
    • Andrew Jones's avatar
      Enrich metadata with type information (#8615) · 49b6dfd2
      Andrew Jones authored
      
      
      * Cargo.lock after merge
      
      * Restore scale-info feature
      
      * Fully qualify TypeInfo derive
      
      * Skip PendingSwap T
      
      * Add missing skip_type_params attr
      
      * metadata docs features
      
      * Reduce pallet event attribute to struct
      
      * Cargo.lock
      
      * Update frame/balances/src/tests_composite.rs
      
      Co-authored-by: default avatarGuillaume Thiolliere <[email protected]>
      
      * Line widths check
      
      * Cargo.lock
      
      * Add scale-info/std
      
      * Update frame/system/src/lib.rs
      
      Co-authored-by: default avatarGuillaume Thiolliere <[email protected]>
      
      * Use `skip_type_params` to remove `TypeInfo` requirements on checks
      
      * Revert "Remove unused Call metadata stuff"
      
      This reverts commit 41311f85
      
      * Skip BalanceSwapAction type parameter
      
      * Remove unused event metadata macro
      
      * Update frame-metadata
      
      * Update primitives/npos-elections/compact/src/codec.rs
      
      Co-authored-by: default avatarGuillaume Thiolliere <[email protected]>
      
      * Manual TypeInfo for Header
      
      * Remove TypeInfo requirement for consts in BoundedVec etc.
      
      * Another TypeInfo bound removed
      
      * review: fix indentation
      
      * TypeInfo impls for Identity types
      
      * Add some todos to add custom TypeInfo impls
      
      * Update frame/support/procedural/src/pallet/expand/pallet_struct.rs
      
      Co-authored-by: default avatarGuillaume Thiolliere <[email protected]>
      
      * Add some todos to add custom TypeInfo impls
      
      * Add a test for manual Data TypeInfo impl
      
      * Add custom TypeInfo impl for Vote
      
      * Era custom TypeInfo crimes
      
      * Revert finality-grandpa version to 0.14.z
      
      * review: renamed module to pallet_constants_metadata
      
      * New line at end of file
      
      * Add missing scale-info/std
      
      * Update frame/support/src/storage/types/mod.rs
      
      Co-authored-by: default avatarGuillaume Thiolliere <[email protected]>
      
      * Remove StorageEntryType::Map unused flag
      
      * Add missing scale-info dependency after merge
      
      * SignedExtension::AdditionalSigned metadata
      
      * Update frame-metadata, use abbreviated docs and args fields
      
      * Update frame/example/Cargo.toml
      
      Co-authored-by: default avatarKeith Yeung <[email protected]>
      
      * Add scale_info/std and remove unused scale-info dependency
      
      * Remove scale-info dependency
      
      * Remove treasury pallet::metadata
      
      * Remove redundant Event test
      
      * Add back scale-info as dev dependency
      
      * fix error metadata when no error defined in decl_module
      
      * Add Module3 to tests
      
      * Fix metadata test
      
      * Add docs feature to frame-support test
      
      * WIP fixing pallet metadata test
      
      * Remove redundant FunctionMetadata, FunctionArgumentMetadata as per https://github.com/paritytech/frame-metadata/pull/20
      
      * Use main branch of frame-metadata
      
      * Use patch of scale-info for latest changes
      
      * Use latest patched scale-info
      
      * Manual TypeInfo for DigestItem
      
      * Manual TypeInfo for DigestItem
      
      * Update scale-info
      
      * Skip __Ignore variants for Error, depends on https://github.com/paritytech/scale-info/pull/117
      
      
      
      * Named fields for FRAME v2 pallet Call variants
      
      * Named fields for FRAME v1 pallet Call variants
      
      * Add missing scale-info dependency
      
      * WIP expand benchmark call variant
      
      * fix benchmark with new function
      
      create a new function for each variant of a pallet call.
      This function is called by benchmarking macro in order not to break call
      creation with unnamed argument
      
      * fix tests
      
      * more fix
      
      * Fix staking tests
      
      * Fix offchain workers calls
      
      * Cherry pick rustfmt.toml from master
      
      * cargo +nightly-2021-06-22 fmt --all
      
      * Update to new call variant structs
      
      * More call variant struct updates
      
      * Remove unused import
      
      * More call variant structs
      
      * More call variant structs
      
      * Even more call variant structs
      
      * Mooar variant structs
      
      * Evermore variant structs
      
      * Call variant structs ad infinitum
      
      * Fmt
      
      * More call variants
      
      * Last call variant
      
      * Call variants all done?
      
      * Fix SS58Prefix type
      
      * Potential workaround for BitFlags<IdentityFields> TypeInfo
      
      * Enable docs capturing for Call, Event, and Error types
      
      * Fix IdentityFields TypeInfo
      
      * Remove metadata-docs feature
      
      * Add capture_docs = true for legacy Call, Event and Error types
      
      * Fmt
      
      * Fix metadata test type
      
      * Update benchmarks with call struct variants
      
      * Fmt
      
      * More test fixes
      
      * Fmt
      
      * Fix benches
      
      * Use latest capture_docs attr
      
      * Latest scale_info
      
      * Fmt
      
      * review: change &Vec to &[]
      
      * Remove pallet metadata attr
      
      * review: remove commented out test code
      
      * review: skip_type_params trailing comma suggestion
      
      * Update to scale-info 0.10.0
      
      * Update construct_runtime ui tests, different because of metadata TypeInfo impls
      
      * Add some TypeInfo derives for UI tests
      
      * Update storage ensure span ui stderrs
      
      * Update call argument bound ui tests
      
      Possibly changed because change from tuple to struct variants?
      
      * Add scale-info dev dependency
      
      * Update to latest finality-grandpa release
      
      * review: missing newline
      
      * review: missing scale-info/std
      
      * review: remove duplicate scale-info/std
      
      * review: remove fully qualified TypeInfo
      
      * review: add missing scale-info/std
      
      * review: remove unnecessary imports.
      
      * Fmt
      
      * Use crates.io RC version of frame-metadata
      
      * Remove scale-info/std because it is a dev dependency
      
      * Add missing scale_info dev-dependency for test
      
      * Delete empty metadata folder
      
      * Fix sp_std import
      
      * review: improve manual UncheckedExtrinsic TypeInfo impl
      
      * review: use full scale-info for dev-dependency
      
      * Remove DefaultByteGetter impl
      
      * review: derive TypeInfo for generic header
      
      * Fmt
      
      * Update primitives/runtime/src/generic/unchecked_extrinsic.rs
      
      Co-authored-by: default avatarKeith Yeung <[email protected]>
      
      * Update primitives/runtime/src/generic/unchecked_extrinsic.rs
      
      Co-authored-by: default avatarKeith Yeung <[email protected]>
      
      * Update bin/node/executor/Cargo.toml
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Update frame/identity/src/types.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Update frame/support/src/dispatch.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Remove redundant derive
      
      * Simplify scale-info dependency
      
      * Strip underscore prefix from call variant struct names
      
      * Another underscore field
      
      * More underscore fields
      
      * Another underscore field
      
      * Update to frame-metadata 14.0.0-rc.2 with combined StorageEntryType::Map
      
      * Fmt
      
      * Revert weights formatting
      
      * Fix up some tests
      
      * Fix up some tests for StorageEntryTypeMetadata
      
      * scale-info dev dependency
      
      * Fix test error
      
      * Add missing TypeInfo derives
      
      * Add back missing scale-info dependency
      
      * Add back missing scale-info dependency
      
      * Fix npos compact impls
      
      * Cargo.lock
      
      * Fmt
      
      * Fix errors
      
      * Fmt
      
      * Fix renamed raw_solution field
      
      * Fix error
      
      * Fmt
      
      * Fix some benchmarks
      
      * Fmt
      
      * Stray R
      
      * Fix
      
      * Add missing TypeInfos
      
      * ui test fix
      
      * Fix line widths
      
      * Revert "ui test fix"
      
      This reverts commit 2d15ec058a216e3f92d713f1174603a2bb1eac65.
      
      * Upgrade to scale-info 0.11.0
      
      * Revert "Upgrade to scale-info 0.11.0"
      
      This reverts commit 047bb179085a0059c36cd20ab405f55cf0867e28.
      
      * Add Runtime type
      
      * Update to scale-info 0.12
      
      * Update to scale-info 1.0
      
      * Update frame-metadata to version 14.0.0
      
      * Patch finality-grandpa until release available
      
      * Fix metadata tests
      
      * Fix metadata tests
      
      * Fmt
      
      * Remove patched finality-grandpa
      
      * Fix tests, use scale_info imports
      
      * Fix pallet tests
      
      * Add BlockNumber TypeInfo bound
      
      * ui test fix
      
      * Cargo.lock
      
      * Remove pallet metadata
      
      * Cargo.lock
      
      * Add missing scale-info dependency
      
      * Remove pallet event metadata
      
      * Fix error
      
      * Fix collective errors
      
      * Semicolol
      
      * Fmt
      
      * Remove another metadata attribute
      
      * Add new variant to custom digest TypeInfo
      
      * Fmt
      
      * Cargo.lock from master
      
      * Remove comma lol
      
      * Fix example call error
      
      * Fix example call error properly
      
      Co-authored-by: default avatarGuillaume Thiolliere <[email protected]>
      Co-authored-by: default avatarKeith Yeung <[email protected]>
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      49b6dfd2
  16. Sep 12, 2021
  17. Sep 09, 2021
    • Zeke Mostov's avatar
      Create trait for NPoS election algorithms (#9664) · 6bfcfeed
      Zeke Mostov authored
      
      
      * build the template, hand it over to zeke now.
      
      * Tests working
      
      * save wip
      
      * Some updates
      
      * Some cleanup
      
      * mo cleanin
      
      * Link to issue
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * Bound accuracy for prepare_election_result
      
      * Use npos_election::Error for phragmms
      
      * save
      
      * Apply suggestions from code review
      
      * Simplify test to use Balancing::set
      
      * Cargo.lock after build
      
      * Revert "Cargo.lock after build"
      
      This reverts commit 7d726c8efa687c09e4f377196b106eb9e9760487.
      
      * Try reduce cargo.lock diff
      
      * Update bin/node/runtime/src/lib.rs
      
      * Comment
      
      * Apply suggestions from code review
      
      * Set balancing directly
      
      * Document som pub items
      
      * Update frame/election-provider-multi-phase/src/unsigned.rs
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * Improve some comments
      
      * Revert accidental change to random file
      
      * tiney
      
      * revert
      
      Co-authored-by: default avatarkianenigma <[email protected]>
      Co-authored-by: default avatarKian Paimani <[email protected]>
      6bfcfeed
  18. Sep 08, 2021
    • Alexander Popiak's avatar
      add query types to generate_storage_alias (#9659) · 8cf64743
      Alexander Popiak authored
      * add query types to generate_storage_alias
      
      * adjust comment
      
      * use ValueQuery explicitly for generate_storage_alias with generic value type
      
      * bump impl_version
      
      * adjust line width and add import
      
      * more compilation and formatting fixes
      
      * formatting
      8cf64743
  19. Sep 06, 2021
    • Alexander Theißen's avatar
      contracts: Remove state rent (#9669) · 522e77e2
      Alexander Theißen authored
      
      
      * Remove storage rent
      
      * Add storage migration
      
      * cargo run --quiet --release --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
      
      * cargo run --quiet --release --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
      
      * cargo run --quiet --release --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
      
      * Add migration for deletetion queue
      
      * Fix compilation
      
      * Increase gas supplied to out_of_gas to be sure that it won't deplete too early
      
      * cargo run --quiet --release --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
      
      Co-authored-by: default avatarParity Bot <[email protected]>
      522e77e2
  20. Sep 02, 2021
  21. Aug 30, 2021
    • Georges's avatar
      Generate storage info for pallet authority_discovery (#9428) · ac2468c4
      Georges authored
      * Migrate Aura pallet to BoundedVec
      
      Implementing issue #8629
      
      * Fixed aura tests after BoundedVec change
      
      * Moved Vec to BoundedVec in authority-discovery
      
      * Merging into the main branch
      
      * Added MaxEncodedLen to crypto
      
      Need this without full_crypto to be able to add generate_store_info
      
      * Add generate_store_info for aura
      
      * Adding changes to Slot to add MaxEncodedLen
      
      * Adding generate_store_info to authority discovery
      
      * fmt
      
      * removing panics in runtime if vec size too large
      
      * authority-discovery: Remove panics in runtime
      Can happen if vec size is too large, so truncate the vec in that case
      
      * Adding logging when I truncate Vecs
      
      * Got the sign the other way around
      
      * Reverting pallet_aura changes
      This is already being addressed by PR #9371
      
      * Change BoundedVec to WeakBoundedVec
      
      More robust implementation following @thiolliere
      
       recommendation.
      
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      ac2468c4
  22. Aug 24, 2021
    • Zeke Mostov's avatar
      pallet-vesting: Support multiple, merge-able vesting schedules (#9202) · ede36408
      Zeke Mostov authored
      
      
      * Support multiple, mergable vesting schedules
      
      * Update node runtime
      
      * Remove some TODO design questions and put them as commennts
      
      * Update frame/vesting/src/benchmarking.rs
      
      * Syntax and comment clean up
      
      * Create filter enum for removing schedules
      
      * Dry vesting calls with do_vest
      
      * Improve old benchmarks to account for max schedules
      
      * Update WeightInfo trait and make dummy fns
      
      * Add merge_schedule weights
      
      * Explicitly test multiple vesting scheudles
      
      * Make new vesting tests more more clear
      
      * Apply suggestions from code review
      
      * Update remove_vesting_schedule to error with no index
      
      * Try reduce spacing diff
      
      * Apply suggestions from code review
      
      * Use get on vesting for bounds check; check origin first
      
      * No filter tuple; various simplifications
      
      * unwrap or default when getting user schedules
      
      * spaces be gone
      
      * ReadMe fixes
      
      * Update frame/vesting/src/lib.rs
      
      Co-authored-by: default avatarPeter Goodspeed-Niklaus <[email protected]>
      
      * address some comments for docs
      
      * merge sched docs
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      
      * log error when trying to push to vesting vec
      
      * use let Some, not is_some
      
      * remove_vesting_schedule u32, not optin
      
      * new not try_new, create validate builder; VestingInfo
      
      * Merge prep: break out tests and mock
      
      * Add files forgot to include in merge
      
      * revert some accidental changes to merged files
      
      * Revert remaining accidental file changes
      
      * More revert of accidental file change
      
      * Try to reduce diff on tests
      
      * namespace Vesting; check key when key should not exist;
      
      * ending_block throws error on per_block of 0
      
      * Try improve merge vesting info comment
      
      * Update frame/vesting/src/lib.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * add validate + correct; handle duration > blocknumber
      
      * Move vesting_info module to its own file
      
      * Seperate Vesting/locks updates from writing
      
      * Add can_add_vesting schedule
      
      * Adjust min vested transfer to be greater than all ED
      
      * Initial integrity test impl
      
      * merge_finished_and_yet_to_be_started_schedules
      
      * Make sure to assert storage items are cleaned up
      
      * Migration initial impl (not tested)
      
      * Correct try-runtime hooks
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      
      * header
      
      * WIP: improve benchmarks
      
      * Benchmarking working
      
      * benchmarking: step over max schedules
      
      * cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_vesting --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/vesting/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * Simplify APIs by accepting vec; convert to bounded on write
      
      * Test:  build_genesis_has_storage_version_v1
      
      * Test more error cases
      
      * Hack to get polkadot weights to work; should revert later
      
      * Improve benchmarking; works on polkadot
      
      * cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_vesting --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/vesting/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * WIP override storage
      
      * Set storage not working example
      
      * Remove unused tests
      
      * VestingInfo: make public, derive MaxEndcodedLen
      
      * Rename ending_block to ending_block_as_balance
      
      * Superificial improvements
      
      * Check for end block infinite, not just duration
      
      * More superficial update
      
      * Update tests
      
      * Test vest with multi schedule
      
      * Don't use half max balance in benchmarks
      
      * Use debug_assert when locked is unexpected 0
      
      * Implement exec_action
      
      * Simplify per_block calc in vesting_info
      
      * VestingInfo.validate in add_vesting_schedule & can_add_vesting_schedule
      
      * Simplify post migrate check
      
      * Remove merge event
      
      * Minor benchmarking updates
      
      * Remove VestingInfo.correct
      
      * per_block accesor max with 1
      
      * Improve comment
      
      * Remoe debug
      
      * Fix add schedule comment
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarPeter Goodspeed-Niklaus <[email protected]>
      
      * no ref for should_remove param
      
      * Remove unused vestingaction derive
      
      * Asserts to show balance unlock in merge benchmark
      
      * Remove unused imports
      
      * trivial
      
      * Fix benchmark asserts to handle non-multiple of 20 locked
      
      * Add generate_storage_info
      
      * migration :facepalm
      
      * Remove per_block 0 logic
      
      * Update frame/vesting/src/lib.rs
      
      * Do not check for ending later than greatest block
      
      * Apply suggestions from code review
      
      * Benchmarks: simplify vesting schedule creation
      
      * Add log back for migration
      
      * Add note in ext docs explaining that all schedules will vest
      
      * Make integrity test work
      
      * Improve integrity test
      
      * Remove unnescary type param from VestingInfo::new
      
      * Remove unnescary resut for ending_block_as_balance
      
      * Remove T param from ending_block_as_balance
      
      * Reduce visibility of raw_per_block
      
      * Remove unused type param for validate
      
      * update old comment
      
      * Make log a dep; log warn in migrate
      
      * VestingInfo.validate returns Err(()), no T type param
      
      * Try improve report_schedule_updates
      
      * is_valid, not validate
      
      * revert node runtime reorg;
      
      * change schedule validity check to just warning
      
      * Simplify merge_vesting_info return type
      
      * Apply suggestions from code review
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * Add warning for migration
      
      * Fix indentation
      
      * Delete duplicate warnings
      
      * Reduce diff in node runtime
      
      * Fix benchmark build
      
      * Upgrade cargo.toml to use 4.0.0-dev
      
      * Cleanup
      
      * MaxVestingSchedulesGetter initial impl
      
      * MinVestedTransfer getter inintial impl
      
      * Test MaxVestingSchedules & MinVestedTransfer getters; use getters in benchmarks
      
      * Run cargo fmt
      
      * Revert MinVestedTransfer & MaxVestingSchedules getters; Add integrity test
      
      * Make MAX_VESTING_SCHEDULES a const
      
      * fmt
      
      * WIP: benchmark improvements
      
      * Finish benchmark update
      
      * Add test for transfer to account with less than ed
      
      * Rm min_new_account_transfer; move sp-io to dev-dep
      
      * Reduce cargo.toml diff
      
      * Explain MAX_VESTING_SCHEDULES choice
      
      * Fix after merge
      
      * Try fix CI complaints
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_vesting --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/vesting/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_vesting --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/vesting/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * fmt
      
      * trigger
      
      * fmt
      
      Co-authored-by: default avatarParity Bot <[email protected]>
      Co-authored-by: default avatarPeter Goodspeed-Niklaus <[email protected]>
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      Co-authored-by: default avatarKian Paimani <[email protected]>
      Co-authored-by: default avatarkianenigma <[email protected]>
      ede36408
  23. Aug 19, 2021
    • Kian Paimani's avatar
      remove the uselsss weight return type from election provider API (#9569) · 7a32c350
      Kian Paimani authored
      
      
      * remove the uselsss weight return type from election provider API
      
      * fix everything, should be ready for final benchmark
      
      * simplify on_init a bit furhter
      
      * cargo run --quiet --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
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * remove unwraps
      
      * fmt
      
      * Update lock file
      
      * whitelist block weight
      
      * cargo run --quiet --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
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * fix warning
      
      Co-authored-by: default avatarParity Benchmarking Bot <[email protected]>
      7a32c350
  24. Aug 11, 2021
  25. Aug 07, 2021
  26. Aug 03, 2021
  27. Aug 02, 2021
  28. Aug 01, 2021
    • Shawn Tabrizi's avatar
      Refactor Benchmarks for Less Wasm Memory Usage (#9373) · fa8c6274
      Shawn Tabrizi authored
      
      
      * extract repeat out of benchmark
      
      * remove r
      
      * unused
      
      * cargo run --quiet --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
      
      * cargo run --quiet --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
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * use linked map to keep order
      
      * cargo run --quiet --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
      
      * Delete pallet_balances.rs
      
      * Delete out
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * steps and repeat to tuple (current_*, total_*)
      
      * idea for list command
      
      * fmt
      
      * use benchmark list in cli
      
      * handle steps in cli
      
      * move log update to cli
      
      * fmt
      
      * remove old todo
      
      * line width
      
      * cargo run --quiet --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
      
      * benchmark metadata function
      
      * don't need this warm up
      
      * cargo run --quiet --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 warnings
      
      * fix node-template
      
      * fix
      
      * fmt
      
      * line width
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * improve docs
      
      * improve cli
      
      * fix format
      
      * fix bug?
      
      * Revert "fix bug?"
      
      This reverts commit 8051bf1bf9bae862ff28dfff386e7045cd3f045e.
      
      * skip frame-metadata
      
      * extract repeat out of benchmark
      
      * remove r
      
      * cargo run --quiet --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
      
      * cargo run --quiet --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
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * use linked map to keep order
      
      * cargo run --quiet --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
      
      * Delete pallet_balances.rs
      
      * Delete out
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * steps and repeat to tuple (current_*, total_*)
      
      * idea for list command
      
      * fmt
      
      * use benchmark list in cli
      
      * handle steps in cli
      
      * move log update to cli
      
      * remove old todo
      
      * line width
      
      * cargo run --quiet --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
      
      * benchmark metadata function
      
      * don't need this warm up
      
      * cargo run --quiet --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 warnings
      
      * fix node-template
      
      * fix
      
      * fmt
      
      * line width
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * improve docs
      
      * improve cli
      
      * fix format
      
      * fix bug?
      
      * Revert "fix bug?"
      
      This reverts commit 8051bf1bf9bae862ff28dfff386e7045cd3f045e.
      
      * skip frame-metadata
      
      * Update .gitlab-ci.yml
      
      * fix import
      
      * Update .gitlab-ci.yml
      
      Co-authored-by: default avatarParity Benchmarking Bot <[email protected]>
      fa8c6274
  29. Jul 26, 2021
  30. Jul 23, 2021
  31. Jul 21, 2021
    • Bastian Köcher's avatar
      Run cargo fmt on the whole code base (#9394) · 7b56ab15
      Bastian Köcher authored
      * Run cargo fmt on the whole code base
      
      * Second run
      
      * Add CI check
      
      * Fix compilation
      
      * More unnecessary braces
      
      * Handle weights
      
      * Use --all
      
      * Use correct attributes...
      
      * Fix UI tests
      
      * AHHHHHHHHH
      
      * 🤦
      
      * Docs
      
      * Fix compilation
      
      * 🤷
      
      * Please stop
      
      * 🤦
      
       x 2
      
      * More
      
      * make rustfmt.toml consistent with polkadot
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      7b56ab15
  32. Jul 12, 2021
  33. 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
  34. 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
  35. Jul 05, 2021
    • Igor Matuszewski's avatar
      Remove in-tree `max-encoded-len` and use the new SCALE codec crate instead (#9163) · eb6d651f
      Igor Matuszewski authored
      
      
      * Update impl-codec to use new upstream MaxEncodedLen trait
      
      * Adapt crates to use the updated codec crate for `MaxEncodedLen`
      
      * Remove max-encoded-len crate altogether
      
      * Fix test compilation in `pallet-proxy`
      
      * reorganize import (#9186)
      
      * Fix remaining `MaxEncodedLen` imports
      
      * Fix remaining old usages of max-encoded-len crate
      
      * Fix UI test
      
      * Manually depend on new impl-codec to fix Polkadot companion build
      
      * Use newly released primitive-types v0.9.1 that has new codec impls
      
      * Make sure codec deps are up-to-date in crates that use them
      
      Co-authored-by: default avatarGuillaume Thiolliere <[email protected]>
      eb6d651f
  36. Jul 01, 2021
    • Bastian Köcher's avatar
      Do not call `initialize_block` before any runtime api (#8953) · d489bd70
      Bastian Köcher authored
      * Do not call `initialize_block` before any runtime api
      
      Before this change we always called `initialize_block` before calling
      into the runtime. There was already support with `skip_initialize` to skip
      the initialization. Almost no runtime_api requires that
      `initialize_block` is called before. Actually this only leads to higher
      execution times most of the time, because all runtime modules are
      initialized and this is especially expensive when the block contained a
      runtime upgrade.
      
      TLDR: Do not call `initialize_block` before calling a runtime api.
      
      * Change `validate_transaction` interface
      
      * Fix rpc test
      
      * Fixes and comments
      
      * Some docs
      d489bd70