1. Sep 26, 2022
  2. Sep 24, 2022
  3. Sep 23, 2022
    • Davide Galassi's avatar
      Independence of Slot-based algorithms from system Timestamp (#12224) · bf97f2a7
      Davide Galassi authored
      
      
      * Remove timestamp from SlotInfo
      
      * Expose as millis instead of secs
      
      * Nits
      
      * Fix test after field removal
      
      * Yet another test fix
      
      * On the fly timestamp computation
      
      * Removed slot timestamp from logs
      
      * Removed reference to timestamp from slots subsystem
      
      * Slot based algorithm tests do not require timstamp inherent anymore
      
      * Remove junk files
      
      * Further tests cleanup
      
      * Trigger pipeline
      
      * Apply code suggestions
      
      * Trigger pipeline
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      bf97f2a7
    • Kian Paimani's avatar
      Fast Unstake Pallet (#12129) · b56c0e4c
      Kian Paimani authored
      * add failing test for itamar
      
      * an ugly example of fast unstake
      
      * Revert "add failing test for itamar"
      
      This reverts commit 16c4d8015698a0684c090c54fce8b470a2d2feb2.
      
      * fast unstake wip
      
      * clean it up a bit
      
      * some comments
      
      * on_idle logic
      
      * fix
      
      * comment
      
      * new working version, checks all pass, looking good
      
      * some notes
      
      * add mock boilerplate
      
      * more boilerplate
      
      * simplify the weight stuff
      
      * ExtBuilder for pools
      
      * fmt
      
      * rm bags-list, simplify setup_works
      
      * mock + tests boilerplate
      
      * make some benchmarks work
      
      * mock boilerplate
      
      * tests boilerplate
      
      * run_to_block works
      
      * add Error enums
      
      * add test
      
      * note
      
      * make UnstakeRequest fields pub
      
      * some tests
      
      * fix origin
      
      * fmt
      
      * add fast_unstake_events_since_last_call
      
      * text
      
      * rewrite some benchmes and fix them -- the outcome is still strange
      
      * Fix weights
      
      * cleanup
      
      * Update frame/election-provider-support/solution-type/src/single_page.rs
      
      * fix build
      
      * Fix pools tests
      
      * iterate teset + mock
      
      * test unfinished
      
      * cleanup and add some tests
      
      * add test successful_multi_queue
      
      * comment
      
      * rm Head check
      
      * add TODO
      
      * complete successful_multi_queue
      
      * + test early_exit
      
      * fix a lot of things above the beautiful atlantic ocean 🌊
      
      
      
      * seemingly it is finished now
      
      * Fix build
      
      * ".git/.scripts/fmt.sh" 1
      
      * Fix slashing amount as well
      
      * better docs
      
      * abstract types
      
      * rm use
      
      * import
      
      * Update frame/nomination-pools/benchmarking/src/lib.rs
      
      Co-authored-by: default avatarNitwit <[email protected]>
      
      * Update frame/fast-unstake/src/types.rs
      
      Co-authored-by: default avatarNitwit <[email protected]>
      
      * Fix build
      
      * fmt
      
      * Update frame/fast-unstake/src/lib.rs
      
      Co-authored-by: default avatarKeith Yeung <[email protected]>
      
      * make bounded
      
      * feedback from code review with Ankan
      
      * Update frame/fast-unstake/src/lib.rs
      
      Co-authored-by: default avatarRoman Useinov <[email protected]>
      
      * Update frame/fast-unstake/src/lib.rs
      
      Co-authored-by: default avatarRoman Useinov <[email protected]>
      
      * Update frame/fast-unstake/src/lib.rs
      
      Co-authored-by: default avatarRoman Useinov <[email protected]>
      
      * Update frame/fast-unstake/src/lib.rs
      
      Co-authored-by: default avatarRoman Useinov <[email protected]>
      
      * Update frame/fast-unstake/src/lib.rs
      
      Co-authored-by: default avatarRoman Useinov <[email protected]>
      
      * Update frame/fast-unstake/src/lib.rs
      
      Co-authored-by: default avatarRoman Useinov <[email protected]>
      
      * Update frame/fast-unstake/src/lib.rs
      
      Co-authored-by: default avatarRoman Useinov <[email protected]>
      
      * Update frame/fast-unstake/src/lib.rs
      
      Co-authored-by: default avatarRoman Useinov <[email protected]>
      
      * Update frame/fast-unstake/src/lib.rs
      
      Co-authored-by: default avatarRoman Useinov <[email protected]>
      
      * Update frame/fast-unstake/src/mock.rs
      
      * update to master
      
      * some final review comments
      
      * fmt
      
      * fix clippy
      
      * remove unused
      
      * ".git/.scripts/fmt.sh" 1
      
      * make it all build again
      
      * fmt
      
      * undo fishy change
      
      Co-authored-by: default avatarRoss Bulat <[email protected]>
      Co-authored-by: command-bot <>
      Co-authored-by: default avatarNitwit <[email protected]>
      Co-authored-by: default avatarKeith Yeung <[email protected]>
      Co-authored-by: default avatarRoman Useinov <[email protected]>
      b56c0e4c
  4. Sep 21, 2022
  5. Sep 20, 2022
  6. Sep 19, 2022
  7. Sep 18, 2022
    • Roman Useinov's avatar
      [Feature] Part 1: add TargetList for validator ranking (#12034) · 1b24f562
      Roman Useinov authored
      
      
      * [Feature] Part 1: add TargetList for validator ranking
      
      * remove redundant todo
      
      * remove typo
      
      * cleanup
      
      * implement score
      
      * more fixes
      
      * fix thresholds
      
      * fmt
      
      * Remove the stuff that has to come in the next PR, some fixes
      
      * extended balance import
      
      * Change all the references from VoteWeight to Self::Score
      
      * Add a migration for VoterBagsList
      
      * fix score
      
      * add targetList to nomination-pools tests
      
      * fix bench
      
      * address review comments
      
      * change get_npos_targets
      
      * address more comments
      
      * remove thresholds for the time being
      
      * fix instance reference
      
      * VoterBagsListInstance
      
      * reus
      
      * remove params that are not used yet
      
      * Introduced pre/post upgrade try-runtime checks
      
      * fix
      
      * fixes
      
      * fix migration
      
      * fix migration
      
      * fix post_upgrade
      
      * change
      
      * Fix
      
      * eloquent PhantomData
      
      * fix PD
      
      * more fixes
      
      * Update frame/staking/src/pallet/impls.rs
      
      Co-authored-by: default avatarSquirrel <[email protected]>
      
      * is_nominator now works
      
      * fix test-staking
      
      * build fixes
      
      * fix remote-tests
      
      * Apply suggestions from code review
      
      Co-authored-by: parity-processbot <>
      Co-authored-by: default avatarkianenigma <[email protected]>
      Co-authored-by: default avatarSquirrel <[email protected]>
      Co-authored-by: default avatarKian Paimani <[email protected]>
      1b24f562
  8. Sep 16, 2022
    • Sam Johnson's avatar
      Add special tag to exclude runtime storage items from benchmarking (#12205) · c0e007b5
      Sam Johnson authored
      * initial setup
      
      * add WhitelistedStorageKeys trait
      
      * add (A, B) tuple implementation for whitelisted_storage_keys()
      
      * fix formatting
      
      * implement WhitelistedStorageKeys for all tuple combinations
      
      * impl_for_tuples up to 128 for WhitelistedStorageKeys
      
      * refactor to #[benchmarking(cached)]
      
      * tweak error message and mark BlockNumber as cached
      
      * add benchmarking(cached) to the other default types
      
      * add docs for benchmarking(cached)
      
      * properly parse storage type declaration
      
      * make storage_alias structs public so we can use them in this macro
      
      * use BTreeMap since TrackedStorageKey missing Ord outside of std
      
      * make WhitelistedStorageKeys accessible
      
      * basic detection of benchmarking(cached) 💥
      
      * proper parsing of #[benchmarking(cached)] from pallet parse macro
      
      * store presence of #[benchmarking(cached)] macro on StorageDef
      
      * will be used for later expansion
      
      * compiling blank impl for WhitelistedStorageKeys
      
      * move impl to expand_pallet_struct
      
      * use frame_support::sp_std::vec::Vec properly
      
      * successfully compiling with storage info loaded into a variable 💥
      
      * plausible implementation for whitelisted_storage_keys()
      
      * depends on the assumption that storage_info.encode() can be loaded
        into TrackedStorageKey::new(..)
      
      * use Pallet::whitelisted_storage_keys() instead of hard-coded list
      
      * AllPallets::whitelisted_storage_keys() properly working 💥
      
      * collect storage names
      
      * whitelisted_storage_keys() impl working 💥
      
      
      
      * clean up
      
      * fix compiler error
      
      * just one compiler error
      
      * fix doc compiler error
      
      * use better import path
      
      * fix comment
      
      * whoops
      
      * whoops again
      
      * fix macro import issue
      
      * cargo fmt
      
      * mark example as ignore
      
      * use keyword tokens instead of string parsing
      
      * fix keyword-based parsing of benchmarking(cached)
      
      * preliminary spec for check_whitelist()
      
      * add additional test for benchmarking whitelist
      
      * add TODO note
      
      * remove irrelevant line from example
      
      * use filter_map instead of filter and map
      
      * simplify syntax
      
      Co-authored-by: default avatarKeith Yeung <[email protected]>
      
      * clean up
      
      * fix test
      
      * fix tests
      
      * use keyword parsing instead of string parsing
      
      * use collect() instead of a for loop
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * fix compiler error
      
      * clean up benchmarking(cached) marking code
      
      * use cloned()
      
      * refactor to not use panic! and remove need for pub types in storage_alias
      
      * remove unneeded use
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * remove unneeded visibility changes
      
      * don't manually hard code hash for treasury account as hex
      
      * proper Ord, PartialOrd, and Hash impls for TrackedStorageKey
      
      * now based just on key, and available in no-std
      
      * use BTreeSet instead of BTreeMap
      
      * fix comments
      
      * cargo fmt
      
      * switch to pallet::whitelist and re-do it basti's way :D
      
      * make PartialOrd for TrackedStorageKey consistent with Ord
      
      * more correct implementation of hash-related traits for TrackedStorageKey
      
      * fix integration test
      
      * update TODO
      
      * remove unused keyword
      
      * remove more unused keywords
      
      * use into_iter()
      
      Co-authored-by: default avatarKeith Yeung <[email protected]>
      
      * Update frame/support/procedural/src/pallet/parse/mod.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * add docs for whitelisted
      
      * fix comment
      
      Co-authored-by: default avatarKeith Yeung <[email protected]>
      Co-authored-by: default avatarKian Paimani <[email protected]>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      c0e007b5
  9. Sep 15, 2022
  10. Sep 14, 2022
  11. Sep 13, 2022
    • Keith Yeung's avatar
      Create sp-weights crate to store weight primitives (#12219) · 30e7b1e8
      Keith Yeung authored
      
      
      * Create sp-weights crate to store weight primitives
      
      * Fix templates
      
      * Fix templates
      
      * Fixes
      
      * Fixes
      
      * cargo fmt
      
      * Fixes
      
      * Fixes
      
      * Use deprecated type alias instead of deprecated unit types
      
      * Use deprecated subtraits instead of deprecated hollow new traits
      
      * Fixes
      
      * Allow deprecation in macro expansion
      
      * Add missing where clause during call macro expansion
      
      * cargo fmt
      
      * Fixes
      
      * cargo fmt
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Move FRAME-specific weight files back to frame_support
      
      * Fixes
      
      * Update frame/support/src/dispatch.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * Update frame/support/src/dispatch.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * Update frame/support/src/dispatch.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * Add missing header
      
      * Rewrite module docs
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * cargo fmt
      
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      Co-authored-by: default avatarKian Paimani <[email protected]>
      30e7b1e8
    • Michal Kucharczyk's avatar
      Remove CanAuthorWith trait (#12213) · 214eb25f
      Michal Kucharczyk authored
      * Remove CanAuthorWith trait
      
      CanAuthotWith trait removed. Also all dependencies, parameters, type
      paramers were removed. This is related to removal of native runtime.
      
      * Remove commented code
      
      * Fix code formatting
      
      * trigger CI job
      
      * trigger CI job
      
      * trigger CI job
      
      * trigger CI job
      
      * trigger CI job
      
      * trigger CI job
      
      * trigger CI job
      214eb25f
  12. Sep 12, 2022
    • Sergej Sakac's avatar
      BREAKING: Rename Call & Event (#11981) · 6e8795af
      Sergej Sakac authored
      
      
      * rename Event to RuntimeEvent
      
      * rename Call
      
      * rename in runtimes
      
      * small fix
      
      * rename Event
      
      * small fix & rename RuntimeCall back to Call for now
      
      * small fixes
      
      * more renaming
      
      * a bit more renaming
      
      * fmt
      
      * small fix
      
      * commit
      
      * prep for renaming associated types
      
      * fix
      
      * rename associated Event type
      
      * rename to RuntimeEvent
      
      * commit
      
      * merge conflict fixes & fmt
      
      * additional renaming
      
      * fix.
      
      * fix decl_event
      
      * rename in tests
      
      * remove warnings
      
      * remove accidental rename
      
      * .
      
      * commit
      
      * update .stderr
      
      * fix in test
      
      * update .stderr
      
      * TRYBUILD=overwrite
      
      * docs
      
      * fmt
      
      * small change in docs
      
      * rename PalletEvent to Event
      
      * rename Call to RuntimeCall
      
      * renamed at wrong places :P
      
      * rename Call
      
      * rename
      
      * rename associated type
      
      * fix
      
      * fix & fmt
      
      * commit
      
      * frame-support-test
      
      * passing tests
      
      * update docs
      
      * rustdoc fix
      
      * update .stderr
      
      * wrong code in docs
      
      * merge fix
      
      * fix in error message
      
      * update .stderr
      
      * docs & error message
      
      * .
      
      * merge fix
      
      * merge fix
      
      * fmt
      
      * fmt
      
      * merge fix
      
      * more fixing
      
      * fmt
      
      * remove unused
      
      * fmt
      
      * fix
      
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      6e8795af
    • Daniel Shiposha's avatar
      Add `ConstFeeMultiplier` to the transaction payment pallet (#12222) · 7679d061
      Daniel Shiposha authored
      * fix: FeeMultiplierUpdate
      
      * fix: cargo fmt
      
      * fix: rustdoc
      
      * Revert "fix: rustdoc"
      
      This reverts commit 96b6ad80a4cd4d856cf5a830889858c4dd4c385b.
      
      * Revert "fix: cargo fmt"
      
      This reverts commit 13016527bdbc53d9484642d6b52430550c0efc55.
      
      * Revert "fix: FeeMultiplierUpdate"
      
      This reverts commit 2cbddd0b85e0293d0eeda859807ddf70cee29067.
      
      * feat: add ConstFeeMultiplier
      
      * fix: use cConstFeeMultiplier in the template node
      7679d061
    • Bastian Köcher's avatar
      Remove native call (#12201) · b356a558
      Bastian Köcher authored
      * Remove native call
      
      With the recent introduction of staging runtime apis the native call wasn't supported anymore. This
      removes the entire support for this as it is not used anymore.
      
      * FMT
      
      * Fix benchmarks
      
      * FIX ui tests
      b356a558
  13. Sep 08, 2022
  14. Sep 06, 2022
    • Piotr Mikołajczyk's avatar
      `try-runtime`::`follow-chain` - keep connection (#12167) · 198f94f9
      Piotr Mikołajczyk authored
      * Refactor RPC module
      
      * Add flag to `follow-chain`
      
      * Multithreading remark
      
      * fmt
      
      * O_O
      
      * unused import
      
      * cmon
      
      * accidental removal reverted
      
      * remove RpcHeaderProvider
      
      * mut refs
      
      * fmt
      
      * no mutability
      
      * now?
      
      * now?
      
      * arc mutex
      
      * async mutex
      
      * async mutex
      
      * uhm
      
      * connect in constructor
      
      * remove dep
      
      * old import
      
      * another take
      
      * trigger polkadot pipeline
      
      * trigger pipeline
      198f94f9
  15. Sep 05, 2022
  16. Sep 02, 2022
  17. Sep 01, 2022
    • Shawn Tabrizi's avatar
      Weight v1.5 Follow Ups (#12155) · 1df45616
      Shawn Tabrizi authored
      * update api
      
      * update
      
      * remove unused
      
      * remove `one` api
      
      * fix unused
      
      * fmt
      
      * add saturating accrue
      
      * remove `Weight::new()`
      
      * use some macros
      
      * div makes no sense
      
      * Update weight_v2.rs
      
      * missed some
      
      * more patch
      
      * fixes
      
      * more fixes
      
      * more fix
      
      * more fix
      
      * Update frame/support/src/weights/weight_v2.rs
      
      * not needed
      
      * fix weight file
      1df45616
    • Kian Paimani's avatar
      Runtime State Test + Integration with `try-runtime` (#10174) · f67c06ce
      Kian Paimani authored
      
      
      * add missing version to dependencies
      
      * Huh
      
      * add features more
      
      * more fixing
      
      * last touches
      
      * it all finally works
      
      * remove some feature gates
      
      * remove unused
      
      * fix old macro
      
      * make it work again
      
      * fmt
      
      * remove unused import
      
      * ".git/.scripts/fmt.sh" 1
      
      * Cleanup more
      
      * fix and rename everything
      
      * a few clippy fixes
      
      * Add try-runtime feature
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * small fixes
      
      * fmt
      
      * Update bin/node-template/runtime/src/lib.rs
      
      * fix build
      
      * Update utils/frame/try-runtime/cli/src/lib.rs
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * Update utils/frame/try-runtime/cli/src/commands/execute_block.rs
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * address all review comments
      
      * fix typos
      
      * revert spec change
      
      * last touches
      
      * update docs
      
      * fmt
      
      * remove some debug_assertions
      
      * fmt
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      Co-authored-by: command-bot <>
      Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
      Co-authored-by: default avatarDavid <[email protected]>
      f67c06ce
    • Muharem Ismailov's avatar
      Alliance pallet: add force_set_members instead of init_members function (#11997) · d8e95175
      Muharem Ismailov authored
      
      
      * Alliance pallet: add force_set_members instead of init_members function
      
      * benchmark with witness data
      
      * remove invalid limit for clear
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarjoe petrowski <[email protected]>
      
      * Revert "remove invalid limit for clear"
      
      This reverts commit dba54e3071b63bfea908087aef213f4640e3ccbf.
      
      * compile constructor only for test
      
      * Update comments for force_set_members
      
      Co-authored-by: default avatarjoe petrowski <[email protected]>
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarjoe petrowski <[email protected]>
      
      * ".git/.scripts/bench-bot.sh" pallet dev pallet_alliance
      
      * benchmark - founders count range
      
      * Revert "benchmark - founders count range"
      
      This reverts commit aad16796f8dfed48079fb7f587b8f5b59382cda6.
      
      * witness members count instead votable members count
      
      * update the doc
      
      * use decode_len for witness data checks
      
      * change witness data member count to voting member count; update clear limits
      
      * ".git/.scripts/bench-bot.sh" pallet dev pallet_alliance
      
      * merge master
      
      * fixes after merge master
      
      * revert to cb3e63
      
      * disband alliance and return deposits
      
      * revert debug changes
      
      * weights
      
      * update docs
      
      * update test comments
      
      * Apply Joe suggestions from code review
      
      Co-authored-by: default avatarjoe petrowski <[email protected]>
      
      * rename event from AllianceDisband to AllianceDisbanded
      
      * ".git/.scripts/bench-bot.sh" pallet dev pallet_alliance
      
      Co-authored-by: default avatarjoe petrowski <[email protected]>
      Co-authored-by: command-bot <>
      d8e95175
  18. Aug 31, 2022
    • Shawn Tabrizi's avatar
      Weight v1.5: Opaque Struct (#12138) · 30951822
      Shawn Tabrizi authored
      * initial idea
      
      * update frame_support
      
      * update a bunch more
      
      * add ord
      
      * adjust RuntimeDbWeight
      
      * frame_system builds
      
      * re-export
      
      * frame_support tests pass
      
      * frame_executive compile
      
      * frame_executive builds
      
      * frame_system tests passing
      
      * pallet-utility tests pass
      
      * fix a bunch of pallets
      
      * more
      
      * phragmen
      
      * state-trie-migration
      
      * scheduler and referenda
      
      * pallet-election-provider-multi-phase
      
      * aura
      
      * staking
      
      * more
      
      * babe
      
      * balances
      
      * bunch more
      
      * sudo
      
      * transaction-payment
      
      * asset-tx-payment
      
      * last pallets
      
      * fix alliance merge
      
      * fix node template runtime
      
      * fix pallet-contracts cc @athei
      
      * fix node runtime
      
      * fix compile on runtime-benchmarks feature
      
      * comment
      
      * fix frame-support-test
      
      * fix more tests
      
      * weight regex
      
      * frame system works
      
      * fix a bunch
      
      * more
      
      * more
      
      * more
      
      * more
      
      * more
      
      * more fixes
      
      * update templates
      
      * fix contracts benchmarks
      
      * Update lib.rs
      
      * Update lib.rs
      
      * fix ui
      
      * make scalar saturating mul const
      
      * more const functions
      
      * scalar div
      
      * refactor using constant functions
      
      * move impl
      
      * fix overhead template
      
      * use compactas
      
      * Update lib.rs
      30951822
  19. Aug 29, 2022
    • Muharem Ismailov's avatar
      Alliance pallet: retirement notice call (#11970) · b74fba5d
      Muharem Ismailov authored
      
      
      * Alliance pallet: retirement notice
      
      * add alliance pallet to benchmark list for dev chain
      
      * fix type
      
      * ".git/.scripts/bench-bot.sh" pallet dev pallet_alliance
      
      * ".git/.scripts/bench-bot.sh" pallet dev pallet_alliance
      
      * link weight generated by bench for retirement_notice method
      
      * migration to clear UpForKicking storage prefix
      
      * rename migration from v1 to v0_to_v1
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarjoe petrowski <[email protected]>
      
      * rename `retirement-notice to give-retirement-notice
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarSquirrel <[email protected]>
      
      * review fixes: update doc, saturating add, BlockNumber type alias
      
      * add suffix to duratin consts *_IN_BLOCKS
      
      * ".git/.scripts/bench-bot.sh" pallet dev pallet_alliance
      
      * add negative tests (#11995)
      
      * add negative tests
      
      * remove tests powerless asserts checking against announcment origin
      
      * assert bad origin from announcement origin checks
      
      Co-authored-by: default avatarmuharem <[email protected]>
      
      Co-authored-by: command-bot <>
      Co-authored-by: default avatarjoe petrowski <[email protected]>
      Co-authored-by: default avatarSquirrel <[email protected]>
      b74fba5d
  20. Aug 28, 2022
  21. Aug 26, 2022
  22. Aug 18, 2022
    • Bastian Köcher's avatar
      Introduce trie level cache and remove state cache (#11407) · 73d9ae32
      Bastian Köcher authored
      * trie state cache
      
      * Also cache missing access on read.
      
      * fix comp
      
      * bis
      
      * fix
      
      * use has_lru
      
      * remove local storage cache on size 0.
      
      * No cache.
      
      * local cache only
      
      * trie cache and local cache
      
      * storage cache (with local)
      
      * trie cache no local cache
      
      * Add state access benchmark
      
      * Remove warnings etc
      
      * Add trie cache benchmark
      
      * No extra "clone" required
      
      * Change benchmark to use multiple blocks
      
      * Use patches
      
      * Integrate shitty implementation
      
      * More stuff
      
      * Revert "Merge branch 'master' into trie_state_cache"
      
      This reverts commit 947cd8e6d43fced10e21b76d5b92ffa57b57c318, reversing
      changes made to 29ff0364
      
      .
      
      * Improve benchmark
      
      * Adapt to latest changes
      
      * Adapt to changes in trie
      
      * Add a test that uses iterator
      
      * Start fixing it
      
      * Remove obsolete file
      
      * Make it compile
      
      * Start rewriting the trie node cache
      
      * More work on the cache
      
      * More docs and code etc
      
      * Make data cache an optional
      
      * Tests
      
      * Remove debug stuff
      
      * Recorder
      
      * Some docs and a simple test for the recorder
      
      * Compile fixes
      
      * Make it compile
      
      * More fixes
      
      * More fixes
      
      * Fix fix fix
      
      * Make sure cache and recorder work together for basic stuff
      
      * Test that data caching and recording works
      
      * Test `TrieDBMut` with caching
      
      * Try something
      
      * Fixes, fixes, fixes
      
      * Forward the recorder
      
      * Make it compile
      
      * Use recorder in more places
      
      * Switch to new `with_optional_recorder` fn
      
      * Refactor and cleanups
      
      * Move `ProvingBackend` tests
      
      * Simplify
      
      * Move over all functionality to the essence
      
      * Fix compilation
      
      * Implement estimate encoded size for StorageProof
      
      * Start using the `cache` everywhere
      
      * Use the cache everywhere
      
      * Fix compilation
      
      * Fix tests
      
      * Adds `TrieBackendBuilder` and enhances the tests
      
      * Ensure that recorder drain checks that values are found as expected
      
      * Switch over to `TrieBackendBuilder`
      
      * Start fixing the problem with child tries and recording
      
      * Fix recording of child tries
      
      * Make it compile
      
      * Overwrite `storage_hash` in `TrieBackend`
      
      * Add `storage_cache` to  the benchmarks
      
      * Fix `no_std` build
      
      * Speed up cache lookup
      
      * Extend the state access benchmark to also hash a runtime
      
      * Fix build
      
      * Fix compilation
      
      * Rewrite value cache
      
      * Add lru cache
      
      * Ensure that the cache lru works
      
      * Value cache should not be optional
      
      * Add support for keeping the shared node cache in its bounds
      
      * Make the cache configurable
      
      * Check that the cache respects the bounds
      
      * Adds a new test
      
      * Fixes
      
      * Docs and some renamings
      
      * More docs
      
      * Start using the new recorder
      
      * Fix more code
      
      * Take `self` argument
      
      * Remove warnings
      
      * Fix benchmark
      
      * Fix accounting
      
      * Rip off the state cache
      
      * Start fixing fallout after removing the state cache
      
      * Make it compile after trie changes
      
      * Fix test
      
      * Add some logging
      
      * Some docs
      
      * Some fixups and clean ups
      
      * Fix benchmark
      
      * Remove unneeded file
      
      * Use git for patching
      
      * Make CI happy
      
      * Update primitives/trie/Cargo.toml
      
      Co-authored-by: default avatarKoute <[email protected]>
      
      * Update primitives/state-machine/src/trie_backend.rs
      
      Co-authored-by: default avatarcheme <[email protected]>
      
      * Introduce new `AsTrieBackend` trait
      
      * Make the LocalTrieCache not clonable
      
      * Make it work in no_std and add docs
      
      * Remove duplicate dependency
      
      * Switch to ahash for better performance
      
      * Speedup value cache merge
      
      * Output errors on underflow
      
      * Ensure the internal LRU map doesn't grow too much
      
      * Use const fn to calculate the value cache element size
      
      * Remove cache configuration
      
      * Fix
      
      * Clear the cache in between for more testing
      
      * Try to come up with a failing test case
      
      * Make the test fail
      
      * Fix the child trie recording
      
      * Make everything compile after the changes to trie
      
      * Adapt to latest trie-db changes
      
      * Fix on stable
      
      * Update primitives/trie/src/cache.rs
      
      Co-authored-by: default avatarcheme <[email protected]>
      
      * Fix wrong merge
      
      * Docs
      
      * Fix warnings
      
      * Cargo.lock
      
      * Bump pin-project
      
      * Fix warnings
      
      * Switch to released crate version
      
      * More fixes
      
      * Make clippy and rustdocs happy
      
      * More clippy
      
      * Print error when using deprecated `--state-cache-size`
      
      * 🤦
      
      
      
      * Fixes
      
      * Fix storage_hash linkings
      
      * Update client/rpc/src/dev/mod.rs
      
      Co-authored-by: default avatarArkadiy Paronyan <[email protected]>
      
      * Review feedback
      
      * encode bound
      
      * Rework the shared value cache
      
      Instead of using a `u64` to represent the key we now use an `Arc<[u8]>`. This arc is also stored in
      some extra `HashSet`. We store the key are in an extra `HashSet` to de-duplicate the keys accross
      different storage roots. When the latest key usage is dropped in the lru, we also remove the key
      from the `HashSet`.
      
      * Improve of the cache by merging the old and new solution
      
      * FMT
      
      * Please stop coming back all the time :crying:
      
      * Update primitives/trie/src/cache/shared_cache.rs
      
      Co-authored-by: default avatarArkadiy Paronyan <[email protected]>
      
      * Fixes
      
      * Make clippy happy
      
      * Ensure we don't deadlock
      
      * Only use one lock to simplify the code
      
      * Do not depend on `Hasher`
      
      * Fix tests
      
      * FMT
      
      * Clippy 🤦
      
      
      
      Co-authored-by: default avatarcheme <[email protected]>
      Co-authored-by: default avatarKoute <[email protected]>
      Co-authored-by: default avatarArkadiy Paronyan <[email protected]>
      73d9ae32
  23. Aug 17, 2022
  24. Aug 15, 2022
  25. Aug 14, 2022
  26. Aug 10, 2022
    • Muharem Ismailov's avatar
      Transaction payment runtime api: query call info and fee details (#11819) · e41b9091
      Muharem Ismailov authored
      * Transaction payment RPC calls: query call info
      
      * transaction payment pallet - runtime api - add query_call info and fee_details
      
      * remove unused deps
      
      * separate call runtime api
      
      * undo fmt for unchanged code
      
      * system config call bounded to GetDispatchInfo, drop Call generic for query call info/fee
      
      * impl GetDispatchInfo for Extrinsics within runtime test-utils
      
      * introduced runtime api methods accept encoded Call instead of Call type
      
      * replace Bytes by Vec, docs for for new api, drop len argument, drop GetDispatchInfo bound from system_Config::Call
      
      * clean up toml and extra impl for dropped bound
      
      * panic if Call can not be decoded
      
      * revert to d43ba2f
      
      * fmt and docs
      
      * rustfmt
      e41b9091