cheme
183b52e7db
update parity-db ( #5175 )
2022-03-22 09:55:57 +00:00
Bernhard Schuster
0e34a8080f
miniscule: fix edition fmt ( #5167 )
...
* miniscule: fix edition fmt
* fix: rust analyzer might enable this and hence cause red squiggles
Reduce the visual overload.
* fix/spellcheck/quirk: allow 124_123 numbers
2022-03-21 13:00:59 +00:00
Bernhard Schuster
189dfdc006
approval dist imrpo ( #5161 )
...
* minor approval voting refactor
* ignore recently outdated ones
* check in another branch
* don't be a doofus
* add newline
* remove a superflous check
* fix missing ,
* consistency
* Update node/network/approval-distribution/src/lib.rs
Co-authored-by: Andronik <write@reusable.software >
* fixup
Co-authored-by: Andronik <write@reusable.software >
2022-03-21 12:17:54 +00:00
asynchronous rob
d706faa1b6
add a metric for report events in network bridge ( #5160 )
2022-03-18 16:22:02 +00:00
asynchronous rob
be2c91555e
have some lenience on outdated messages in statement distribution ( #5150 )
...
* have some lenience on outdated messages in statement distribution
* fmt
2022-03-18 16:12:26 +00:00
Vsevolod Stakhov
a97ee7b122
Some improvements in the statement-distribution histograms ( #5154 )
2022-03-18 15:23:34 +00:00
Robert Klotzner
3688e46d1b
Don't wait for dispute coordinator ( #5157 )
...
* Don't wait for dispute coordinator
in backing and approval-voting - we are single threaded there, so this
is blocking everything.
* Add missing import.
* Don't warn on dropped receiver.
2022-03-18 15:15:50 +00:00
dependabot[bot]
495b6cc937
Bump quote from 1.0.15 to 1.0.16 ( #5152 )
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.15 to 1.0.16.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.15...1.0.16 )
---
updated-dependencies:
- dependency-name: quote
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-03-18 16:15:04 +01:00
asynchronous rob
d76583cd3b
fix freshness calculations in statement distribution ( #5151 )
...
* fix freshness calculations in statement distribution
* Fix logic.
Co-authored-by: Robert Klotzner <robert.klotzner@gmx.at >
2022-03-18 15:40:44 +01:00
Bernhard Schuster
6e3b5f1888
bitfield dist logging cleanup and enhancements ( #5147 )
...
* split metrics from bitfield signing
* cleanup all logging
* add a unit test for subset generation
* chore: add one more test to assert need is properly represented
* u8 as usize
* chore: overseer fixin
* fix test
* Update node/network/bitfield-distribution/src/metrics.rs
Co-authored-by: Andrei Sandu <54316454+sandreim@users.noreply.github.com >
* Update node/network/bitfield-distribution/src/metrics.rs
Co-authored-by: Andrei Sandu <54316454+sandreim@users.noreply.github.com >
* fallout from suggested rename
* consistency
Co-authored-by: Andrei Sandu <54316454+sandreim@users.noreply.github.com >
2022-03-18 13:44:38 +00:00
dependabot[bot]
61a6004cf1
Bump parity-scale-codec from 3.1.0 to 3.1.2 ( #5153 )
...
Bumps [parity-scale-codec](https://github.com/paritytech/parity-scale-codec ) from 3.1.0 to 3.1.2.
- [Release notes](https://github.com/paritytech/parity-scale-codec/releases )
- [Changelog](https://github.com/paritytech/parity-scale-codec/blob/master/CHANGELOG.md )
- [Commits](https://github.com/paritytech/parity-scale-codec/commits )
---
updated-dependencies:
- dependency-name: parity-scale-codec
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-03-18 10:32:49 +00:00
Robert Klotzner
569599853d
Logs for large messages + metrics on size. ( #5143 )
...
* Logs for large messages + metrics on size.
* Fix typo
2022-03-17 19:57:35 +00:00
Bernhard Schuster
16fe04dc79
track tof for inter subsystem messages ( #5135 )
2022-03-17 11:19:11 +01:00
dependabot[bot]
5c21822e17
Bump syn from 1.0.88 to 1.0.89 ( #5146 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.88 to 1.0.89.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.88...1.0.89 )
---
updated-dependencies:
- dependency-name: syn
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-03-17 10:57:57 +01:00
Vsevolod Stakhov
310a2e9911
Sligth improvements to the collator side metrics and logs ( #5144 )
...
* Use more reasonable buckets for `process_msg` histogram
* Another adjustments of the buckets
* Move historgram timer to a more relevant place
* Add a dedicated collation distribution time metric
* Cargo fmt
2022-03-17 09:39:44 +00:00
Bernhard Schuster
20d0cf0ae9
provisioner logs minor janitor duties ( #5142 )
...
* provisioner data, one more log
* minor cleanups in provisioner logs
* remove deprecated foo in overseer
Closes #5128
* candidate_hash needs the ? prefix in gum
* demote to trace
2022-03-17 09:02:49 +00:00
Tsvetomir Dimitrov
f35f5ae9a4
Additional tracing in provisioner ( #5125 )
...
* Additional tracing in provisioner
Add debug logs for `fn send_inherent_data`.
* Code review feedback
* Code review feedback
* Code review feedback
* Fix unit tests
2022-03-16 15:55:10 +00:00
Robert Habermeier
1d695612c4
strengthen signals-received atomics ( #5132 )
...
* strengthen signals-received atomics
* Update node/overseer/overseer-gen/src/lib.rs
Co-authored-by: Andrei Sandu <54316454+sandreim@users.noreply.github.com >
* fmt
Co-authored-by: Andrei Sandu <54316454+sandreim@users.noreply.github.com >
2022-03-16 16:40:32 +01:00
Vsevolod Stakhov
11d78a049b
Collator protocol debug ( #5129 )
...
* add two more timers
* Update node/network/availability-recovery/src/metrics.rs
* Try to improve comments spelling
* Cargo fmt iteration
* Add some presumably useful debugging for collator protocol
* Address review comments
Co-authored-by: Bernhard Schuster <bernhard@ahoi.io >
2022-03-16 06:43:50 +00:00
Robert Habermeier
5904ae418e
make more subsystems blocking, fix blocking subsystem spawning ( #5133 )
...
* make more subsystems blocking
* actually spawn blocking subsystems on their own threads
2022-03-16 06:41:20 +00:00
dependabot[bot]
2ead4ce12d
Bump syn from 1.0.87 to 1.0.88 ( #5118 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.87 to 1.0.88.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.87...1.0.88 )
---
updated-dependencies:
- dependency-name: syn
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-03-15 21:18:18 +01:00
Robert Klotzner
582f8628ea
Add more info to logs. ( #5123 )
2022-03-15 19:39:43 +00:00
Bernhard Schuster
d309a24e50
observability: add two more timers ( #5124 )
...
* add two more timers
* Update node/network/availability-recovery/src/metrics.rs
* Try to improve comments spelling
* Cargo fmt iteration
Co-authored-by: Vsevolod Stakhov <vsevolod.stakhov@parity.io >
2022-03-15 15:23:05 +00:00
Doordashcon
b72bd9ef6c
StatementDistributionMessage::get_metadata is a footgun and should be removed ( #5101 )
...
* remove get_metadata method
* cargo fmt
* add get_metadata function in test
* cargo fmt
* Update node/network/statement-distribution/src/tests.rs
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
* update
* update
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
2022-03-15 11:52:01 +00:00
Vsevolod Stakhov
3a862e2a54
Add metrics timer for the PerRequest structure lifetime ( #5108 )
...
* Add metrics timer for the PerRequest structure lifetime
* Add custom buckets
2022-03-15 11:05:35 +00:00
Bernhard Schuster
d631f1dea8
observability: tracing gum, automatically cross ref traceID ( #5079 )
...
* add some gum
* bump expander
* gum
* fix all remaining issues
* last fixup
* Update node/gum/proc-macro/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* change
* netowrk
* fixins
* chore
* allow optional fmt str + args, prep for expr as kv field
* tracing -> gum rename fallout
* restrict further
* allow multiple levels of field accesses
* another round of docs and a slip of the pen
* update ADR
* fixup lock fiel
* use target: instead of target=
* minors
* fix
* chore
* Update node/gum/README.md
Co-authored-by: Andrei Sandu <54316454+sandreim@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Andrei Sandu <54316454+sandreim@users.noreply.github.com >
2022-03-15 11:05:16 +00:00
Robert Habermeier
474a2c02c4
Some small log improvements ( #5110 )
...
* improve provisioner log
* change log target from availability to availability-store
2022-03-14 19:22:48 +00:00
dependabot[bot]
3335ddc0da
Bump parity-scale-codec from 3.0.0 to 3.1.0 ( #5096 )
...
Bumps [parity-scale-codec](https://github.com/paritytech/parity-scale-codec ) from 3.0.0 to 3.1.0.
- [Release notes](https://github.com/paritytech/parity-scale-codec/releases )
- [Changelog](https://github.com/paritytech/parity-scale-codec/blob/master/CHANGELOG.md )
- [Commits](https://github.com/paritytech/parity-scale-codec/compare/v3.0...parity-scale-codec-v3.1.0 )
---
updated-dependencies:
- dependency-name: parity-scale-codec
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-03-14 19:34:46 +01:00
dependabot[bot]
111f5b0692
Bump syn from 1.0.86 to 1.0.87 ( #5095 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.86 to 1.0.87.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.86...1.0.87 )
---
updated-dependencies:
- dependency-name: syn
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-03-14 19:28:01 +01:00
Vsevolod Stakhov
55b38b2b8f
Approval-distribution: Fix out-of-view messages caused by a race condition in view updates ( #5089 )
...
* Try to fix out-of-view messages in approval distribution
Suggested by: @ordian
* Cargo fmt
* Add a unit test for the proposed fix
* Spelling fix
* Use a simplier approach to fix the race condition as suggested by @rphmeier
* Cargo fmt run
2022-03-14 17:07:32 +01:00
Tsvetomir Dimitrov
c18e804c3d
Fix units usage in node/service/src/chain_spec.rs ( #5099 )
...
For clarity replace `DOT` with `WND` and `ROC` in
`westend_testnet_genesis` and `rococo_testnet_genesis` functions.
2022-03-14 15:24:18 +00:00
Oliver Tale-Yazdi
eec58039f1
Parachain runtime dependent weights ( #5091 )
...
* Prepare for parachain runtime dependent weights
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Lockfile
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* CI
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* fmt
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* CI
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* CI
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2022-03-12 19:37:24 +00:00
Oliver Tale-Yazdi
2b8f6e9d0a
Runtime dependent weights ( #5064 )
...
* Copy Substrate weights into each runtime
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Define weights per runtime
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Do the same for test-runtime
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix CI
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Generate multiplier tests via macro
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix tests
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix CI
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix imports
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix test
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix imports
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Change rococo tests to use ExtrinsicBaseWeight
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix imports
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Spellcheck on
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Spellcheck on
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Spellcheck
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Re-Export weight constants in the runtime
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Prepare for cumulus companion
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fmt
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2022-03-11 16:36:08 +00:00
dependabot[bot]
078bf68037
Bump expander from 0.0.5 to 0.0.6 ( #5086 )
...
Bumps [expander](https://github.com/drahnr/expander ) from 0.0.5 to 0.0.6.
- [Release notes](https://github.com/drahnr/expander/releases )
- [Commits](https://github.com/drahnr/expander/compare/v0.0.5...v0.0.6 )
---
updated-dependencies:
- dependency-name: expander
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-03-11 16:27:14 +01:00
Chris Sosnin
681f3f4ed9
Fix session index lookup for activated leaf ( #4850 )
2022-03-11 12:14:48 +01:00
Dan Shields
6fc2da146f
Bump all spec version to 9180 and versions to 0.9.18 ( #5083 )
...
* bump all spec version to 9180 and versions to 0.9.18
* all to 0.9.18
* lock update
2022-03-11 10:19:47 +01:00
Robert Habermeier
8a17c614f0
Check signatures as "Compact" in statement distribution ( #5071 )
...
* allow converting payloads _up_
* convert to superpayload in statement-distribution
* Update primitives/src/v2/signed.rs
Co-authored-by: Andronik <write@reusable.software >
Co-authored-by: Andronik <write@reusable.software >
2022-03-10 20:49:35 +00:00
Bernhard Schuster
9369dd3384
update mick jaeger and add some sanity unit tests ( #5067 )
...
* test: verify identifier generation is correct in jaeger
* bump mick jaeger to 0.1.8
Fixes the trace endianness issue.
* more docs, extra traceID field for CandidateHash as extra tag
* chore: spellcheck
* fix assert statement
2022-03-10 17:25:54 +00:00
dependabot[bot]
a863bfe69d
Bump tracing from 0.1.31 to 0.1.32 ( #5075 )
...
Bumps [tracing](https://github.com/tokio-rs/tracing ) from 0.1.31 to 0.1.32.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.31...tracing-0.1.32 )
---
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-03-10 09:45:57 +00:00
Robert Habermeier
49f7e5cce4
Finish migration to v2 primitives ( #5037 )
...
* remove v0 primitives from polkadot-primitives
* first pass: remove v0
* fix fallout in erasure-coding
* remove v1 primitives, consolidate to v2
* the great import update
* update runtime_api_impl_v1 to v2 as well
* guide: add `Version` request for runtime API
* add version query to runtime API
* reintroduce OldV1SessionInfo in a limited way
2022-03-09 14:01:13 -06:00
Bernhard Schuster
3394cbb142
make debug log less noisy ( #5063 )
2022-03-09 14:28:51 +00:00
Robert Klotzner
acaf0d84fe
Improve parachain liveness by reducing required number of backing votes ( #5016 )
...
* Let node side take advantage reduced requirements
in the runtime and hopefully improve liveness of parachains by means of
that.
* Fix tests.
2022-03-08 20:33:55 +00:00
Arkadiy Paronyan
1bdcf537f0
Companion PR for storage changes ( #4837 )
...
* Update for latests substrate
* update substrate
2022-03-04 13:27:10 +01:00
cheme
d5ddb1a809
paritydb support for parachains db. ( #4838 )
...
* parity db subsystem without cache and no splitted column
* fmt
* fix path (auto from parity-db fail)
* lru cache for db column with cache
* Revert "lru cache for db column with cache"
This reverts commit ae177bc5e107a075eff6a21f651218ada6599b74.
* Write_lock mutex
* theoric code for bridges
* revert changes
* Revert bridge changes
* fix spec_version
* update parity db
* test purge-db
* Use specific ordered collection with paritydb.
* Revert "Use specific ordered collection with paritydb."
This reverts commit 8b66d0a4ae914cba1af0f44050d45dd6d9327c6b.
* fix chain selection tests.
* remove patch
* fix auto.
* Remove useless exists directory method
* purge chain without parity-db removal
* spellcheck
* renamings and filtering.
* fix assertion
* format
* update parity-db and fmt
* Auto keep using rocksdb when it exists.
* Revert "Auto keep using rocksdb when it exists."
This reverts commit cea49b32ae590bdce31fed5c45f3c028ae0c7564.
* Update kvdb version.
2022-03-03 11:49:38 +00:00
dependabot[bot]
44ceb6ddd3
Bump lru from 0.7.2 to 0.7.3 ( #5008 )
...
Bumps [lru](https://github.com/jeromefroe/lru-rs ) from 0.7.2 to 0.7.3.
- [Release notes](https://github.com/jeromefroe/lru-rs/releases )
- [Changelog](https://github.com/jeromefroe/lru-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/jeromefroe/lru-rs/compare/0.7.2...0.7.3 )
---
updated-dependencies:
- dependency-name: lru
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-03-02 01:16:13 +00:00
dependabot[bot]
40dca1a460
Bump expander from 0.0.4 to 0.0.5 ( #4985 )
...
* Bump expander from 0.0.4 to 0.0.5
Bumps [expander](https://github.com/drahnr/expander ) from 0.0.4 to 0.0.5.
- [Release notes](https://github.com/drahnr/expander/releases )
- [Commits](https://github.com/drahnr/expander/compare/v0.0.4...v0.0.5 )
---
updated-dependencies:
- dependency-name: expander
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* no default features unless we use them
* fixup cargo lock
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bernhard Schuster <bernhard@ahoi.io >
2022-03-01 13:21:39 +00:00
Andronik
91ea5bbf57
dispute-distribution: downgrade a warn ( #5003 )
...
* dispute-distribution: downgrade a warn
* change at the logging side instead
2022-03-01 11:01:15 +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
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