Nazar Mokrynskyi
798e01bf9b
Account for transaction priority when enforcing limits ( #10388 )
...
* Account for transaction priority when enforcing limits
* Improve `enforce_limits` comment
* Explanation comment on why comparison impl is not used for limit enforcement
2021-12-02 23:17:23 +00:00
Kian Paimani
e9a7dc3ca6
Minimum commission for validators ( #10347 )
...
* Minimum commission for validators
* rename
* Fix benchmakrs
* 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
* Update frame/staking/src/pallet/mod.rs
* 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
Co-authored-by: Parity Bot <admin@parity.io >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-12-02 08:11:10 +00:00
Alex Pozhylenkov
1d19c7dc7f
Move EnsureOneOf into the dispatch.rs, make an interface more general ( #10379 )
...
* move EnsureOneOf into the dispatch.rs, make an interface more general
* Update frame/support/src/traits/dispatch.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-12-01 21:31:57 +00:00
Seun Lanlege
a18749d315
Make BEEFY payload extensible ( #10307 )
...
* make BEEFY payload extensible
* cargo fmt
* cargo fmt
* remove generic payload param in beefy-primitives
* cargo fmt
* Apply suggestions from code review
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* adds Paylaod Type
* remove hex
* fix tests
* Apply suggestions from code review
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* use binary_search_by to sort
* Payload::new()
* fix tests
* Apply suggestions from code review
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* fix tests
* cargo fmt
* fix get_decoded
* fix test
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
2021-12-01 11:45:36 +00:00
zjb0807
db37fb04e8
use double quotes instead of single quotes & upgrade 2021 ( #10398 )
2021-12-01 05:37:30 +00:00
Guillaume Thiolliere
db28ba9dfd
Fix order of hook execution ( #10043 )
...
* fix order
* Update frame/support/procedural/src/construct_runtime/mod.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* format
* more accurate description
* format
* better explicit types
* fix tests
* address feedback
* add a type to ease non breaking implementation
* add comment about constraint
* fix test
* add test for generated types
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
2021-12-01 00:59:09 +00:00
Enoch Chejieh
d58aeb040a
Add pallet names to Events ( #10296 )
...
* chore: add pallet names to events
* chore: add pallet names to events
* chore: add pallet names to events
* chore: add pallet names to events
* chore: add pallet names to events
* chore: add pallet names to events
* chore: add pallet names to events
* chore: add pallet names to events
* chore: add pallet names to events
* chore: add pallet names to events
* chore: add pallet names to events
* chore: add pallet names to events
* chore: add pallet names to events
* chore: add pallet names to events
* chore: formatted pallet name changes in events
* chore: formatted pallet name changes in events
* chore: formatted pallet name changes in events
* chore: formatted pallet name changes in events
* chore: formatted pallet name changes in events
* chore: formatted pallet name changes in events
* chore: formatted pallet name changes in events
* chore: formatted pallet name changes in events
* chore: formatted pallet name changes in events
* fix: add fix to tests for event variants
* chore: modified comments for event variants
* chore: modified comments for event variants
* chore: modified comments for event variants
* chore: modified comments for event variants
* chore: modified system pallet event variants
* chore: modified system pallet event variants
* chore: modified system pallet event variants
* chore: modified system pallet event variants
* chore: modified system pallet event variants
* chore: modified system pallet event variants
* chore: modified system pallet event variants
* chore: modified system pallet event variants
* chore: modified system pallet event variants
* chore: updated transaction-storage pallet event variants
* chore: updated transaction-storage pallet event variants
* chore: formatted contracts pallet
* chore: update treasury event variants
2021-11-30 21:03:06 +01:00
zjb0807
b5ed64684d
Add runtime-benchmarks for frame-benchmarking ( #10324 )
...
* update frame/benchmarking/src/baseline.rs
* add runtime-benchmarks feature
* add runtime-benchmarks for frame-benchmarking
* update frame-benchmarking/runtime-benchmarks
* trigger GitHub actions
2021-11-30 14:15:52 +01:00
Joshy Orndorff
a01004e143
Add vote and seconded events to Democracy pallet. ( #10352 )
...
* add the events
* spec_version
* Update bin/node/runtime/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Alan Sapede <alan.sapede@gmail.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2021-11-30 14:02:32 +01:00
ferrell-code
9418860126
Tips Benchmarking to be Runtime Agnostic ( #10368 )
...
* use config traits instead of constants
* bounties too
* do bounties too
* update docs
2021-11-29 18:38:07 +00:00
Guillaume Thiolliere
d91125389a
ignoring errors and some fix ( #10344 )
2021-11-29 08:16:23 +00:00
Kian Paimani
2fafb9546e
Reduce the execution time of some tests ( #10377 )
...
* Reduce the execution time of some tests
* Fix
* Fix build
* fmt
2021-11-28 12:47:33 +00:00
Keith Yeung
1fed3540ba
Update W3F URL links ( #10374 )
2021-11-26 08:58:00 +00:00
dharjeezy
e0c47c48b2
remove base weight annotations ( #10373 )
...
* remove base weight annotations
* Update frame/scheduler/src/lib.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Damilare <dakinlose@teamapt.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-11-26 04:38:21 +00:00
Andreas Doerr
f12e22a62d
BEEFY add tests for rounds (#10328 )
...
* new_rounds()
* WIP
* test add_vote()
* test drop()
* learn to spell
* go get some coffee
* cargo fmt
* lump everythings together again
2021-11-25 11:26:10 +01:00
Shawn Tabrizi
a33b7c2e36
REAL fix for min-square for --steps=1 --repeats=1 ( #10323 ) ( #10369 )
...
* Revert "frame-benchmarking: Fix `min-square` for `--steps=1` (#10323 )"
This reverts commit 2d0e858b81 .
* actual fix
2021-11-25 11:24:45 +01:00
Roman
c5ae5190b2
Bump libp2p to 0.40.0 ( #10035 )
...
* Bump libp2p to 0.40.0-rc.1
* Fix PingFailure import
* Reduce the number of compilation errors (this is a FIXME commit)
* Bump libp2p to 0.40.0-rc.2
* Fix sc-network::Behaviour to inject events into fields
* Fix some NetworkBehaviourAction types
* More fixes
* More fixes
* More fixes
* Fix DiscoveryBehaviour
* Fix PeerInfoBehaviour
* Fix RequestResponsesBehaviour
* Fix RequestResponsesBehaviour
* Fix Notifications
* Fix NetworkWorker
* Fix Behaviour
* Please borrowchk
* Please borrowchk
* Please borrowchk
* Fix fmt
* Cover all cases in matches
* Fix some clippy warnings
* Fix into_peer_id -> to_peer_id
* Fix some warnings
* Fix some inject_dial_failure FIXMEs
* Fix DiscoveryBehaviour::inject_dial_failure
* Fix RequestResponsesBehaviour::inject_dial_failure
* Fix the order of inject_connection_closed PeerInfoBehaviour events
* Make KademliaEvent with filtering unreachable
* Fix Notifications::inject_dial_failure
* Use concurrent_dial_errors in NetworkWorker
* Remove commented-out RequestResponsesBehaviour::inject_addr_reach_failure
* Fix tests
* Dont report new PendingConnectionError and DialError variants to metrics
* Bump libp2p to 0.40.0
* Add fn inject_listen_failure and inject_address_change
* Review fixes
2021-11-25 08:33:33 +00:00
Pierre Krieger
5e2b93c2ea
Don't send ForceClose repeatedly in send_sync_notification ( #10348 )
2021-11-25 08:30:07 +00:00
Bastian Köcher
d94027edb4
Enable wasmtime for aarch64 as well ( #10367 )
2021-11-24 20:46:28 +01:00
Alexander Theißen
6a8c22aafd
Stabilize "seal1" seal_call ( #10366 )
2021-11-24 17:20:55 +00:00
Alexander Samusev
48b03c3732
[ci] Fix publish-rustdoc ( #10364 )
2021-11-24 16:00:03 +01:00
Alexander Popiak
3675d87f51
derive Debug for CrateVersion and StorageVersion ( #10355 )
2021-11-24 13:39:11 +00:00
Vladimir Istyufeev
bf1b93c9bd
Introduce temporary GitLab & GHA benchmarking jobs ( #10311 )
...
* Introduce temporary bench job
* Add runner label
* CI: bench GHA
* CI: bench GHA
* CI: docs
* CI: more docs
* CI: run on master only
Co-authored-by: Denis P <denis.pisarev@parity.io >
2021-11-24 12:10:40 +01:00
Alexander Samusev
e92a7402ef
[ci] Fix publish-rustdoc job ( #10363 )
2021-11-24 10:42:44 +01:00
Alexander Samusev
67cd32f736
[ci] Add ssh token for publishing gh-pages ( #10338 )
...
* [ci] Added ssh token for publishing gh-pages
* changed ssh commands for gh-pages
* return github_token back to vault secrets
* check simnet-tests-quick without vault secrets
* remove vault secrets from simnet jobs
2021-11-23 17:04:06 +01:00
Xavier Lau
f9122a870e
Support MMR Pruning ( #9700 )
...
* Use `0.3.2`
* Replace `u64` with `NodeIndex`
* Fix Typo
* Add Pruning Logic
* Fix Some Tests
* Remove Comment
* Log Only Under STD
* Return while No Element to Append
* Optimize Pruning Algorithm
* Update Doc
* Update Doc
* Zero Copy Algorithm
* Import Missing Type
* Fix Merge Mistake
* Import Missing Item
* Make `verify` Off-Chain
* `cargo fmt`
* Avoid using NodeIndex in incorrect places.
* Simplify pruning.
* Format
Co-authored-by: Tomasz Drwięga <tomasz@parity.io >
2021-11-23 13:04:05 +00:00
Guillaume Thiolliere
76737891bb
remove unused file ( #10343 )
2021-11-23 10:28:58 +00:00
Guillaume Thiolliere
7ed4a7f022
fix ( #10342 )
2021-11-23 10:06:33 +00:00
Pierre Krieger
a75a8820fb
Put back consensus_engine, only accept its absence ( #10345 )
2021-11-23 10:19:05 +01:00
Bastian Köcher
2d0e858b81
frame-benchmarking: Fix min-square for --steps=1 ( #10323 )
2021-11-23 08:39:43 +00:00
Koute
e5108606eb
Fix WASM executor without instance reuse; cleanups and refactoring ( #10313 )
...
* Fix WASM executor without instance reuse; cleanups and refactoring
* Align to review comments
* Move the functions for reading/writing memory to `util.rs`
* Only `#[ignore]` the test in debug builds
* More review comments and minor extra comments
2021-11-23 06:35:19 +00:00
dependabot[bot]
a47f0243e0
Bump prost from 0.8.0 to 0.9.0 ( #10341 )
...
Bumps [prost](https://github.com/tokio-rs/prost ) from 0.8.0 to 0.9.0.
- [Release notes](https://github.com/tokio-rs/prost/releases )
- [Commits](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0 )
---
updated-dependencies:
- dependency-name: prost
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-22 22:57:44 +01:00
dependabot[bot]
566d5ba9a2
Bump paste from 1.0.4 to 1.0.6 ( #10333 )
...
Bumps [paste](https://github.com/dtolnay/paste ) from 1.0.4 to 1.0.6.
- [Release notes](https://github.com/dtolnay/paste/releases )
- [Commits](https://github.com/dtolnay/paste/compare/1.0.4...1.0.6 )
---
updated-dependencies:
- dependency-name: paste
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-11-22 19:03:41 +00:00
dependabot[bot]
a085e2f213
Bump serde_json from 1.0.68 to 1.0.71 ( #10321 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.68 to 1.0.71.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.68...v1.0.71 )
---
updated-dependencies:
- dependency-name: serde_json
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-11-22 12:57:50 +00:00
dependabot[bot]
7f4b954274
Bump platforms from 1.1.0 to 2.0.0 ( #10331 )
...
Bumps [platforms](https://github.com/rustsec/rustsec ) from 1.1.0 to 2.0.0.
- [Release notes](https://github.com/rustsec/rustsec/releases )
- [Commits](https://github.com/rustsec/rustsec/commits/platforms/v2.0.0 )
---
updated-dependencies:
- dependency-name: platforms
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-22 11:12:59 +00:00
Guillaume Thiolliere
fcfb766366
Fix some doc link ( #10329 )
...
* fix some doc link
* fmt
2021-11-22 10:48:53 +00:00
dharjeezy
cac9d85cb3
use proper intra doc link ( #10271 )
...
* use proper intra doc link
* use proper intra doc link
* get system path name from path module name function for the docs
* used format macro in formatting doc string for better output
* helper function to get intra doc string
* helper function to get intra doc string
* use helper function on expand_origin_pallet_conversions
* remove duplicates
* Update frame/support/procedural/src/construct_runtime/expand/origin.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* remove leading white space
Co-authored-by: Damilare <dakinlose@teamapt.com >
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
2021-11-21 14:42:21 +01:00
dependabot[bot]
16f6a3b74d
Bump derive_more from 0.99.11 to 0.99.16 ( #10282 )
...
Bumps [derive_more](https://github.com/JelteF/derive_more ) from 0.99.11 to 0.99.16.
- [Release notes](https://github.com/JelteF/derive_more/releases )
- [Changelog](https://github.com/JelteF/derive_more/blob/master/CHANGELOG.md )
- [Commits](https://github.com/JelteF/derive_more/compare/v0.99.11...v0.99.16 )
---
updated-dependencies:
- dependency-name: derive_more
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-11-20 23:08:49 +00:00
Doordashcon
09d351ddad
tuple to struct event variants ( #10257 )
...
* AFNPEV recovery
* AFNPEV session
* cargo +nightly fmt && cargo fmt
* removed redundant comments
* update
* update & cargo +nightly fmt
* update & cargo +nightly fmt
* update recovery/src/lib.rs
* update session/src/lib.rs
2021-11-20 08:00:43 +00:00
Bastian Köcher
25239c8642
Taskmanager: Remove clean_shutdown ( #10314 )
...
There is no reason for this function, tokio already blocks automatically until all tasks are ended.
Another reason to remove this feature is `mpsc_background_tasks` unbounded channel. Recently this
channel was reporting too many unprocessed elements. We assume that this was a result of a lot of
very shot lived tasks that somehow flooded this channel.
2021-11-19 21:30:37 +01:00
Zeke Mostov
5ea4823dab
Add prometheus metrics for block authorship ( #10316 )
...
* Add prom metric to basic authorship
* Add proposer_block_proposal_time
* +nightly-2021-10-29 fmt
* Use saturating_duration_since, not elasped
* Update client/basic-authorship/src/basic_authorship.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/basic-authorship/src/basic_authorship.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* +nightly-2021-10-29 fmt
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-11-19 15:14:21 +00:00
dependabot[bot]
d0b851abe9
Bump libsecp256k1 from 0.6.0 to 0.7.0 ( #10214 )
...
* Bump libsecp256k1 from 0.6.0 to 0.7.0
Bumps [libsecp256k1](https://github.com/paritytech/libsecp256k1 ) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/paritytech/libsecp256k1/releases )
- [Changelog](https://github.com/paritytech/libsecp256k1/blob/master/CHANGELOG.md )
- [Commits](https://github.com/paritytech/libsecp256k1/commits )
---
updated-dependencies:
- dependency-name: libsecp256k1
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* Fix pallet_contracts for new libsecp256k1 version
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
2021-11-19 12:36:09 +01:00
Bastian Köcher
090b55b791
Offchain worker: Enable http2 and improve logging ( #10305 )
...
* Offchain worker: Enable http2 and improve logging
Apparently some webpages now return http2 by default and that silently breaks the offchain http
extension. The solution to this is to enable the `http2` feature of hyper. Besides that, this pr
improves the logging to make it easier to debug such errors.
* FMT
* Adds http2 test
2021-11-19 11:33:28 +00:00
Pierre Krieger
34bc24624a
Don't generate the consensusEngine field in chain specs ( #10303 )
2021-11-19 09:37:37 +00:00
Georges
439af98e55
Moving pallet-asset-tx-payment from cumulus to substrate ( #10127 )
...
* Moving `pallet-asset-tx-payment` from cumulus
* move pallet-asset-tx-payment into transaction payment directory
* cargo +nightly fmt
* Adding `pallet-asset-tx-payment` to node runtime
I had to change the Balance type to u128.
Also harmonised that pallet's version
* Updating cargo.lock after merge
* forgot this
* Adding tx-payment signature
* Missed one more
* `transaction-payment` replaced in`SignedExtension`
by `asset-tx-payment` and not added
* Fixing benches
* add test to verify that we don't charge on post-dispatch if we didn't on pre-dispatch
* add (failing) test for asset tx payment of unsigned extrinsics
* fix test by removing debug_assert
* cargo +nightly fmt
* typo in `Cargo.lock`
* Object defined twice in lock file
* cargo update
* remove todo
* Apply formatting suggestions from code review
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Refactoring `post_dispatch` of `asset-tx-payment`
to reuse `post_dispatch` of `transaction-payment` if the fee asset is
native
Removing unneeded imports.
* Removing redundant `TODO`
* Reverting an accidental bump of `impl-serde`
from `0.3.1` to `0.3.2`
* Revert unneeded changes to `cargo.lock`
* Update frame/transaction-payment/asset-tx-payment/src/payment.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Fixing cargo fmt
Reverting changes which broke cargo fmt
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
Co-authored-by: Alexander Popiak <alexander.popiak@gmail.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2021-11-19 09:29:12 +00:00
Qinxuan Chen
69478639b3
Migrate all doc to new pallet macro ( #10187 )
...
* Migrate all doc to new pallet macro
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix indent
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix format
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
2021-11-18 22:08:17 +00:00
Tomasz Drwięga
78e60cbc4f
Make authorship soft deadline configurable. ( #10125 )
...
* Make soft deadline configurable.
* cargo +nightly fmt --all
* Move setter where it belongs.
2021-11-18 20:12:08 +00:00
Koute
15a0bfb0f6
Clear WASM linear memory on other OSes besides Linux too ( #10291 )
2021-11-18 11:16:38 +00:00
MOZGIII
6e424d74ff
Set current dir at check_wasm_toolchain_installed at wasm-builder ( #10284 )
...
* Set current dir at check_wasm_toolchain_installed
* Add comments
2021-11-18 09:05:48 +00:00
Shawn Tabrizi
6c6788d87a
Fix Weight Handlebar Template ( #10302 )
...
* fix template
* cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_identity --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/identity/src/weights.rs --template=./.maintain/frame-weight-template.hbs
Co-authored-by: Parity Bot <admin@parity.io >
2021-11-18 04:14:16 +00:00