dependabot[bot]
586071bada
Bump clap from 3.1.2 to 3.1.3 ( #1053 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.1.2 to 3.1.3.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.1.2...v3.1.3 )
---
updated-dependencies:
- dependency-name: clap
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>
2022-02-28 15:33:39 -08:00
Kian Paimani
3dbaabae10
Bring back MaxNominations as a metadata constant ( #10947 )
2022-02-28 21:54:48 +00:00
Roman Gafiyatullin
4009148889
#10576 : generic utility to unsubscribe from broadcast upon drop of the rx-side. ( #10708 )
...
* #10576 : refactor `sc-utils::notification` and `sc-client-api::notifications`, so that they use common subscribe/unsubscribe routines
* Add some docs. Reorganise `sc-utils::notification`
* `sc-clent-api::notifications` and `sc-utils::notification` — ensure the SubscriptionGuard is dropped before the Rx-channel
* `sc-utils::pubsub::SubscriptionGuard` make it a bit more ergonomic.
Let the `Rx` to be put inside of the `SubscriptionGuard`, so that the latter shall guarantee the order:
- first unsubscribe;
- then drop the `Rx`.
* Being less zealous with splitting the modules into little pieces
* rework pubsub: the concrete usage should only define a good registry type
* sc-client-api::notifications: make it comply with the reworked pubsub
* cargo fmt
* make sc-client-api tests work
* Address the review notes
* cargo fmt
* Describe the behaviour of pubsub registry
* Doc-comments for module `sc-utils::pubsub`
* Fix: it used to send notifications regardless of the filter setup during subscription
* `sc-client-api::StorageNotifications` the API does not have to require mut-self-reference.
As a result `sc-service::Client` does not have to wrap its `storage_notifications` into a Mutex.
* cargo fmt
* Several changes addressing the notes by @bckhr.
- Remove the `impl Default for StorageNotifications<Block>`;
- no need for groupping the `remove_from` and `listen_from` into a separate `helpers` module;
- remove unnecessary import `use registry::SubscribeOp`.
* Add a doc-comment to the `sc-client::notifications::SubscribeOp`
* As per @bkchr note on the unproven assertion: behave gracefully upon receiving a duplicate subscription-ID.
* sc-utils::pubsub: log when a registry yields an ID that does point to an existing sink
* `sc-utils::notifications`: payload materialized lazily
* Update Cargo.lock (after adding `log` as a dependency to the `sc-utils`)
* `sc-client-api::notifications`: introduce a struct (instead of a type def) for the notification message
* Get rid of `sc-utils::pubsub::Channel` trait (instead just use the `sc-utils::mpsc`)
* The SubsID is no more generic: the fact it is a `Copy` is known — no need to pass it by ref
* sc-utils::pubsub internals do not have to be generic over the channel type
* Rename Hub::dispatch into Hub::send
* That method was unnecessary (`SubscriberSink::render_notification`)
* cargo fmt
* No need for a separate UnsubscribeGuard type
* Ditch the type-def of SubsID in the sc-utils::pubsub, instead — just use the crate::id_sequence::SeqID
* Return the <Registry as Dispatch>::Ret when sending an item
* Make the `Hub<M, R>::lock_registry(...)` method more ergonomic
* cargo doc links
* cargo doc links
* Use a simpler name for the type
* cargo doc links
* Derive `Default` rather than implement it
* Derive `Default` rather than implement it
* Remove an unnecessary usage of type_name
* Define a more cautious order between sinks.remove->registry.unsubscribe and registry.subscribe->sinks.insert
* Hub: lock_registry_for_tests->map_registry_for_tests — a safer choice for a public API
* Replace Mutex over the shared Registry with a ReentrableMutex+RefCell
* sc-utils::pubsub: add tests for a panicking registry
* Add the missing copyright headers
* Arc<Vec<_>> -> Arc<[_]>
2022-02-28 23:51:35 +02:00
Bastian Köcher
32687126c6
Fix master build ( #5005 )
2022-02-28 18:52:45 +00:00
Ross Bulat
89b5dafc29
doc corrections ( #10936 )
2022-02-28 14:58:30 +01:00
Andrei Sandu
0fa91e7043
Zombienet: add new test collator and integration test ( #4797 )
...
* WIP: Wasm compilation perf
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Fix
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Undying collator WIP
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Fix build
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* more fixes
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* update test with undying
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Correctly compute post hash
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* update helper
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* squash bugs
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Add --pov-size cli parameter
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* refactor
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* fix strings
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Add pov-size param to export genesis state
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Fix graveyard size
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* docs + fmt
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Fix PVF bug and switch to u8 graves
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Update tests
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Build/publish undying collator as colander img
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* add undying-collator to colander image
* Fix transaction overflow
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* warn fix
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* add parachain id for export genesis cli
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* fix
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* fix the build
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* scale test up
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* default parachain id
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Add PVF complexity param
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Hash on each iteration
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Update pvf metric histogram buckets
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Ladi attempt to fix tests
* Fix test
* Fix typos
* Fix pvf typo
* CI integration
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* cargo lock missing
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* fix clap merge damage
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* add zombienet image back
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Use collator image from env
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* bump zombienet version
* update test to check pvf prep/exec
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* delete file
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* use default bootnode in upgrade test
* FIx tests
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* add some stress - pvf exec times up to 2s
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* fix name
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Dial down pvf execution time < 2s
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* 1100
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* bump
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* try again
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Add connectivity check
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Fixes and refactor folder struct
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* change toml name to match
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* bump zombienet
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* impl Feedback for Review 😎
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* spell check
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Zombienet: add disputes test (#4859 )
* Zombienet disputes test
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* CI: add zombienet-parachain-disputes
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Bump zombienet
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* reduce duration
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Update zombienet_tests/functional/0002-parachains-disputes.feature
fix test
* Update zombienet_tests/functional/0002-parachains-disputes.feature
fix fix
* more logs and set collator image
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* spellcheck
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* fix cargo lock damage
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* merge fixes
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* bump zombienet image
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* cargo lock
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* debugging CI run - scale down test
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* fix cargo merge damage
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* default command fix
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Revert "debugging CI run - scale down test"
This reverts commit eec2ba7e65ede3f929e2f0a8fe44930df2119450.
* more review feedback
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
Co-authored-by: Javier Viola <javier@parity.io >
Co-authored-by: Lldenaurois <Ljdenaurois@gmail.com >
2022-02-28 10:27:01 +00:00
omadoyeabraham
05877df724
Integrate try-runtime into substrate node template ( #10909 )
...
* [10892-integrate-try-runtime-into-node-template] - Integrated try-runtime into node template
* [10892-integrate-try-runtime-into-node-template] Added match arms for try-runtime in command.rs
* [10892-integrate-try-runtime-into-node-template] Added match arms for try-runtime in command.rs
* Added feature flag for try-runtime in node-template/node and enabled try-runtime for node-template/runtime
* Added missing type annotations for try-runtime SubCommand in node-template
* Added missing type annotations for try-runtime SubCommand in node-template
* Implemented frame_try_runtime::TryRuntime<Block> for the node-template Runtime
2022-02-28 09:47:04 +00:00
Davide Galassi
00ce69aae8
[WIP] Companion PR for sr25519 fallible constructor ( #4861 )
...
* Manage new `sr25519::Signature::from_slice` fallible constructor
Constructor now returns an `Option`
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-02-26 21:51:44 +00:00
Davide Galassi
4aab84cc42
Replace libsecp256k1 with secp256k1 ( #10798 )
...
* Replace libsecp256k1 with secp256k1
* Wipe ecdsa secret key from memory on drop
* Some comments for a known issue
* Safer core crypto primitives `from_slice` constructor
Previous version panics if slice lenght is not the expected one.
* Unit test fix
* Enable use of global secp256k1 context
* Better comments for ecdsa `Pair` drop
* Replace `libsecp256k1` with `seco256k1` in `beefy-mmr`
Used to convert ecdsa public key to ETH address
* Replace `libsecp256k1` with `secp256k1` in FRAME `contracts`benchmarks
* Temporary rollback of `beefy-mmr` to libsecp256k1
Check for detected build issues
* Cargo fmt
* Rollback of FRAME `contracts` benchmarks to `libsecp256k1`
* Rollback for unrelated changes
* Typo fix
* Add comments for deprecated `ecdsa_verify` and `secp256k1_ecdsa_recover`
2022-02-26 21:00:00 +00:00
Falco Hirschenberger
fc919376ba
Add benchmarking for parachain runtime ump pallet ( #3889 )
...
* Claim grounds, not working yet.
* still wip, nothing to see
* Module visibility problem
* Add benchmarks for all parachain-enabled chains
* Add missing mock weights
* Fix mock weight info
* Add max-weight to extrinsic weight
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_ump.rs
* sorting declarations
* Use a maximum size message to benchmark worst-case
* remove warning
* Fix msg size overflow in tests
* Use benchmarked weight in PostInfo
* Update runtime/parachains/src/ump.rs
Co-authored-by: Alexander Popiak <alexander.popiak@gmail.com >
* Delete obsolete file
* Compile fix
* Fix spelling
* Add benchmark for `UmpSink::process_upward_message`
It benchmarks the time to process a message, mainly the size-dependent
decoding time. This is used interally for refunding weight from
`service_overweight`
* Fix warning
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_ump.rs
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_ump.rs
* Update runtime/parachains/src/ump.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Give mock weights for tests a name instead of ()
* Add benchmark for `initializer_on_new_session` aka.
`perform_outgoing_para_cleanup`
* Remove unnescessary pub specifier and change folding to a for loop
suggestions by @pepyakin
* Update runtime/parachains/src/ump.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update runtime/parachains/src/ump.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Add comment on weight calculation and expected slight overestimation
* Introduce a size bound constant for upward messages
* Use KiB not kB for message size bound
* Enforce max-message size bound
* Use a const for upward message size bound.
* Decrease max_upward_message_sizes to 50KiB as suggested by @pepyakin
* Fix creating overweight messages
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=rococo-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/rococo/src/weights/runtime_parachains_ump.rs
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_ump.rs
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_ump.rs
* Remove unused variable
* Rename benchmark function to the function actually benchmarked and some
code cleanup
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_ump.rs
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=rococo-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/rococo/src/weights/runtime_parachains_ump.rs
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_ump.rs
* Better variable naming
* Fix build
* Fix build
* Fix some remarks from @pepyakin
Co-authored-by: Parity Bot <admin@parity.io >
Co-authored-by: Alexander Popiak <alexander.popiak@gmail.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: emostov <32168567+emostov@users.noreply.github.com >
2022-02-26 08:52:55 +00:00
Kian Paimani
b77d3f917d
Minor improvements to bounded_vec and defensive. ( #10873 )
...
* Fix a few things in bounded_vec
* add test for try_extend
* Update frame/support/src/storage/bounded_vec.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* some review comments
* use swap
* remove clone
* use pop instead of truncate
* remove warn
* review comments
* Update frame/support/src/storage/bounded_vec.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* fix rustdoc
* fix links
* undo link
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2022-02-26 08:39:56 +00:00
dependabot[bot]
2771f18391
Bump color-eyre from 0.6.0 to 0.6.1 ( #4984 )
...
Bumps [color-eyre](https://github.com/yaahc/color-eyre ) from 0.6.0 to 0.6.1.
- [Release notes](https://github.com/yaahc/color-eyre/releases )
- [Changelog](https://github.com/yaahc/color-eyre/blob/master/CHANGELOG.md )
- [Commits](https://github.com/yaahc/color-eyre/compare/v0.6.0...v0.6.1 )
---
updated-dependencies:
- dependency-name: color-eyre
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>
2022-02-25 22:35:06 +00:00
Vsevolod Stakhov
44f66825c7
Add metrics for out of view statement distribution errors ( #4972 )
...
* Add a simple metric for statements out-of-view
* Avoid repeated out-of-view peer reputation change messages
* Log reporting status
* Address review comments
* Use counter to store a number of unexpected messages from a peer
* Distinguish different unexpected statements in the metrics
* Fix labels cardinality
* Rename metric name to `statements_unexpected`
* Move metrics to a separate unit, avoid unnecessary enum
* Prefer specific methods in lieu of public constants
2022-02-25 20:29:51 +00:00
Oliver Tale-Yazdi
86f2d65a72
Co #10897 : Storage benchmarking ( #4982 )
...
* Add storage benchmarking
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-02-25 20:24:29 +00:00
Oliver Tale-Yazdi
4c984500a7
Storage benchmarking ( #10897 )
...
* WIP
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* WIP: DB benchmarking
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* WIP
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* WIP
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Simplify code
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Remove old files
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Remove old files
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Minimize changes
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add license
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Remove dependencies
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Extend template
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Linter
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Linter
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Beauty fixes
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Remove default
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add feature
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Remove seed
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* CI wakeup
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fmt
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Review fixes
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Adding doc
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Adding doc
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Improve template
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Do not expose columns
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix ColumnId
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Nicer template prints
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Cleanup
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix json path
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Simplify `bench_write` logic
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Invert tx before the second commit
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2022-02-25 19:30:57 +00:00
Bernhard Schuster
d946582707
fatality based errors ( #4448 )
...
* seed commit for fatality based errors
* fatality
* first draft of fatality
* cleanup
* differnt approach
* simplify
* first working version for enums, with documentation
* add split
* fix simple split test case
* extend README.md
* update fatality impl
* make tests passed
* apply fatality to first subsystem
* fatality fixes
* use fatality in a subsystem
* fix subsystemg
* fixup proc macro
* fix/test: log::*! do not execute when log handler is missing
* fix spelling
* rename Runtime2 to something sane
* allow nested split with `forward` annotations
* add free license
* enable and fixup all tests
* use external fatality
Makes this more reviewable.
* bump fatality dep
Avoid duplicate expander compilations.
* migrate availability distribution
* more fatality usage
* chore: bump fatality to 0.0.6
* fixup remaining subsystems
* chore: fmt
* make cargo spellcheck happy
* remove single instance of `#[fatal(false)]`
* last quality sweep
* fixup
2022-02-25 17:25:26 +00:00
Bernhard Schuster
85fa087405
do not allow zombienet tests to fail ( #4989 )
2022-02-25 16:04:13 +00:00
Bastian Köcher
d551fe6613
sc-cli: Fix bugs after switching to clap3 ( #10920 )
...
* sc-cli: Fix bugs after switching to clap3
Before switching to clap3 we support cli options like `--reserved-nodes A B` and after you needed to
pass `--reserved-nodes` cli option multiple times `--reserved-nodes A --reserved-nodes B`. This is
fixed by setting `multiple_occurrences(true)` option. This also done for all the other `Vec` cli
options in `sc-cli`. Besides that `--sync` wasn't supporting case insensitive parsing of the value.
This is now also supported. For both regressions a test is added. Besides that the pr removes all
the `rename_all = PascalCase` attributes, because they are not needed. All other `ArgEnum`s were
checked and all are already using `ignore_case(true)`.
* Bring back `PascalCase`, because otherwise it falls back to `kebab-case`...
2022-02-25 16:01:33 +01:00
Bastian Köcher
4028ca105b
Try to fix disputes test ( #4988 )
...
* Try to fix disputes test
* Enable all native runtimes
2022-02-25 16:01:23 +01:00
wigy
a59f02bc3f
Companion to "Updating scale to v3" ( #1013 )
...
* Updating dependencies
* Adapting code to scale v3
* cargo fmt
* Fix compilation
* Update Cargo.lock
* TIL exists
Co-authored-by: Bastian Köcher <info@kchr.de >
2022-02-25 13:40:24 +00:00
wigy
e8cb6cdaac
Companion to "Updating scale to v3" ( #4958 )
...
* Updating dependencies
* Adapting code to scale v3
* Upgrade bitvec to 1.0.0
* Fix bitvec arithmetics
* Update Cargo.lock
* Update sp-io
* Fixing the build
* Yanked scale-info 2.0.0
Co-authored-by: Bastian Köcher <info@kchr.de >
2022-02-25 13:07:06 +01:00
Mara Robin B
d0c9f75a0b
Add manual dispatch trigger for docker builds ( #4981 )
...
* ci: add manual dispatch docker publish workflow
* ci: fix date in dispatch trigger
* ci: avoid specifying gpg keyserver in multiple places
2022-02-24 16:59:30 +01:00
Mara Robin B
38fb3206db
Fix docker release workflow ( #4980 )
...
* scripts: fix polkadot_injected_release gpg errors
* ci: publish-docker-release: remove keyserver arg
* scripts: join RUNs in polkadot_injected_release
2022-02-24 16:56:51 +01:00
wigy
535325d2e6
Upgrading parity-scale-codec to v3 ( #10825 )
...
* Upgraded dependencies
* Adapting code to scale v3
* Empty commit to trigger CI
* Triggering CI
* Fixing UI test
* Remove superfluous dev-dep added by #9228
* Cryout for CI
2022-02-24 15:34:34 +01:00
Pierre Krieger
eeb267e1d6
No longer generate specs with consensus_engine field ( #10346 )
...
* No longer generate specs with consensus_engine field
* #[allow(unused)]
2022-02-24 12:05:08 +00:00
Koute
ba81ba8048
Get rid of unnecessary use of async-std in non-test code ( #10891 )
2022-02-24 11:30:25 +00:00
Bastian Köcher
d9d53c17a1
Switch to edition 2021 ( #4976 )
...
* Switch to edition 2021
* Reset bridges
* Fix compilation
* Fix test-runtime
* Fix malus
2022-02-24 10:20:58 +00:00
dependabot[bot]
1ea0f60a72
Bump proc-macro-crate from 1.1.2 to 1.1.3 ( #4977 )
...
Bumps [proc-macro-crate](https://github.com/bkchr/proc-macro-crate ) from 1.1.2 to 1.1.3.
- [Release notes](https://github.com/bkchr/proc-macro-crate/releases )
- [Commits](https://github.com/bkchr/proc-macro-crate/commits )
---
updated-dependencies:
- dependency-name: proc-macro-crate
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>
2022-02-24 10:20:27 +00:00
dependabot[bot]
5962c57727
Bump clap from 3.1.1 to 3.1.2 ( #4978 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.1.1 to 3.1.2.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.1.1...v3.1.2 )
---
updated-dependencies:
- dependency-name: clap
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>
2022-02-24 10:20:05 +00:00
Alexander Theißen
86540a3a24
Add Canvas runtime to release automation ( #1043 )
2022-02-24 09:06:05 +00:00
dependabot[bot]
5093aab4f4
Bump clap from 3.1.1 to 3.1.2 ( #1046 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.1.1 to 3.1.2.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.1.1...v3.1.2 )
---
updated-dependencies:
- dependency-name: clap
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>
2022-02-23 23:58:52 +00:00
Bastian Köcher
c6363e4682
Remove the last node-primitives leftover... ( #1047 )
2022-02-23 22:52:17 +01:00
dependabot[bot]
903f95ee78
Bump proc-macro-crate from 1.1.2 to 1.1.3 ( #1044 )
...
Bumps [proc-macro-crate](https://github.com/bkchr/proc-macro-crate ) from 1.1.2 to 1.1.3.
- [Release notes](https://github.com/bkchr/proc-macro-crate/releases )
- [Commits](https://github.com/bkchr/proc-macro-crate/commits )
---
updated-dependencies:
- dependency-name: proc-macro-crate
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>
2022-02-23 21:12:32 +00:00
Oliver Tale-Yazdi
9552835ccd
Factor DB weights out into their own files ( #10908 )
...
* Factor DB weights out into their own files
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Review fixes
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix CI
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Weights in own mod
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2022-02-23 19:58:53 +00:00
Éloïs
06f2279182
fix: map cli parameter runtime_cache_size ( #1042 )
2022-02-23 19:47:49 +00:00
Davide Galassi
26ec5d71c8
Clean obsolete BABE's weight data ( #10748 )
...
* Clean obsolete BABE weight data
* Take out test assertion from check closure
* Optimize metadata access using `HeaderMetadata` trait
* Apply suggestions from code review
* Introduce finalize and import pre-commit synchronous actions
* Do not hold locks between internal methods calls
* Remove unused generic bound
* Apply suggestions from code review
* Register BABE's pre-commit actions on `block_import` instead of `start_babe`
* PreCommit actions should be `Fn` instead of `FnMut`
* More robust safenet in case of malformed finality notifications
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
2022-02-23 19:58:33 +01:00
Alexander Theißen
ac1088fed9
Add canvas-rococo chainspec ( #1031 )
2022-02-23 16:19:14 +00:00
Bernhard Schuster
d4176874a1
introduce expander ( #4974 )
...
* introduce expander
* unify towards expand
* bubble up expand
* spelling
Co-authored-by: Andrei Sandu <54316454+sandreim@users.noreply.github.com >
* add newlines
Co-authored-by: Andrei Sandu <54316454+sandreim@users.noreply.github.com >
2022-02-23 14:24:26 +00:00
Davide Galassi
a2b80edf12
Replace libsecp256k1 with k256 in FRAME related code ( #10883 )
...
* Replace libsecp256k1 with k256 in beefy-mmr
* Port of FRAME `contracts` benchmarking from `libsecp256k1` to `k256`
* Newtype to allow `Pcg32` rng usage with `k256` in contracts benchmarks
* Use `sp-io::crypto` to generate dummy keys in `contracts` bechmarks
* More compact code
* Cargo fmt
* Build `sp-keystore` only for dev profile
* Move public key generation back to the `map`
2022-02-23 10:17:47 +01:00
dependabot[bot]
8aff3cb81b
Bump clap from 3.0.14 to 3.1.1 ( #4968 )
...
* Bump clap from 3.0.14 to 3.1.1
Bumps [clap](https://github.com/clap-rs/clap ) from 3.0.14 to 3.1.1.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.0.14...v3.1.1 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* avoid deprecated AppSettings::Hidden
* avoid another deprecated instance
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bernhard Schuster <bernhard@ahoi.io >
2022-02-23 08:31:42 +00:00
dependabot[bot]
3b839476d9
Bump clap from 3.0.7 to 3.1.1 ( #1035 )
...
* Bump clap from 3.0.7 to 3.1.1
Bumps [clap](https://github.com/clap-rs/clap ) from 3.0.7 to 3.1.1.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.0.7...v3.1.1 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* Fix up deprecated usages
* cargo fmt
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2022-02-23 08:31:24 +00:00
André Silva
719127cac3
Companion for substrate#10878 ( #993 )
...
* companion for slot duration changes
* fix aura inherent data provider
* update lockfile for {"polkadot"}
Co-authored-by: parity-processbot <>
2022-02-22 22:27:29 +00:00
Bastian Köcher
c8a935d38f
Remove node-primitives ( #1032 )
...
This is a crate that shouldn't be used outside of the Substrate Node. Here the correct crate is the
`polkadot-core-primitives` to get the `Balance` type.
2022-02-22 23:19:19 +01:00
André Silva
4ff40eb562
Companion for substrate#10878 ( #4940 )
...
* Companion for substrate#10878
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-02-22 21:52:31 +00:00
dependabot[bot]
bd35fcdc62
Bump assert_cmd from 0.12.2 to 2.0.4 ( #1037 )
...
Bumps [assert_cmd](https://github.com/assert-rs/assert_cmd ) from 0.12.2 to 2.0.4.
- [Release notes](https://github.com/assert-rs/assert_cmd/releases )
- [Changelog](https://github.com/assert-rs/assert_cmd/blob/master/CHANGELOG.md )
- [Commits](https://github.com/assert-rs/assert_cmd/compare/v0.12.2...v2.0.4 )
---
updated-dependencies:
- dependency-name: assert_cmd
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>
2022-02-22 21:06:27 +01:00
André Silva
2561e11ed7
consensus-slots: cleanup SlotDuration config ( #10878 )
...
* consensus-slots: cleanup the SlotDuration config
* fix tests
* address review comments
2022-02-22 19:39:16 +00:00
dependabot[bot]
da8a5866a7
Bump tracing from 0.1.30 to 0.1.31 ( #1036 )
...
Bumps [tracing](https://github.com/tokio-rs/tracing ) from 0.1.30 to 0.1.31.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.30...tracing-0.1.31 )
---
updated-dependencies:
- dependency-name: tracing
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>
2022-02-22 19:19:58 +00:00
dependabot[bot]
830b021574
Bump parking_lot from 0.10.2 to 0.12.0 ( #1030 )
...
Bumps [parking_lot](https://github.com/Amanieu/parking_lot ) from 0.10.2 to 0.12.0.
- [Release notes](https://github.com/Amanieu/parking_lot/releases )
- [Changelog](https://github.com/Amanieu/parking_lot/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Amanieu/parking_lot/compare/0.10.2...0.12.0 )
---
updated-dependencies:
- dependency-name: parking_lot
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>
2022-02-22 19:39:09 +01:00
Tsvetomir Dimitrov
fc2ddae965
Use only fresh DisputeStatement-s for dispute spam detection ( #4921 ) ( #4957 )
...
handle_import_statements() from Dispute-Coordinator does spam detection
by counting unconfirmed dispute statements from each validator.
This patch adjusts the logic so that only fresh dispute statements are
counted.
Fresh dispute statement in this case means a statement which was not
loaded from overlay db.
2022-02-22 10:45:45 -06:00
Bastian Köcher
df18c424d8
Dependabot: A new round... ( #1034 )
2022-02-22 16:58:27 +01:00