cheme
ade667f928
State machine local child root cache. ( #9107 )
...
* cache root for child api.
* minimal testing
* Reset cache on test 'set_root'.
* Update primitives/state-machine/src/trie_backend_essence.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update primitives/state-machine/src/trie_backend_essence.rs
* Update primitives/state-machine/src/trie_backend_essence.rs
* Renaming to 'reset_cache'.
* correct rust fmt
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-07-23 11:30:00 +00:00
Alex Pozhylenkov
fc2dd61f14
Staking refactor. Change *_or() to *_or_else() ( #9400 )
...
* update
* update
* update
* fix fmt
2021-07-23 11:06:18 +00:00
Squirrel
b3d16c9442
example typo ( #9416 )
...
* Think these types should be switched reading the doc.
* Update frame/support/procedural/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-07-23 09:15:39 +00:00
Kian Paimani
c2e246d372
Estimate call fee ( #9395 )
...
* Estimate call fee
* More fix
* Fix
* Update frame/support/src/traits/misc.rs
Co-authored-by: Zeke Mostov <32168567+emostov@users.noreply.github.com >
* try and fix fmt stuff
* fmt aain
Co-authored-by: Parity Benchmarking Bot <admin@parity.io >
Co-authored-by: Zeke Mostov <32168567+emostov@users.noreply.github.com >
2021-07-23 08:53:32 +00:00
Logan Saether
d18c6a5200
Add Zeitgeist ss58 prefix 73 reservation ( #8509 )
2021-07-22 20:53:57 -04:00
Xiliang Chen
b0857ce226
add CheckedRem ( #9412 )
...
* add CheckedRem
* fix
2021-07-22 12:59:23 +00:00
Squirrel
aafe64315a
Remove extra commas made redundent after rustfmt ( #9404 )
...
* Remove extra commas made redundent after rustfmt
2021-07-22 11:06:17 +01:00
Guillaume Thiolliere
e18f388dac
Benchmarking also benchmark for decoding the call ( #9343 )
...
* benchmark for decoding of call
* better names
* fix benchmarks
* cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_lottery --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/lottery/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_utility --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/utility/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_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
Co-authored-by: Parity Benchmarking Bot <admin@parity.io >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-07-22 09:29:44 +00:00
Arkadiy Paronyan
c5f5c9c28c
Fix db metadata updates for existing headers ( #9403 )
...
* Fix metadata updates on existing headers
* Fail set_head on ancient blocks
* Fmt unrelated code
2021-07-21 20:35:58 +00:00
Zeke Mostov
ec6d711b38
Run cargo +nightly fmt ( #9406 )
2021-07-21 20:35:24 +00:00
Bastian Köcher
7b56ab15b4
Run cargo fmt on the whole code base ( #9394 )
...
* 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: André Silva <andrerfosilva@gmail.com >
2021-07-21 14:32:32 +00:00
Bastian Köcher
d451c38c1c
Fix custom on runtime upgrade not being called ( #9399 )
...
When the `Executive` was used through the `ExecuteBlock` trait, the
custom on runtime upgrade wasn't called. This happened because we forgot
to forward the type and it instead used default type `()` that doesn't
do anything. This pr fixes it by forwarding the type and also adds a
regression test.
2021-07-20 22:20:34 +00:00
Denis Pisarev
f6b5c7c3f0
CI: fix docs pub ( #9341 )
...
* CI: debug
* CI: debug aws sync
* exclude locfile
* exclude locfile 2
* exclude doesn't work
* root files
* CI: remove lockfile
* CI: satisfy aws cli
* CI: typo
* CI: undebug
* CI: undebug docs jobs
2021-07-20 18:37:58 +02:00
Alexander Popiak
f538174847
Balance to Asset Balance Conversion ( #9076 )
...
* add BalanceConversion trait and implementation
* derive some useful traits on Imbalance
* Update frame/support/src/traits/tokens/fungibles/imbalance.rs
Co-authored-by: Xiliang Chen <xlchen1291@gmail.com >
* make BalanceConversion error type configurable
* add RuntimeDebug import and derive traits on other Imbalance
* formatting
* move BalanceConversion trait to frame-support
* add necessary trait import
Co-authored-by: Xiliang Chen <xlchen1291@gmail.com >
2021-07-20 14:55:54 +00:00
Xiliang Chen
e17a014627
include dispatch result in the Executed event ( #9315 )
...
* include dispatch result in the Executed event
* fix
* trigger CI
2021-07-20 14:40:11 +00:00
Bastian Köcher
2b282a9435
Remove IncRefError, DecRefError and StoredMapError ( #9384 )
...
All of them are a subset of `DispatchError` anyway, no need to have
special errors IMHO.
2021-07-20 10:39:26 +02:00
Ashley
6d9e05cb9a
Add a rustfmt.toml ( #8982 )
...
* Force push to clean up PR mess
* Update rustfmt.toml
Co-authored-by: Squirrel <gilescope@gmail.com >
* Run `cargo fmt` again with Giles' changes
* Unformat utils
Co-authored-by: Squirrel <gilescope@gmail.com >
2021-07-19 13:43:08 +00:00
Pierre Besson
b5d30e8cfb
remove the kubernetes helm chart ( #9364 )
2021-07-19 11:42:47 +02:00
Antoine Estienne
21f3edea68
change moonbeam to secp256k1 ( #9337 )
2021-07-19 07:38:44 +00:00
Falco Hirschenberger
76a289ebd8
Add missing #[pallet::constant] annotations to pallets ( #9367 )
...
fixing #9306
2021-07-18 18:27:39 +00:00
Keith Yeung
2dcbad535b
Generate storage info for treasury pallet ( #9368 )
2021-07-18 18:01:00 +00:00
Arkadiy Paronyan
5a65bf5515
Storage chains sync ( #9171 )
...
* Sync storage chains
* Test
* Apply suggestions from code review
Co-authored-by: cheme <emericchevalier.pro@gmail.com >
* Separate block body and indexed body
* Update client/db/src/lib.rs
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
Co-authored-by: cheme <emericchevalier.pro@gmail.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
2021-07-17 10:58:37 +02:00
Arkadiy Paronyan
f07a41e87d
Replace DB assertion with error ( #9362 )
...
* Replace DB assert with error
* Update client/db/src/lib.rs
Co-authored-by: cheme <emericchevalier.pro@gmail.com >
Co-authored-by: cheme <emericchevalier.pro@gmail.com >
2021-07-16 16:45:26 +00:00
Keith Yeung
3ce2bd3eec
Emit error when Config part is imported but without the std feature ( #9225 )
...
* Emit error when Config part is imported but without the std feature
* Add UI test for missing std feature on GenesisConfig
* Update frame/support/test/Cargo.toml
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Remove unused imports
* Unify all dummy party checker macros
* Fix
* Dispaly pallet_path::GenesisConfig instead of PalletConfig in error message
* Revert changes to construct_runtime_ui.rs
* Add additional parameter for dummy part checker macro
* Apply suggestions from code review
* fix master merge: update version
* update Cargo.lock
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
2021-07-16 14:07:19 +00:00
Guillaume Thiolliere
1e8035a273
Fix invalid link in doc ( #9351 )
...
* fix invalid link
* Update client/executor/common/src/runtime_blob/globals_snapshot.rs
* more fix
2021-07-16 07:24:26 +00:00
Alexander Theißen
76d147439a
contracts: Way to many locals where generated for benchmarks (fixed that) ( #9353 )
2021-07-15 12:02:32 +02:00
Qinxuan Chen
2e986dd352
Migrate pallet-mmr to the new pallet attribute macro ( #9181 )
...
* Migrate pallet-mmr to the new pallet attribute macro
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* fix typo
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* use instance macro
Co-authored-by: thiolliere <gui.thiolliere@gmail.com >
2021-07-14 21:30:31 +00:00
Arkadiy Paronyan
de2fdd15cb
Improve shared state cache contention ( #9321 )
2021-07-14 11:29:03 +00:00
Liu-Cheng Xu
5be9b3fc76
Impl InherentDataProviderExt for more tuples ( #9282 )
...
* Impl InherentDataProviderExt for more tuples
Currently the inherent data provider only supports up to 4 entries due to the limit of
InherentDataProviderExt, which is not enough for a chain with more than 4 inherent data providers.
This patch simply impls InherentDataProviderExt for more tuples.
* Nit
* Apply suggestions from code review
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
2021-07-14 10:23:03 +00:00
David
f5da2ecbeb
Upgrade remote-externalities to use jsonrpsee v0.3 ( #9342 )
2021-07-13 20:01:36 +00:00
chenwei
d1ebd9841e
Fix docs on generate_storage_alias!. ( #9314 )
...
* Fix docs on `generate_storage_alias!`.
* Update frame/support/src/lib.rs
* Update frame/support/src/lib.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
2021-07-13 10:43:57 +00:00
dependabot[bot]
ea7c79dac4
Bump async-trait from 0.1.48 to 0.1.50 ( #8977 )
...
Bumps [async-trait](https://github.com/dtolnay/async-trait ) from 0.1.48 to 0.1.50.
- [Release notes](https://github.com/dtolnay/async-trait/releases )
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.48...0.1.50 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-13 09:48:59 +00:00
dependabot[bot]
31011e7a03
Bump serde from 1.0.124 to 1.0.126 ( #9099 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.124 to 1.0.126.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.126 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-13 08:09:05 +00:00
Zeke Mostov
28bc39de85
Check for duplicate members in genesis of pallet-membership & pallet-collective ( #9325 )
...
* Ensure no duplicate members in collective and membership genesis
* Test build panics
* Massage comments
* Use btreeset
2021-07-13 08:01:11 +00:00
Zeke Mostov
56b8a89ea1
pallet-collective: Do not vote aye with propose ( #9323 )
...
* pallet-collective Add option to not vote `aye` with `propose`
* Test: propose_with_no_self_vote_works
* Param doc grammar
* Update benchmarks
* Revert changes
* Do note vote when proposing
* Update benchmarks
* Reduce diff on benchmarks
* Reduce diff on tests
* cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_treasury --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/treasury/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_treasury --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/treasury/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* manual bench
* manual bench 2
* cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_treasury --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/treasury/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_treasury --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/treasury/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_treasury --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/treasury/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_treasury --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/treasury/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_treasury --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/treasury/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_collective --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/collective/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* motion_with_no_votes_closes_with_disapproval
* cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_collective --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/collective/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_treasury --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/treasury/src/weights.rs --template=./.maintain/frame-weight-template.hbs
Co-authored-by: Parity Bot <admin@parity.io >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmal.com >
2021-07-13 07:34:54 +00:00
Qinxuan Chen
e256877eb0
Migrate pallet-treasury to the new pallet attribute macro ( #9197 )
...
* Migrate pallet-treasury to the new pallet attribute macro
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix bounties/tips tests
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* fix
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Update frame/treasury/src/lib.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Update frame/treasury/src/lib.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* use `GenesisBuild`
* fix imports
Co-authored-by: thiolliere <gui.thiolliere@gmail.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-07-13 07:26:58 +00:00
Alexander Theißen
e01ac8cea0
contracts: Allow contracts to dispatch calls into the runtime ( #9276 )
...
* contracts: Allow contracts to dispatch calls into the runtime
* Fix RPC tests
* Fix typo
* Replace () by AllowAllFilter and DenyAllFilter
* Add rust doc
* Fixup for `()` removal
* Fix lowest gas calculation
* Rename AllowAllFilter and DenyAllFilter
* Updated changelog
2021-07-12 20:40:27 +00:00
Seun Lanlege
2f31602896
Update test-runner api ( #9302 )
...
* better apis
* ....
* ...
* Genensis -> UnimportedGenesis
* adds rpc for runtime upgrades
* simplify test-runner
* clean up test-runner api
* remove unused imports
* fix doc-test
* fix line width
* correct Node::clean
* correct Node::clean
* add deny rules
* remove unused extern crates
* remove mutex from node
* Update test-utils/test-runner/Cargo.toml
Co-authored-by: Andronik Ordian <write@reusable.software >
* adds docs, removes Node::clean
Co-authored-by: Andronik Ordian <write@reusable.software >
Co-authored-by: Seun Lanlege <seun@parity.io >
2021-07-12 16:56:12 +01:00
Kian Paimani
47b7edde68
Store election snapshot in a more memory-friendly way. ( #9275 )
...
* Store election snapshot in a more memory-friendly way.
* fix
* re-order benchmarks
* Update frame/election-provider-multi-phase/src/lib.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* 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
* remove todo
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
Co-authored-by: Parity Bot <admin@parity.io >
2021-07-12 14:35:57 +00:00
Guillaume Thiolliere
4856b6fcf4
Remove impl_outer_ macros ( #9307 )
...
* remove impl_outer_*
* continue to reexport some unsigned in order not to break users
2021-07-12 08:50:50 +00:00
Benjamin Kampmann
c78c2892a4
Attempting to fix publishing ( #9140 )
...
* mark template and utils as non-publish
* switch to development version for testing
* activate unleash check
* maybe if I disable all rules...
* Fix isolated compilation of `max-encoded-len-derive` with `syn`
error[E0369]: binary operation `==` cannot be applied to type `syn::Path`
--> src/lib.rs:88:29
|
88 | .filter(|attr| attr.path == parse_quote!(max_encoded_len_crate))
| --------- ^^ ----------------------------------- _
| |
| syn::Path
error: aborting due to previous error
For more information about this error, try `rustc --explain E0369`.
Error: could not compile `max-encoded-len-derive`
* WIP: bump changes crates since v3 tag to next breaking
cargo unleash version bump-breaking --changed-since v3.0.0
cargo unleash version set-pre dev --changed-since v3.0.0
FIXME: Don't modify crates that are not yet released, e.g.
`max-encoded-len-derive`
* Update lockfile
* WIP: Bump sp-transaction-pool as well
* WIP: Bump sp-offchain as well
* WIP: Bump frame-system-rpc-runtime-api as well
* WIP: Bump sp-authority-discovery as well
* Manually deactivate dev-deps before `cargo unleash check`
Otherwise we run into `Cycle detected` error.
* Bump sp-consensus-slots
* Add missing Cargo.lock change
* Bump sp-consensus-vrf as well
* Bump sp-keyring as well
* Bump sp-consensus-pow as well
* Try to speed up the `unleash-check` job
Previously, the job took 106 minutes - let's see if explicitly
specifying a `CARGO_TARGET_DIR` will help
* fixup: Ensure the temp target dir exists for unleash check
* Bump pallet-transaction-payment-rpc-runtime-api as well
Needed for Polkadot
* Bump pallet-transaction-payment-rpc as well
Needed for Polkadot
* Try updating crates after patching in the Polkadot CI job
* Use another approach to update patched Substrate crates
* Try to update all sp-core versions in Polkadot CI job
* Simplify sp-core version checking
* Apply another shellcheck lint
* Just do the simplest thing I guess
* Welp don't do --offline then
* Clean up `unleash-check` job triggers
Co-authored-by: Denis Pisarev <denis.pisarev@parity.io >
* Fix a note in unleash-check cache step
* Add a note about temporary optimization in cargo-unleash
* Pin a newer version of cargo-unleash
Co-authored-by: Igor Matuszewski <xanewok@gmail.com >
Co-authored-by: Denis Pisarev <denis.pisarev@parity.io >
2021-07-11 12:17:53 +00:00
Kian Paimani
3850a43323
Make election benchmarks more *memory-aware* ( #9286 )
...
* 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: Parity Bot <admin@parity.io >
2021-07-09 19:55:31 +00:00
Peter Goodspeed-Niklaus
9fc86cb55f
make submit_unsigned into DispatchClass::Operational ( #9309 )
...
Closes #8511 .
2021-07-08 17:04:38 +00:00
Seun Lanlege
2ae9d36758
sc-transcation-pool refactor ( #9228 )
...
* Use TransactionPool trait
* sc-transaction-pool-primitives
* sc-transaction-pool-api
* TP
* bye sc_transaction_graph
* fix line widths
* fix import errors
* fix import errors
* fix import errors 🤦🏾♂️
* fix import errors 🤦🏾♂️ 🤦🏾♂️ 🤦🏾♂️
* remove sp-keyring
2021-07-08 13:33:34 +00:00
Keith Yeung
721a3b9e9c
Ensure data size of identity pallet is bounded ( #9168 )
...
* Ensure data size of identity pallet is bounded
* Fix unit tests for identity pallet
* Move identity pallet custom types into its own module
* Make use of NoBound family traits
* Fix identity pallet benchmarks
* Enumerate type imports
* Properly convert to BoundedVec in benchmarks
* Re-export types
* Use BoundedVec when storing sub identities
* Add generate_storage_info
* Manually implement MaxEncodedLen on select types
* Use ConstU32 instead of parameter_type
* Leverage DefaultNoBound and add some comments
* Use max_encoded_len() instead of hardcoded constant
* Use MaxEncodedLen in parity-scal-codec
* Add get_mut method for WeakBoundedVec
* Use expect on an infallible operation
* Rewrite as for loop
2021-07-08 02:57:26 +00:00
Shawn Tabrizi
b42b8fc5fb
Include StorageInfo in Benchmarking Pipeline ( #9090 )
...
* 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: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* 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: Parity Bot <admin@parity.io >
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
2021-07-07 22:06:06 +00:00
Benjamin Kampmann
e0ad91ed95
Update stale.yml ( #9305 )
2021-07-07 23:42:33 +02:00
Benjamin Kampmann
d154b477ef
Activate stale bot ( #9272 )
2021-07-07 14:33:38 +02:00
Bastian Köcher
86ab838b17
Keep current block randomness in state ( #9294 )
...
* Keep current block randomness in state
Instead of killing it at the end of the block, it stays in the block for
inspection. This is required by parachains to get access to this
randomness of the relay chain.
* Fix tests
2021-07-07 11:44:05 +00:00
Bastian Köcher
7bbf949296
Clean up sc-allocator ( #9295 )
2021-07-07 13:11:31 +02:00