Gavin Wood
c0bf7e3d8c
Required weight is returned in case it exceeds limit. ( #2952 )
2021-04-28 18:24:39 +02:00
Gavin Wood
fc82a611ce
Integrate a governance XCM origin ( #407 )
...
* Introduce the converter into the hub
* Parachain recognises Rococo governance body as admin
* Whitespace
* Use UsingComponents for fee payment in XCM
* Fixes
* Fixes for XCM permissions
* Remove encode_call test
* Fixes
* Fixes
* Fixes
2021-04-28 14:41:18 +02:00
Martin Pugh
9c60982989
Bump version, bump substrate & update benchmarks in preparation for v0.8.31 ( #2938 )
...
* bump version
* bump cargo
* update benchmarks
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_identity --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/
Co-authored-by: Parity Benchmarking Bot <admin@parity.io >
2021-04-28 13:23:54 +02:00
Jon Häggblad
a7facf25e4
grandpa-rpc: allow proving finality of blocks from latest authority set ( #8585 )
...
* grandpa: use new latest stored justification in prove_finality
* grandpa: include end in range in FinalityProof::unknown_headers
* grandpa: typo in comment
* grandpa: remove ProvableJustification
* grandpa: revert unnecessary changes
* grandpa: extend AuthoritySetChangeId and cleanup get_set_id
* grandpa: move check_finality_proof to the test module
* grandpa: warn on missing authority set changes data
* grandpa: add missing use statement
* grandpa: simplify finality_proof tests
* grandpa: additional tests for finality_proof
Co-authored-by: André Silva <andrerfosilva@gmail.com >
2021-04-28 11:13:39 +00:00
Jon Häggblad
d3d02d8851
Support sending and receiving multiple Justifications ( #8266 )
...
* client/network: support sending multiple justifications
* network: flag support for multiple justifications in protobuf request
* Update client/network/src/protocol.rs
Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com >
* network: update comment on protobuf field
Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com >
2021-04-28 10:59:50 +00:00
Erasmus Hagen
1f02ec8ce4
Update slashing.rs ( #8676 )
...
Link was a dead-end
2021-04-28 07:59:40 +00:00
Andreas Doerr
a8b64f12ec
Bump BEEFY ( #2946 )
2021-04-28 07:39:19 +00:00
Robert Klotzner
c86a774b9d
Send statements to own backing group first ( #2927 )
...
* Factor out runtime module into utils.
* First fatal error design.
* Better error handling infra.
* Error handling cleanup.
* Send to peers of our group first.
* Finish backing group prioritization.
* Little cleanup.
* More cleanup.
* Forgot to checkin error.rs.
* Notes.
* Runtime -> RuntimeInfo
* qed in debug assert.
* PolkaErr -> Fault.
2021-04-27 21:47:32 +02:00
Guillaume Thiolliere
b03d11b8e0
Bump polkadot + fix parachain unnamed field ( #412 )
...
* parachain unnamed field
* bump polkadot: cargo udpate -p xcm
* Update lock
* Fixes
* Fixes
Co-authored-by: Gav Wood <gavin@parity.io >
2021-04-27 18:56:08 +02:00
Gavin Wood
36bd876311
Bump ( #2942 )
2021-04-27 18:46:37 +02:00
Hernando Castano
470383ce67
Add Dev Config for Rococo and Wococo ( #2928 )
...
* Add `rococo-dev` chain option
* Add `wococo-dev` CLI option
* Sort Chain ID match arms
2021-04-27 17:46:55 +02:00
Guillaume Thiolliere
41e57c4509
change junction parachain id from named field to unnamed field ( #2940 )
...
* use unnamed field for parachain variant in junction
* remove outdated comment
2021-04-27 14:49:55 +02:00
Guillaume Thiolliere
55c1f7ea92
fix link ( #2941 )
2021-04-27 14:48:28 +02:00
Gavin Wood
d02c0222bc
Introduce macro for building Contains impl based on a match ( #8675 )
...
* Introduce macro for building Contains impl based on a match
* Fixes
2021-04-27 14:33:59 +02:00
Gavin Wood
9194219586
Add XCM Origin and converter ( #2896 )
...
* Add XCM Origin and converter
* IsMajority filter can be location-prefixed
* Update xcm/pallet-xcm/src/lib.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update xcm/src/v0/multi_location.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Introduce UsingComponents to allow reuse of fee payment in XCM
* Use Drop rather than finalize
* Add errors for weight.
* Apply suggestions from code review
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Fixes
* Update xcm/xcm-builder/src/weight.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Various XCM fixes and improvements
* Fixes
* Update xcm/xcm-builder/src/weight.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update xcm/xcm-builder/src/weight.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update xcm/xcm-builder/src/weight.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Fixes
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2021-04-27 14:33:40 +02:00
Michael Müller
536cee37f1
Upgrade cargo_metadata to 0.13.1 ( #8670 )
...
* Upgrade `cargo_metadata` to 0.13.1
* Update utils/wasm-builder/src/wasm_project.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-04-27 07:17:38 +00:00
Ricardo Rius
8e0963e533
Add Statemint teleport ( #2934 )
...
* Add Statemint teleport
* Fixes
2021-04-26 20:19:29 +02:00
Denis Pisarev
320391b5e2
CI: build colander on rococo branch too ( #2936 )
2021-04-26 19:05:10 +02:00
Andreas Doerr
3359cc268c
Bump BEEFY ( #2937 )
2021-04-26 16:59:01 +00:00
Shawn Tabrizi
9c0bb140c8
Companion for substrate#8665 (Bounded Treasury) ( #2932 )
...
* Add MaxApprovals for Bounded Treasury
* update weight
* update Substrate
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_treasury --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=pallet_treasury --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/
Co-authored-by: parity-processbot <>
Co-authored-by: Parity Benchmarking Bot <admin@parity.io >
2021-04-26 16:09:42 +00:00
Shawn Tabrizi
4225d50881
Add BoundedVec to Treasury Pallet ( #8665 )
...
* bounded treasury approvals
* update benchmarks
* update configs
* 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
* fix weight param
Co-authored-by: Parity Benchmarking Bot <admin@parity.io >
2021-04-26 14:42:09 +00:00
François Garillot
d4ddf8d7e8
Simplify some Option / Result / ? operator patterns ( #2920 )
...
* Simplify some Option / Result / ? operator patterns
When they identically match a combinator on those types.
Tool-aided by [comby-rust](https://github.com/huitseeker/comby-rust ).
* adjust review comments
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-04-25 20:51:01 +00:00
Shawn Tabrizi
53faf368c6
Bump polkadot and substrate deps ( #408 )
2021-04-25 22:11:33 +02:00
Kian Paimani
c7ee98ab5f
Update lib.rs ( #2926 )
2021-04-24 16:48:43 +02:00
Tomasz Drwięga
bbb8652de0
Merge pull request #2917 from paritytech/hc-fix-bridges-subtree
...
Update Bridges Subtree
2021-04-23 20:40:56 +02:00
François Garillot
052be8bbef
Simplify some Option / Result / ? operator patterns ( #8653 )
...
* Simplify some Option / Result / ? operator patterns
When those match a combinator exactly.
Tool-aided by [comby-rust](https://github.com/huitseeker/comby-rust ).
* adjust after review
* adjust post-review
2021-04-23 13:36:10 +00:00
Bastian Köcher
541692c4a8
Use host max log level when initializing the RuntimeLogger ( #8655 )
...
* Use host max log level when initializing the `RuntimeLogger`
This should fix performance problems introduced by logging under certain
circumstances. Before we always called into the host and the host was
doing the log filtering, now as the correct max log level is set, we
don't call into the host for every log line to check if it should be
logged. However, we would still call into the host to determine if
something should be logged when `something=trace` is given as we don't
forward the log targets that are enabled.
* Finish the pr
2021-04-23 13:22:39 +00:00
Kian Paimani
0b35a067aa
companion for substrate/pull/8044 ( #2765 )
...
* Add migration to kusama
* Fix try-runtime stuff
* Add to polkadot
* add migeations to all runtiem
* update Substrate
Co-authored-by: parity-processbot <>
2021-04-23 07:54:44 +00:00
Kian Paimani
8cc1af31c4
migrate pallet-elections-phragmen to attribute macros ( #8044 )
...
* All done
* Fix benchmarks
* Apply suggestions from code review
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Fix metadata.
* Fix build
* Add migrations
* Fix
* Update frame/elections-phragmen/src/migrations/v4.rs
* Better migeation test
* More test
* Fix warn
* Update frame/elections-phragmen/src/lib.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Fix test
* early exit
* Fix
* Fix build
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
2021-04-23 07:12:34 +00:00
Shawn Tabrizi
4838603eb4
Companion for impl Zero and One for fixed point numbers ( #2924 )
...
* fix build
* Update Cargo.lock
Co-authored-by: Bryan Chen <xlchen1291@gmail.com >
2021-04-23 00:07:05 -04:00
Xiliang Chen
327934c19e
impl Zero and One for fixed point numbers ( #8647 )
...
* impl Zero and One for fixed point numbers
* update librocksdb-sys to support M1
* fix build
* trigger CI
2021-04-22 22:02:54 +00:00
Tomasz Drwięga
f7ed5a2481
Off-chain indexing is independent from workers ( #8659 )
...
* Pff-chain indexing is independent from worker.
* Remove unauthorized changes.
* 🤦
2021-04-22 21:37:03 +00:00
Hernando Castano
3ee5a12d3a
Merge branch 'master' into hc-fix-bridges-subtree
2021-04-22 15:02:29 -04:00
André Silva
ae558997a8
Introduce Wococo testnet ( #2918 )
...
* runtime: remove mmr and beefy from westend runtime
* runtime: westend: remove pallet_beefy config
* node: only start beefy gadget on rococo
* node: remove beefy keys from westend chain spec
* node: add wococo testnet chain spec
* node: add comments about beefy gadget task
* runtime: update wococo chainspec
* Remove stale comment
Co-authored-by: Tomasz Drwięga <tomasz@parity.io >
Co-authored-by: adoerr <0xad@gmx.net >
2021-04-22 15:28:23 +00:00
Alexander Theißen
166568b029
contracts: Allow () -> (i32) for backwards compatibility ( #8656 )
2021-04-22 10:44:35 +00:00
Denis Pisarev
683211837b
CI: optimizations ( #2885 )
...
* CI: do not publish unnecessary things to s3 and to release registry
* CI: remove the build-linux-release job
* CI: publish less
* CI: workspace = all
* CI: more logs for the pipeline trigger
* CI: chore
* CI: nicer
* CI: new bucket for bins
* CI: no need pushing every master image to product registry
* CI: default variables in image jobs
* CI: optimize the bin build
2021-04-22 10:48:15 +02:00
André Silva
c25e79d8c4
runtime: remove mmr and beefy from westend runtime ( #2916 )
...
* runtime: remove mmr and beefy from westend runtime
* runtime: westend: remove pallet_beefy config
* node: only start beefy gadget on rococo
* node: remove beefy keys from westend chain spec
2021-04-21 20:31:06 +00:00
Hernando Castano
0d54ae79f1
Use the one and only indentation character
2021-04-21 12:36:23 -04:00
Hernando Castano
529b8b71e2
Add bridge chain primitives to workspace
2021-04-21 12:17:25 -04:00
Hernando Castano
b33f21d44b
Remove top level TOML file from bridges subtree
...
This confuses Cargo when building from the Polkadot repo
2021-04-21 12:03:57 -04:00
Hernando Castano
e5bed7ac38
Squashed 'bridges/' content from commit 89a76998f
...
git-subtree-dir: bridges
git-subtree-split: 89a76998f93c8219e9b1f785dcce73d4891e7068
2021-04-21 11:56:23 -04:00
Hernando Castano
3f92e81541
Merge commit 'e5bed7ac380b6adb54b60a2a72a2a8f07f50d6c1' as 'bridges'
2021-04-21 11:56:23 -04:00
Hernando Castano
86a376cd69
Remove messed up bridges subtree
2021-04-21 11:55:51 -04:00
André Silva
142a0aec2f
runtime: prepare Westend runtime for BEEFY ( #2914 )
...
* runtime: bump westend spec_version and add beefy keys migration
* bump beefy
* runtime: revert westend spec_version change
2021-04-21 12:00:14 +00:00
Niklas Adolfsson
70f008b9f1
update jsonrpsee to 0.2.0-alpha.5 ( #8644 )
2021-04-21 10:59:15 +00:00
Kian Paimani
47889d845c
Fix bench bot ( #2900 )
...
* Fix bench bot
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=pallet_membership --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/
* Fix weights files
* Fix'
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_membership --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/
Co-authored-by: Parity Benchmarking Bot <admin@parity.io >
2021-04-21 01:38:19 +00:00
André Silva
9de727bb17
Update substrate ( #2910 )
2021-04-20 19:26:38 +00:00
Pierre Krieger
54ae55f439
Revert "Properly close notification substreams ( #8534 )" ( #8646 )
...
This reverts commit 6c9c687a31 .
Co-authored-by: André Silva <andrerfosilva@gmail.com >
2021-04-20 18:39:07 +00:00
André Silva
eca26ac5d0
Bump BEEFY ( #2906 )
...
* bump substrate
* bump beefy
* bump beefy again
* bump beefy
2021-04-20 16:54:16 +00:00
Pierre Krieger
a7d678179a
Companion for substrate#8643 ( #2908 )
...
* Companion for substrate#8643
* Update node/service/src/lib.rs
* update Substrate
Co-authored-by: parity-processbot <>
2021-04-20 14:07:37 +00:00