Davide Galassi
40c36c0c8a
Move grandpa crates to consensus folder ( #13458 )
...
* Move grandpa under consensus dir
* Rename grandpa folder
* Finish grandpa renaming
* Minor tweaks
* Cargo fmt
* Adjust path to chain spec
2023-02-27 17:15:08 +01:00
Mira Ressel
5b34341e51
Automatically format ci pipeline specs with prettier ( #2229 )
2023-02-27 16:09:58 +04:00
Mira Ressel
f019376cb1
Automatically format ci pipeline specs with prettier ( #6783 )
2023-02-27 15:34:54 +04:00
Egor_P
9fa8786e29
Tests + backport fix for teleport_assets (ReceiveTeleportedAsset) ( #2235 ) ( #2238 )
...
* Wwstmint test for ReceiveTeleportedAsset
* Missing fix for `weigh_multi_assets`
* Added tests for statemine/statemint
* [Enhancement] Use XCM V3 for initiate_teleport weight calc (#2102 )
* [Enhancement] Use XCM V3 for initiate_teleport weight calc
* deref
* replicate in all the runtimes
* fmt
* better handling for AllOf
* fmt
* small type fix
* replicate the fix for all runtimes
---------
Co-authored-by: parity-processbot <>
* removed `frame_support::sp_tracing::try_init_simple();`
* Review fixes
* Removed `as u64`
---------
Co-authored-by: Branislav Kontur <bkontur@gmail.com >
Co-authored-by: Roman Useinov <roman.useinov@gmail.com >
2023-02-27 11:28:40 +00:00
Milos Kriz
672b53ead6
Add gatotech bootnodes to system chains ( #2237 )
...
* add gatotech bootnode to Polkadot's Statemint
* add gatotech bootnode to Polkadot's Collectives
* add gatotech bootnode to Kusama's Statemine
* add gatotech bootnode to Kusama's Bridge Hub
* add gatotech bootnode to Westend's Westmint
* add gatotech bootnode to Westend's Collectives
2023-02-27 12:13:59 +01:00
Koute
91c595bc78
Further storage iterator refactoring ( #13445 )
...
* Remove `Backend::apply_to_key_values_while`
* Add `IterArgs::start_at_exclusive`
* Use `start_at_exclusive` in functions which used `Backend::apply_to_key_values_while`
* Remove `Backend::apply_to_keys_while`
* Remove `for_keys_with_prefix`, `for_key_values_with_prefix` and `for_child_keys_with_prefix`
* Remove unnecessary `to_vec` calls
* Fix unused method warning in no_std
* Remove unnecessary import
* Also check proof sizes in the test
* Iterate over both keys and values in `prove_range_read_with_size` and add a test
2023-02-27 10:45:42 +00:00
Anton
bb00b262d7
[client/network] Remove unused argument ( #13444 )
...
* improve error message
* removed unused argument
* docs: disconnect_peer_inner no longer accepts `ban`
* remove redundant trace message
```
sync: Too many full nodes, rejecting 12D3KooWSQAP2fh4qBkLXBW4mvCtbAiK8sqMnExWHHTZtVAxZ8bQ
sync: 12D3KooWSQAP2fh4qBkLXBW4mvCtbAiK8sqMnExWHHTZtVAxZ8bQ disconnected
```
is enough to understand that we've refused to connect to the given peer
* Revert "removed unused argument"
This reverts commit c87f755b1fd03494fb446b604fe25c2418da7c87.
* ban peer for 10s after disconnect
* do not accept incoming conns if peer was banned
* Revert "do not accept incoming conns if peer was banned"
This reverts commit 7e59d05975765f2547468e9dcfd1361516c41e06.
* Revert "ban peer for 10s after disconnect"
This reverts commit 3859201ced42a5b2d18c0600e29efd20962a7289.
* Revert "Revert "removed unused argument""
This reverts commit f1dc623646dc5a69e1822c35f428e90dffe34d95.
* format code
* Revert "remove redundant trace message"
This reverts commit a87e65f08553dbe69027e9aa4f7ca4779ccaa7f2.
2023-02-27 10:43:15 +00:00
Liu-Cheng Xu
1d5ea509d0
Support the subscription of every imported block ( #13372 )
...
* Support the subscription of every import block
Close #13315
* Clean up any closed block import notification sinks
* Apply review suggestions
* Nit
* `every_block_import_notification_sinks` -> `every_import_notification_sinks`
* Apply review suggestions
2023-02-27 09:02:54 +00:00
Paulo Martins
6cf707969c
add turboflakes system-chains bootnodes ( #2223 )
2023-02-26 23:00:47 +00:00
Oliver Tale-Yazdi
16773d3696
Yieldable queues for pallet MessageQueue ( #13424 )
...
* Add Yield message processing error
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add NoopServiceQueues
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Implement temporary error aka Yield
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Make NoopMessageProcessor generic
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Mock pausable message processor
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Test paused queues
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Integration test paused queues
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Use WeightMeter instead of weight return
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* fix
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Make compile
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add tests
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_message_queue
* Fix test
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: command-bot <>
2023-02-25 16:13:20 +00:00
Keith Yeung
3df2893bae
Ensure max_weight is assigned properly in AllowTopPaidExecutionFrom ( #6787 )
2023-02-25 16:37:56 +01:00
Bradley Olson
92ee0b7d9f
Explicitly Handling ProvisionableData Cases ( #6757 )
...
* Initial pass
* fmt
* Lock changes
* Implementers guide edit
* Reasoning changes
* typo
Co-authored-by: Marcin S. <marcin@bytedude.com >
* Revert "Lock changes"
This reverts commit 3131a5245c6349743789270e6d1ad7842dc4c9df.
* Getting rid of cargo.lock changes
* Argumentation update
* fmt
---------
Co-authored-by: Marcin S. <marcin@bytedude.com >
2023-02-24 21:54:14 +01:00
Mira Ressel
84638524e7
Automatically format ci pipeline specs with prettier ( #13441 )
...
* [ci] Deduplicate variables: sections in pipeline specs
The prettier yaml parser doesn't like these.
* [ci] provide git clean filter to format pipeline specs
* [ci] Reformat pipeline specs with prettier
2023-02-24 15:02:30 +00:00
Bastian Köcher
1e291f30f4
Companion for Substrate#12520 ( #6730 )
...
* Companion for Substrate#12520
https://github.com/paritytech/substrate/pull/12520
* Fix
* update lockfile for {"substrate"}
---------
Co-authored-by: parity-processbot <>
2023-02-24 12:47:41 +00:00
Bastian Köcher
941288c6d0
wasm-executor: Support growing the memory ( #12520 )
...
* As always, start with something :P
* Add support for max_heap_pages
* Add support for wasmtime
* Make it compile
* Fix compilation
* Copy wrongly merged code
* Fix compilation
* Some fixes
* Fix
* Get stuff working
* More work
* More fixes
* ...
* More
* FIXEs
* Switch wasmi to use `RuntimeBlob` like wasmtime
* Removed unused stuff
* Cleanup
* More cleanups
* Introduce `CallContext`
* Fixes
* More fixes
* Add builder for creating the `WasmExecutor`
* Adds some docs
* FMT
* First round of feedback.
* Review feedback round 2
* More fixes
* Fix try-runtime
* Update client/executor/wasmtime/src/instance_wrapper.rs
Co-authored-by: Koute <koute@users.noreply.github.com >
* Update client/executor/common/src/wasm_runtime.rs
Co-authored-by: Koute <koute@users.noreply.github.com >
* Update client/executor/common/src/runtime_blob/runtime_blob.rs
Co-authored-by: Koute <koute@users.noreply.github.com >
* Update client/executor/common/src/wasm_runtime.rs
Co-authored-by: Koute <koute@users.noreply.github.com >
* Update client/allocator/src/freeing_bump.rs
Co-authored-by: Koute <koute@users.noreply.github.com >
* Update client/allocator/src/freeing_bump.rs
Co-authored-by: Koute <koute@users.noreply.github.com >
* Feedback round 3
* FMT
* Review comments
---------
Co-authored-by: Koute <koute@users.noreply.github.com >
2023-02-24 11:43:01 +00:00
Jegor Sidorenko
ab26b743f7
Companion for #13349 ( #2217 )
...
* Companion for #13349
* Add missing line
* Cargo.lock
---------
Co-authored-by: parity-processbot <>
2023-02-24 08:24:28 +00:00
Gonçalo Pestana
c848d40775
Revert "Abstracts elections-phragmen pallet to use NposSolver ( #12588 )" ( #13451 )
...
This reverts commit b793666ca5 .
2023-02-23 12:15:08 -06:00
Javier Viola
5c9cd167df
bump zombienet version to v1.3.35 ( #2226 )
...
* update zombienet version
* remove 'is up' assertions
2023-02-23 13:49:18 -03:00
Daniel Shiposha
4af011f418
Nfts attribute read interface ( #13349 )
...
* feat: add custom and system attributes to Inspect
* feat: add nfts runtime api
* fix: pass std feature to runtime api
* fix: api copyright
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
---------
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
2023-02-23 15:06:12 +00:00
Sergejs Kostjucenko
2568c6d48b
Move rules into common place ( #13428 )
2023-02-23 16:53:03 +02:00
Gonçalo Pestana
b793666ca5
Abstracts elections-phragmen pallet to use NposSolver ( #12588 )
...
* Abstracts elections-phragmen pallet to use NposSolver
* Update frame/elections-phragmen/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/elections-phragmen/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* changes the name of the pallet; adds changelog
* update changelog
* Adds weight testing
* Adds log macro_rules
* renames elections-phragment dir to elections
* weights rename
* fixes typo in cargo toml
* pre/post solve weight scafolding
* refactor do_post_election
* refactors into pre and post election solve for independent benchmarking
* deconstructs PreElectionResults struct
* updates benchmarking pre and post election solve; mock weights
* Update frame/elections/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/elections/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* addresses PR comments
* adds pre_solve and post_sove weights
* Adds comments on election pallet id param name change
* ".git/.scripts/bench-bot.sh" pallet dev pallet_elections
* Finishes pre-post solve weights
* Update frame/elections/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/elections/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Addresses PR comments: no panic in on_init path; nits
* Fixes node build
* Implements approval voting to use as a `NposSolver` (#13367 )
* Implements the approval voting methods in sp_npos_elections
* fmt
* remove unecessary file
* comment clarification
* re-run weights
* fix typo
* updates MaxVoters in tests for integrity_tests to pass
* Refactors election provider support benchmarks outside its own crate (#13431 )
* Refactors election provider support benchmarks outside its own crate
---------
Co-authored-by: command-bot <>
---------
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: parity-processbot <>
Co-authored-by: Ross Bulat <ross@parity.io >
2023-02-23 11:21:00 +00:00
Koute
17e055e594
Bump wasmtime to 6.0.0 ( #13429 )
...
* Bump `wasmtime` to 6.0.0
* Disable cranelift egraphs
2023-02-23 10:56:11 +00:00
Oleg Plakida
5e7ade9037
Revert back to bare metal runners for weights generation ( #6762 )
...
* Revert back to bare metal runners for weights generation
* new old weights
---------
Co-authored-by: alvicsam <alvicsam@gmail.com >
2023-02-23 11:50:43 +01:00
Alexander Samusev
7e811c2c2f
[ci] Return benchmark to bm machines ( #2225 )
...
* [WIP][ci] Return benchmark to bm machines
* run build on docker machines
* restart pipeline
* rm docker runner
* fix refs
* add weights
* return ci
* fix asset benchmark
2023-02-23 11:50:38 +01:00
Louis Merlin
e5f65865fe
Improve XCM fuzzer ( #6190 )
...
* Add improved XCM fuzzer
* Add command for running a single input
* Add installation command
* Fix @m-cat's nit
* Add newline
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Add info about current directory in fuzzing README
* Update Cargo.lock
---------
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2023-02-23 08:59:03 +00:00
Muharem Ismailov
26b109bb82
Collectives chain xcm filter ( #2222 )
2023-02-23 02:24:01 +00:00
miss_k
020be2ff1c
Corrected weight trader comment ( #6752 )
...
* Corrected weight trader comment
* ".git/.scripts/commands/fmt/fmt.sh"
---------
Co-authored-by: command-bot <>
2023-02-22 23:19:37 +01:00
Mara Robin B
c5b5276f85
clean up executed migrations ( #6763 )
...
* kusama: clean up executed migrations
* polkadot: clean up executed migrations
* rococo: clean up executed migrations
* westend: clean up executed migrations
2023-02-22 17:39:55 +00:00
Derek Colley
7e95e75345
Add metaspan.io parachain boot nodes ( #2218 )
...
* Add metaspan.io parachain boot nodes
* Add metaspan.io parachain boot nodes
---------
Co-authored-by: Derek Colley <derek@metaspan.com >
2023-02-22 16:24:12 +01:00
Jegor Sidorenko
668e5d52c6
Companion for #13390 ( #2189 )
...
* Weights for offchain atrribute updates
* update lockfile for {"substrate", "polkadot"}
---------
Co-authored-by: parity-processbot <>
2023-02-22 14:28:24 +00:00
cheme
94d24de1a0
Remove state migration from westend runtime. ( #6737 )
...
* clean state_trie_migration from westend
* update cargo.lock
* Revert "clean state_trie_migration from westend"
This reverts commit b1d55c688e9a8a2fbd155f0a9ddaba9766ad101c.
* cleanup.
* use storage_alias
* Revert "use storage_alias"
This reverts commit 5289745d1592a14db0063d9ee111137473993f41.
* Revert "Revert "use storage_alias""
This reverts commit d4c688acdddf29a09c79a4eef52ab4095128e5b3.
* Force alias.
* magic
2023-02-22 14:21:44 +00:00
Sam Johnson
55ff791d80
generation of real benchmark functions for benchmarking v2 ( #13224 )
...
* function generation with _name working, need to modify signature
* WIP
* support custom BenchmarkResult<T> type
* full support for BenchmarkResult<T> on benchmark function defs
* support () return type for benchmark function defs that don't use ?
* uncomment
* fix where clause handling
* fix benchmark function call bodies
* proper parsing of return type
* add UI tests for bad return type
* fix detection of missing last_stmt with defined return type
* UI tests covering missing last_stmt
* properly detect and complain about empty benchmark function defs
* fix missing Comma in Result<T, BenchmarkError> parsing + test
* add additional UI test
* allow complex path for BenchmarkResult and BenchmarkError in fn defs
* add UI tests covering complex path for BenchmarkResult, BenchmarkError
* retain doc comments and attributes
* also add attributes to struct
* add docs for benchmark function definition support
* fix imports on benchmark example
* fix issue with unused variables in extrinsic call fn def
* fix up docs
* remove support for v2::BenchmarkResult because it was confusing
* fix typo
* remove ability to use custom T for Result<T, BenchmarkError> in v2
* use missing call error instead of empty_fn()
* remove unneeded match statement
* Add a proper QED
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* fix other QED
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* cargo fmt
* add an explicit error for non TypePath as return type
* tweak error warning and add a UI test for non TypePath return
* remove comment
* add docs about T and I generic params
* improve docs referring to section "below"
* pull out return type checking logic into its own function
* pull out params parsing into its own function
* pull out call_def parsing into its own function
* add doc comment for missing_call()
* replace spaces with tabs
* add a result-based example to the benchmarking examples
---------
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2023-02-22 14:09:11 +00:00
Jegor Sidorenko
af25310eb0
[NFTs] Update attributes with offchain signature ( #13390 )
...
* Allow to mint with the pre-signed signatures
* Another try
* WIP: test encoder
* Fix the deposits
* Refactoring + tests + benchmarks
* Add sp-core/runtime-benchmarks
* Remove sp-core from dev deps
* Enable full_crypto for benchmarks
* Typo
* Fix
* Update frame/nfts/src/mock.rs
Co-authored-by: Squirrel <gilescope@gmail.com >
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_nfts
* Add docs
* Add attributes into the pre-signed object & track the deposit owner for attributes
* Update docs
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_nfts
* Add the number of attributes provided to weights
* Support pre-signed attributes
* Update docs
* Fix merge artifacts
* Update docs
* Add more tests
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_nfts
* Update frame/nfts/src/types.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update types.rs
---------
Co-authored-by: Squirrel <gilescope@gmail.com >
Co-authored-by: command-bot <>
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
2023-02-22 13:50:40 +00:00
Ross Bulat
6bd19ac7f1
polkadot companion #12608 (Pools claim permissions) ( #6753 )
...
* update weights functions
* + placeholder weight
* ".git/.scripts/commands/bench/bench.sh" runtime polkadot-dev pallet_nomination_pools
* update weights
* update lockfile for {"substrate"}
---------
Co-authored-by: command-bot <>
2023-02-22 13:05:29 +00:00
Paulo Martins
1ae3c81126
Add Turboflakes bootnodes to Polkadot, Kusama and Westend ( #6628 )
2023-02-22 13:57:15 +01:00
Doordashcon
35a89957ca
permissionless bond_extra in nomination pools ( #12608 )
...
* create enum
* logic check
* add benchmarks
* -enum
* update
* bond extra other
* update
* update
* update
* cargo fmt
* Permissioned
* update
* cargo fmt
* update
* update index
* doc update
Co-authored-by: Ankan <10196091+Ank4n@users.noreply.github.com >
* doc update
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* cargo fmt
* bond_extra auto compound
* bond_extra_other
* Apply suggestions from code review
* Fixes from kian
* updates docs & test
* Update frame/nomination-pools/src/lib.rs
* Update frame/nomination-pools/src/lib.rs
* Update frame/nomination-pools/src/lib.rs
* Update frame/nomination-pools/src/lib.rs
* Update frame/nomination-pools/src/lib.rs
* Update frame/nomination-pools/src/tests.rs
* Update frame/nomination-pools/src/lib.rs
* Update frame/nomination-pools/src/tests.rs
* Update frame/nomination-pools/src/tests.rs
* Update frame/nomination-pools/src/tests.rs
* Update frame/nomination-pools/src/tests.rs
* Update frame/nomination-pools/src/tests.rs
* Update frame/nomination-pools/src/lib.rs
* Update frame/nomination-pools/src/tests.rs
* fixes + fmt
* expand ClaimPermissions + add benchmarks
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_nomination_pools
* tidy up claim payout benches
* fix
* + test: claim_payout_other_works
* comments, rename to set_claim_permission
* fix comment
* remove ClaimPermission on leave pool
* fix test
* ".git/.scripts/commands/fmt/fmt.sh"
* + test for ClaimPermissions::remove()
* impl can_bond_extra & can_claim_payout
---------
Co-authored-by: Ankan <10196091+Ank4n@users.noreply.github.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: kianenigma <kian@parity.io >
Co-authored-by: parity-processbot <>
Co-authored-by: Ross Bulat <ross@parity.io >
2023-02-22 12:17:11 +00:00
Koute
1b30ce5a9d
Companion for substrate#13284 ( #6653 )
...
* Align iterator use to new substrate
* update lockfile for {"substrate"}
---------
Co-authored-by: parity-processbot <>
2023-02-22 08:36:16 +00:00
Koute
f8e3bdad3d
Rework storage iterators ( #13284 )
...
* Rework storage iterators
* Make sure storage iteration is also accounted for when benchmarking
* Use `trie-db` from crates.io
* Appease clippy
* Bump `trie-bench` to 0.35.0
* Fix tests' compilation
* Update comment to clarify how `IterArgs::start_at` works
* Add extra tests
* Fix iterators on `Client` so that they behave as before
* Add extra `unwrap`s in tests
* More clippy fixes
* Come on clippy, give me a break already
* Rename `allow_missing` to `stop_on_incomplete_database`
* Add `#[inline]` to `with_recorder_and_cache`
* Use `with_recorder_and_cache` in `with_trie_db`; add doc comment
* Simplify code: use `with_trie_db` in `next_storage_key_from_root`
* Remove `expect`s in the benchmarking CLI
* Add extra doc comments
* Move `RawIter` before `TrieBackendEssence` (no code changes; just cut-paste)
* Remove a TODO in tests
* Update comment for `StorageIterator::was_complete`
* Update `trie-db` to 0.25.1
2023-02-22 07:49:25 +00:00
Daniel Shiposha
2f6e941caf
Companion for Substrate #13410 : Introduce EnsureOrigin to democracy.propose ( #6750 )
...
* feat: set SubmitOrigin in all affected runtimes
* update lockfile for {"substrate"}
---------
Co-authored-by: parity-processbot <>
2023-02-22 00:15:06 +00:00
Daniel Shiposha
236bbbd5ef
Introduce EnsureOrigin to democracy.propose ( #13410 )
...
* feat: add submitorigin to democracy
* fix: democracy tests
* fix: SubmitOrigin doc comment
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
---------
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2023-02-21 22:56:07 +00:00
Sergej Sakac
d5beaa5542
Glutton pallet ( #12833 )
...
* Pov-Limit pallet
* use Perbill & fixes
* fixes
* reads & writes
* update docs
* tests
* calculate weight
* fmt
* benchmark
* logic fix
* naming fix
* caclulate computation weight limit
* make the Hasher generic
* make the code compile
* generate weight
* fix on_idle
* fix
* fix
* make reading generic
* fix?
* fixes
* remove warning
* fix
* hasher fix :D
* change value
* test
* actual weight and expected weight are the same
* update
* fix
* add events
* remove useless line
* using actual hashing algorithm
* better readability
* fix nits
* Update
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* add migration
* hardcode proof_size in weights.rs
* format
* fixes
* Fix weight
* docs
* fix
* Update frame/pov-limit/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update frame/pov-limit/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* empty on_ilde & update weight.rs
* remove migration & fix benchmark
* remove migration from migrations
* initialize_pallet
* use blake2
* Update frame/pov-limit/Cargo.toml
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update frame/pov-limit/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update frame/pov-limit/Cargo.toml
Co-authored-by: Bastian Köcher <git@kchr.de >
* rename pallet
* make the wasters non-generic
* rename to glutton
* fix
* small fixes & run benchmark
* increase left over ref-time in tests
* Update frame/glutton/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* or values
* fix
* generate weight
* Update frame/glutton/Cargo.toml
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* fix nits
* Adjustments
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fixes
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* fix
* Update weights
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Tweak constants
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update weights
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* remove genesis config
* passing tests
* More precise results
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* update node-executor test
* Calculate number of iterations in advance
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* increase criteria
* Final fixes
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update frame/glutton/src/tests.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/glutton/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/glutton/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* fix typos
* Update frame/glutton/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update frame/glutton/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* expand/shrink
* fmt
* Revert "Update frame/glutton/src/lib.rs"
This reverts commit 98a237afd27de3deb15ba381871e12f71a9d71b1.
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Use CountedStorageMap
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add benchmark
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Use manual map counter
Something with the R/W count in the benchmarking result did not add
up. Need to investigate but for now just using a manual counter.
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Use new template
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Doc+typos
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_glutton
* Apply suggestions from code review
Co-authored-by: Koute <koute@users.noreply.github.com >
* Add minimal README
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_glutton
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Bastian Köcher <git@kchr.de >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: command-bot <>
Co-authored-by: Koute <koute@users.noreply.github.com >
2023-02-21 22:39:27 +00:00
Dan Shields
fbba510636
Update Template README ( #12741 )
...
* update README
remove matrix links
remove playground references (service reported as sunsetting)
OSPL rule per Docs style guide
* Apply suggestions from code review
Co-authored-by: Sacha Lansky <sacha@parity.io >
* Update README.md
* Apply suggestions from code review
Co-authored-by: lisa-parity <92225469+lisa-parity@users.noreply.github.com >
* (fix) chmod +x script
---------
Co-authored-by: Sacha Lansky <sacha@parity.io >
Co-authored-by: lisa-parity <92225469+lisa-parity@users.noreply.github.com >
Co-authored-by: parity-processbot <>
2023-02-21 22:24:23 +00:00
Michal Kucharczyk
749b078bac
BlockId removal: BlockBuilderProvider::new_block_at (#2219 )
...
* `BlockId` removal: `BlockBuilderProvider::new_block_at`
It changes the arguments of `BlockBuilderProvider::new_block_at` from:
`BlockId<Block>` to: `Block::Hash`
* update lockfile for {"polkadot", "substrate"}
* fix
---------
Co-authored-by: parity-processbot <>
2023-02-21 20:28:52 +00:00
Michal Kucharczyk
0e59d866f3
BlockId removal: BlockBuilderProvider::new_block_at (#6734 )
...
* `BlockId` removal: `BlockBuilderProvider::new_block_at`
It changes the arguments of `BlockBuilderProvider::new_block_at` from:
`BlockId<Block>` to: `Block::Hash`
* useless import removed
* update lockfile for {"substrate"}
---------
Co-authored-by: parity-processbot <>
2023-02-21 19:26:46 +00:00
Vivek Pandya
bc53b9a03a
Remove years from copyright notes. ( #13415 )
...
* Change copyright year to 2023 from 2022
* Fix incorrect update of copyright year
* Remove years from copy right header
* Fix remaining files
* Fix typo in a header and remove update-copyright.sh
2023-02-21 18:46:41 +00:00
Michal Kucharczyk
5ef88dd398
BlockId removal: BlockBuilderProvider::new_block_at (#13401 )
...
* `BlockId` removal: `BlockBuilderProvider::new_block_at`
It changes the arguments of `BlockBuilderProvider::new_block_at` from:
`BlockId<Block>` to: `Block::Hash`
* fmt
* fix
* more fixes
2023-02-21 18:36:00 +00:00
Oliver Tale-Yazdi
cd299d2b45
Add defensive_assert! macro ( #13423 )
...
* Add defensive_assert macro
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Apply review suggestions
Co-authored-by: Bastian Köcher <git@kchr.de >
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-02-21 17:03:17 +00:00
Gonçalo Pestana
82b6db41e8
Companion PR for PR#13119 ( #6683 )
...
* Companion PR for PR#13119
* restart ci
* update lockfile for {"substrate"}
* Use Master Cargo.lock
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* cargo update -p sp-io
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Use Master Cargo.lock
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* cargo update -p sp-io
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: parity-processbot <>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-02-21 12:56:13 +00:00
Ross Bulat
00e159f770
Nomination Pools: Rename state-toggler to bouncer ( #13421 )
...
* rename state-toggler to bouncer
* add migration
* fmt
* bump storage version
* rm migration
* revert version
* ".git/.scripts/commands/fmt/fmt.sh"
---------
Co-authored-by: command-bot <>
2023-02-21 11:39:52 +00:00
Adrian Catangiu
09df3f1ec8
Companion for Substrate#13411: frame/beefy: prune entries in set id session mapping ( #6743 )
...
* rococo-runtime: configure pallet_beefy::MaxSetIdSessionEntries
* update lockfile for {"substrate"}
---------
Co-authored-by: parity-processbot <>
2023-02-21 11:30:19 +00:00