Kian Paimani
626ca93383
don't read events in elections anymore. ( #9898 )
...
* dont read events in elections anymore.
* Update frame/election-provider-multi-phase/src/lib.rs
* Fix test for Substrate#9898 (#9907 )
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Zeke Mostov <32168567+emostov@users.noreply.github.com >
2021-10-05 06:23:09 +00:00
Shawn Tabrizi
2272a0ed25
Remove incorrect sanity check ( #9924 )
...
* causes issue
* remove the bad error check
2021-10-04 22:19:21 +00:00
Bastian Köcher
cb77e783b7
Require crypto scheme for insert-key ( #9909 )
...
* Require crypto scheme for `insert-key`
We should not "guess" the scheme as this can depend on the
implementation of the runtime etc.
* FMT
2021-10-04 20:55:36 +00:00
Chevdor
95cf70c62a
chore: refresh of the substrate_builder image ( #9808 )
...
* chore: refresh of the substrate_builder image
fix #9715
* chore: renaming + build script
* Fix spaces/tabs
* Add doc
* Remove non binary
* Update docker/substrate_builder.Dockerfile
Co-authored-by: Denis Pisarev <denis.pisarev@parity.io >
2021-10-04 21:19:17 +02:00
Tomasz Drwięga
9dfef89bab
Companion for #9834 (Transaction Priority) ( #3901 )
...
* Add new associated type.
* Update fee multiplier.
* Bump Substrate
2021-10-04 18:13:35 +00:00
Chevdor
6226737f5c
chore: update builder image ( #3884 )
...
* chore: update `builder` image
fix #9765
* fix: fix binary path
* chore: refresh of the builder image + build script
* Fix port
* Fix image source
* Update scripts/dockerfiles/polkadot/polkadot_builder.Dockerfile
Co-authored-by: Denis Pisarev <denis.pisarev@parity.io >
2021-10-04 18:09:19 +02:00
Robert Habermeier
a1bf894d79
Free disputed cores before processing bitfields ( #4008 )
...
* guide: extract free_cores in scheduler
* scheduler: extract free cores to a separate function
* guide: remove disputed cores from scheduler first
* free disputed cores in scheduler before processing bitfields
* spellcheck is mostly right but sometimes stupid
* add comment and fmt
2021-10-04 15:02:31 +00:00
Robert Habermeier
6002865874
Make candidate validation timeouts configurable ( #4001 )
...
* pvf: make execution timeout configurable
* guide: add timeouts to candidate validation params
* add timeouts to candidate validation messages
* fmt
* port backing to use the backing pvf timeout
* port approval-voting to use the execution timeout
* port dispute participation to use the correct timeout
* fmt
* address grumbles & test failure
2021-10-04 09:53:36 -05:00
Tomasz Drwięga
8ae18720e6
Introduce block authorship soft deadline ( #9663 )
...
* Soft limit.
* Add soft deadline tests.
* cargo +nightly fmt --all
* Fix sc-service test.
* Improving tests
2021-10-04 14:30:46 +00:00
Tomasz Drwięga
374fb6a921
Rework Transaction Priority calculation ( #9834 )
...
* Add transaction validity docs.
* Re-work priority calculation.
* Fix tests.
* Update frame/transaction-payment/src/lib.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* cargo +nightly fmt --all
* Fix an obvious mistake :)
* Re-work again.
* Fix test.
* cargo +nightly fmt --all
* Make VirtualTip dependent on the transaction size.
* cargo +nightly fmt --all
* Update frame/transaction-payment/src/lib.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Fix compilation.
* Update bin/node/runtime/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-10-04 14:25:18 +00:00
Chevdor
114e757988
Add extrinsic ordering filtering ( #3631 )
2021-10-04 16:06:26 +02:00
Koute
886c42c5c8
Do not propagate host RUSTFLAGS when checking for WASM toolchain ( #9926 )
...
* Do not propagate host RUSTFLAGS when checking for WASM toolchain
* Update utils/wasm-builder/src/prerequisites.rs
* Update utils/wasm-builder/src/prerequisites.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-10-04 13:28:51 +00:00
Bernhard Schuster
462bbc94b4
chore: ci list files that spellcheck finds ( #3992 )
...
* chore: ci list files that spellcheck finds
Avoid -r flag for false positives
* avoid master
* improve
2021-10-04 12:36:54 +00:00
Robert Habermeier
bd734ff61b
Use background tasks properly in candidate-validation ( #4002 )
...
* refactor: candidate-validation background tasks
* fix tests
* fmt
2021-10-04 07:25:17 -05:00
Jaco
73d765ec30
Small quoting comment fix ( #9927 )
...
Tiny quotes fix that snuck in lately (something I picked up elsewhere in document generation)
2021-10-04 13:56:06 +02:00
Bastian Köcher
dc13782f9d
Fix unoccupied bitfields ( #4004 )
...
* Fix unoccupied bitfields
If there is an unoccupied bitfield set, we should just ignore it and not
keep it for the rest of the logic in `process_bitfields`.
* Bring back test, but this time corrected
* Remove incorrect code
2021-10-04 11:14:03 +00:00
dependabot[bot]
cd4beed7d8
Bump syn from 1.0.77 to 1.0.78 ( #4006 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.77 to 1.0.78.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.77...1.0.78 )
---
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>
2021-10-04 11:54:09 +02:00
Bastian Köcher
bd6b147235
Add relay_parent to block announce data ( #640 )
...
* Add `relay_parent` to block announce data
This is required to make it more future proof when contextual execution is coming. While this
changes the `BlockAnnounceData` type, it is written in a way to make it backwards compatible.
* FMT
2021-10-04 09:53:18 +02:00
joe petrowski
12b06dbf46
make asset creation on westmint low cost ( #642 )
2021-10-04 09:52:59 +02:00
dependabot[bot]
d676587a3a
Bump jsonrpsee-ws-client from 0.3.0 to 0.3.1 ( #3931 )
...
Bumps [jsonrpsee-ws-client](https://github.com/paritytech/jsonrpsee ) from 0.3.0 to 0.3.1.
- [Release notes](https://github.com/paritytech/jsonrpsee/releases )
- [Changelog](https://github.com/paritytech/jsonrpsee/blob/master/CHANGELOG.md )
- [Commits](https://github.com/paritytech/jsonrpsee/compare/v0.3.0...v0.3.1 )
---
updated-dependencies:
- dependency-name: jsonrpsee-ws-client
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-10-03 23:11:24 +02:00
Robert Habermeier
a19ef45e5e
fix clock drift for assignments issued before the block ( #3851 )
...
* fix clock drift for assignments issued before the block
* always broadcast tranche 0 assignments
* Update tests
* Change from min to max
* Remove erronious print statement
* guide: require fixed approval delay
* prevent approval by very recent assignments
* fix approval-checking tests
* fix main approval tests
* Fix tests
* Fix looked over test
* fix test
Co-authored-by: Lldenaurois <Ljdenaurois@gmail.com >
2021-10-03 14:41:06 -05:00
Robert Habermeier
6d83b59944
Remove unoccupied bit check ( #3999 )
...
* remove the check for unoccupied bitfields
* bump rococo version
* fix warning about occupied bitmask
2021-10-03 16:28:02 +00:00
Robert Habermeier
ec180fec9e
bump substrate ( #4000 )
2021-10-03 16:20:39 +00:00
Squirrel
c9410186f1
add clippy to CI ( #9694 )
...
* Focus on correctness lints. This relies on a compiler patch that landed 8th July 2021.
If people are using an earlier version of the compiler everything will still work unless they try and run clippy.
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Denis Pisarev <denis.pisarev@parity.io >
2021-10-03 17:09:26 +01:00
Robert Habermeier
06c4e20992
Ensure BeforeBestBlockBy voting rule accounts for base ( #9920 )
...
* Ensure BeforeBestBlockBy voting rule accounts for base
* fmt
Co-authored-by: Andronik Ordian <write@reusable.software >
2021-10-03 15:15:30 +02:00
Andronik Ordian
fe8bba1e9a
change genesis authority set for wococo-local, revert rococo-local ( #3998 )
2021-10-03 06:26:32 -05:00
Robert Habermeier
385d082d95
ignore irrelevant approvals in logs ( #3859 )
...
* ignore irrelevant approvals in logs
* fix
2021-10-03 13:10:24 +02:00
Bernhard Schuster
5a1dc74a9a
avoid expect, on free availability core ( #3994 )
...
* MVP fix
* bump spec version rococo
* fmt
* better var names
* remove duplicate desc
* expand comment
2021-10-03 06:09:53 -05:00
Dan Shields
b9c615c8d4
rm .maintain lock ( #9919 )
...
* rm maintain lock
* ignore template gen lockfile
2021-10-02 21:01:07 +02:00
Andronik Ordian
e0a0b5612e
docs: make collators actually work ( #638 )
...
* docs: make collators actually work
* bump polkadot
* include recent fix for overseer
2021-10-02 21:00:18 +02:00
Robert Habermeier
c48b2f08ad
preserve finalized block in active leaves ( #3997 )
2021-10-02 19:01:53 +02:00
Andronik Ordian
679c51eb57
some tweaks to rococo-local ( #3996 )
...
* some tweaks to rococo-local
* rococo-local, not staging
2021-10-02 13:40:56 +00:00
Dan Shields
619b3a5a68
Downstream node-template pull ( #9915 )
...
* downstream node template pull: README updated, add shell.nix
* consistant cargo.toml style
* Update bin/node-template/shell.nix
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-10-02 08:27:06 +00:00
Jay Pavlina
b890a28ca3
Implement core::fmt::Debug for BoundedVec ( #9914 )
2021-10-02 08:11:37 +00:00
Robert Habermeier
307a91f431
always broadcast tranche 0 assignments and add a delay before approval ( #3904 )
...
* always broadcast tranche 0 assignments
* guide: require fixed approval delay
* prevent approval by very recent assignments
* fix approval-checking tests
* fix main approval tests
2021-10-02 01:59:07 +02:00
Gavin Wood
3bab876bc1
Tidy up XCM errors in preparation for v2. ( #3988 )
...
* Tidy up XCM errors
* Tidy up errors
* Re-order
* Fixes
* Formatting
* map undefined errors
* add functor to dictionary
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-10-02 00:14:13 +02:00
Robert Habermeier
09cecc82de
add disputes call to Rococo ( #3993 )
2021-10-01 21:32:27 +00:00
Robert Habermeier
547d166f20
Fix an off-by-one: revert rather than revert-to ( #3991 )
...
* fix off-by-one in disputes reversion code
* bump Rococo spec version
2021-10-01 20:24:35 +00:00
Bernhard Schuster
44e9482596
add logs to relay chain selection ( #3990 )
...
* add logs to relay chain selection
* use tracing features
* more log
2021-10-01 19:46:47 +00:00
Andronik Ordian
9825eb9fb2
av-store: clean up StoreAvailableData message ( #3984 )
...
* av-store: clean up StoreAvailableData message
* fmt
* use named fields
2021-10-01 17:33:39 +00:00
radupopa2010
df184c8088
add polkadot-simnet runner ( #3985 )
2021-10-01 17:48:25 +03:00
Tomasz Drwięga
085935dd0a
Quickly skip invalid transactions during block authorship. ( #9789 )
...
* Support skipping invalid transactions in the iterator.
* Expose concrete iterator.
* cargo +nightly fmt --all
* More consistent placement.
* Update Cargo.lock
* Pass transaction to 'report_invalid'
2021-10-01 14:25:13 +00:00
Bastian Köcher
a8d84dba8e
Same procedure as not every day ( #636 )
...
* Same procedure as not every day
* Remove warning
* Update
2021-10-01 13:23:56 +02:00
RyuH1
29ff036463
Add SS58 prefix for Automata ( #9805 )
2021-10-01 11:22:13 +00:00
Bastian Köcher
e5cd5db383
Remove incorrect proof about Jemalloc ( #3982 )
...
* Remove incorrect proof about Jemalloc
The truth is that Jemalloc is not always the default allocator. This is
only true for the polkadot binary.
* Fmt
* Rephrase
2021-10-01 11:55:22 +02:00
Liu-Cheng Xu
00973f5b62
Clean up sc-peerset ( #9806 )
...
* Clean up sc-peerset
* cargo +nightly fmt --all
* Nit
* Nit
* .
* Nit
* .
* Apply suggestions from code review
* .
* Update client/peerset/src/peersstate.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-10-01 09:43:55 +00:00
Pierre Besson
46c27cca2e
add new rococo chainspec ( #3976 )
2021-10-01 08:57:44 +00:00
João Paulo Silva de Souza
38707ab454
bump async-std's version to remove conflict for substrate ( #3981 )
...
https://gitlab.parity.io/parity/substrate/-/jobs/1151852#L367
https://gitlab.parity.io/parity/substrate/-/jobs/1151852#L369
2021-10-01 10:22:15 +02:00
ucover
f8ce186496
Test each benchmark case in own #[test] ( #9860 )
...
* Generate one #[test] fn per bench case.
* Update benchmark macro syntax in frame pallets.
* Explain new benchmark macro syntax in example pallet.
* support with and without a semicolon
* update pallets to use individual tests
* migrate staking too
* migrate more pallets
* fix up democracy and use individual tests
* Fix comment
* Put println message in panic
* Remove `another_set_dummy` from doc
`another_set_dummy` is not present in the benchmarking.rs (anymore).
* Update doc for benchmarks macro
* Update doc for impl_benchmark_test_suite macro
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-10-01 08:17:26 +00:00
Alexander Samusev
a31ab1fc37
Add build with docker section to README ( #9792 )
...
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-10-01 03:54:41 +00:00