Amar Singh
90e6d318c7
Add unit tests to pallet-xcm ( #3539 )
...
* init
* reserve transfer asset unit test
* happy path tests for all dispatchables and can teleport assets to self surprisingly enough
* better tests
* minimize mock
* clean
* test send xcm failure when router blocks
* rm numbers to prefer variables
* clean
* test execute with local effects
* rm local env stuff
* copyrights
* fix merge conflict
* appease spellcheck
* fmt
* address review comments
* clean constants
* fmt
2021-08-03 11:07:30 +00:00
Andronik Ordian
f179e8f5e1
bump crossbeam-deque to 0.7.4 ( #3561 )
2021-08-03 09:44:45 +00:00
Sergei Shulepov
1434b20613
Companion: Limit the maximum number of wasm memory pages a runtime can have ( #3449 )
...
* Add `max_memory_pages`
* update Substrate
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: parity-processbot <>
2021-08-02 20:05:31 +00:00
Arkadiy Paronyan
30e3012270
Companion PR for warp sync support. ( #3382 )
...
* Update for the new GrandpaAPI
* Update substrate
* Update substrate
2021-08-02 09:59:50 +00:00
Shawn Tabrizi
3445cbecd0
Companion for #9373 (Refactor Benchmarks for Wasm Memory) ( #3549 )
...
* cargo update -p sp-io
* fix benchmarking
* fix bridge benchmarks
2021-08-02 09:17:19 +00:00
Shaun W
1b0baab401
XCM simulator ( #3538 )
...
* Add xcm-simulator and xcm-simulator-example.
* Abstract xcmp and dmp handling.
* Use mock message queue.
* Xcm simulator example unit tests.
* Use relay chain block number on sending msg.
* Fix typo.
* fmt
* more fmt
* Fix deps.
2021-08-01 15:16:14 +00:00
Squirrel
4c5b73097c
Companion for substrate #9319 ( #3456 )
...
* move client consensus code out of primitives
* merging crates
* import tweak
* Fixing build: ServiceFactory is a word...
* updating lock file
* Fixed typo in error message
(to bump build)
* update Substrate
Co-authored-by: parity-processbot <>
2021-07-30 14:02:43 +00:00
Bastian Köcher
f5a7affb94
Companion for Substrate#9165 ( #3526 )
...
* Companion for Substrate#9165
https://github.com/paritytech/substrate/pull/9165
* update Substrate
Co-authored-by: parity-processbot <>
2021-07-27 21:58:59 +00:00
Andronik Ordian
e1be821fe1
change ActiveLeaves to contain at most one activated ( #3525 )
...
* change ActiveLeaves to contain at most one activated
* fix test
2021-07-27 16:45:15 +02:00
Bernhard Schuster
6519ba987c
integrate dispute finality ( #3484 )
...
* finality_target adjustments
* fn finality_target
* partially address review comments
* fixins
* more rustic if condition
* fix tests
* fixins
* Update node/core/approval-voting/src/lib.rs
Co-authored-by: Andronik Ordian <write@reusable.software >
* Update node/core/approval-voting/src/lib.rs
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
* review comments part one
* rename candidates -> block_descriptions
* testing outline (incomplete, WIP)
* test foo
* split RelayChainSelection into RelayChainSelection{,WithFallback}, introduce HeaderProvider{,Provider}
* make some stuff public (revert this soon™)
* some test improvements
* slips of pens
* test fixins
* add another trait abstraction
* pending edge case tests + warnings fixes
* more test cases
* fin
* chore fmt
* fix cargo.lock
* Undo obsolete changes
* // comments
* make mod pub(crate)
* fix
* minimize static bounds
* resolve number() as before
* fmt
* post merge fix
* address some nits
Co-authored-by: Andronik Ordian <write@reusable.software >
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
2021-07-26 17:54:50 +02:00
Andronik Ordian
bd9b743872
enable disputes ( #3478 )
...
* initial integration and migration code
* fix tests
* fix counting test
* assume the current version on missing file
* use SelectRelayChain
* remove duplicate metric
* Update node/service/src/lib.rs
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
* remove ApprovalCheckingVotingRule
* address my concern
* never mode for StagnantCheckInterval
* REVERTME: some logs
* w00t
* it's ugly but it works
* Revert "REVERTME: some logs"
This reverts commit e210505a2e83e31c381394924500b69277bb042e.
* it's handle, not handler
* fix a few typos
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
2021-07-26 14:46:31 +02:00
Zeke Mostov
aac9d77ee2
Reduce staking miner reward (companion substrate/pull/9395) ( #3465 )
...
* Reduce staking miner reward
* Add EOF
* Fix stuff
* remove import
* Add tyoe
* remove redundant stuff
* update Substrate
Co-authored-by: kianenigma <kian@parity.io >
Co-authored-by: parity-processbot <>
2021-07-23 09:58:29 +00:00
Lldenaurois
1858ff57fc
Dispute coordinator - Recover disputes on startup ( #3481 )
...
* node/dispute-coordinator: Introduce resume capability
This commit introduces a resume capability for the
dispute coordinator subsystem. Specifically, this will allow
to recover data for disputes for which we have no local statements.
* node/dispute-coordinator: Add resume function to TestState and modify Harness
This commit modifies the TestHarness to return a TestState. We subsequently
define a resume function on TestState that allows to interrupt the test and
test specifically for behavior on startup of the subsystem.
* node/dispute-coordinator: Implement resume functionality
This commit implements the resume functionality for the subsystem.
In addition, we will forward any DisputeParticipation::Participate
message in order to ensure that disputes for which we do not have
local statements may be recovered in due time.
* Address Feedback
* Modify to run handle_leaf on first import
* Modify missing_local_statement logic
* node/dispute-coordinator: Add simple test to ensure we adequately
handle local_statements that are not missing.
* Add missing keystore tests
2021-07-21 16:36:43 -05:00
dependabot[bot]
1fd956079a
Bump indexmap from 1.6.1 to 1.7.0 ( #3497 )
...
Bumps [indexmap](https://github.com/bluss/indexmap ) from 1.6.1 to 1.7.0.
- [Release notes](https://github.com/bluss/indexmap/releases )
- [Commits](https://github.com/bluss/indexmap/compare/1.6.1...1.7.0 )
---
updated-dependencies:
- dependency-name: indexmap
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-07-21 10:56:14 +00:00
Xiliang Chen
88a4fd0351
Companion for substrate #9315 ( #3477 )
...
* fix
* update
2021-07-20 20:59:54 +00:00
Bastian Köcher
b94f294f4d
Update secp256k1 and remove unrequired usage ( #3502 )
...
* Update secp256k1 and remove unrequired usage
* Rename missed old crate names
* Enable required feature
2021-07-20 12:21:27 -05:00
dependabot[bot]
d3adc575a6
Bump libc from 0.2.91 to 0.2.98 ( #3496 )
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.91 to 0.2.98.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.91...0.2.98 )
---
updated-dependencies:
- dependency-name: libc
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-07-19 19:31:55 +00:00
dependabot[bot]
6ba5d53621
Bump slotmap from 1.0.2 to 1.0.5 ( #3495 )
...
Bumps [slotmap](https://github.com/orlp/slotmap ) from 1.0.2 to 1.0.5.
- [Release notes](https://github.com/orlp/slotmap/releases )
- [Changelog](https://github.com/orlp/slotmap/blob/master/RELEASES.md )
- [Commits](https://github.com/orlp/slotmap/compare/v1.0.2...v1.0.5 )
---
updated-dependencies:
- dependency-name: slotmap
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-07-19 18:54:58 +00:00
Andreas Doerr
67e671ff75
Gossip rebroadcast rate limiter ( #3494 )
2021-07-19 18:20:29 +00:00
Robert Habermeier
ec98120f0e
Disputes runtime ( #2947 )
...
* disputes module skeleton and storage
* implement dispute module initialization logic
* implement disputes session change logic
* provide dispute skeletons
* deduplication & ancient check
* fix a couple of warnings
* begin provide_dispute_data impl
* flesh out statement set import somewhat
* move ApprovalVote to shared primitives
* add a signing-payload API to explicit dispute statements
* implement statement signature checking
* some bitflags glue for observing changes in disputes
* implement dispute vote import logic
* flesh out everything except slashing
* guide: tweaks
* declare and use punishment trait
* punish validators for inconclusive disputes
* guide: tiny fix
* guide: update docs
* add disputes getter fn
* guide: small change to spam slots handling
* improve spam slots handling and fix some bugs
* finish API of disputes runtime
* define and deposit `RevertTo` log
* begin integrating disputes into para_inherent
* use precomputed slash_for/against
* return candidate hash from process_bitfields
* implement inclusion::collect_disputed
* finish integration into rest of runtime
* add Disputes to initializer
* address suggestions
* use pallet macro
* fix typo
* Update runtime/parachains/src/disputes.rs
* add test: fix pruning
* document specific behavior
* deposit events on dispute changes
* add an allow(unused) on fn disputes
* add a dummy PunishValidators implementation
* add disputes module to Rococo
* add disputes module to westend runtime
* add disputes module to test runtime
* add disputes module to kusama runtime
* guide: prepare for runtime API for checking frozenness
* remove revert digests in favor of state variable
* merge reversions
* Update runtime/parachains/src/disputes.rs
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
* Update runtime/parachains/src/disputes.rs
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
* Update runtime/parachains/src/disputes.rs
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
* add byzantine_threshold and supermajority_threshold utilities to primitives
* use primitive helpers
* deposit revert event when freezing chain
* deposit revert log when freezing chain
* test revert event and log are generated when freezing
* add trait to decouple disputes handling from paras inherent handling
* runtime: fix compilation and setup dispute handler
* disputes: add hook for filtering out dispute statements
* disputes: add initializer hooks to DisputesHandler
* runtime: remove disputes pallet from all runtimes
* tag TODOs
* don't import any dispute statements just yet...
* address grumbles
* fix spellcheck, hopefully
* maybe now?
* last spellcheck round
* fix runtime tests
* fix test-runtime
Co-authored-by: thiolliere <gui.thiolliere@gmail.com >
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
Co-authored-by: André Silva <andrerfosilva@gmail.com >
2021-07-19 16:49:19 +00:00
dependabot[bot]
4636daa7ce
Bump async-process from 1.0.1 to 1.1.0 ( #3122 )
...
Bumps [async-process](https://github.com/smol-rs/async-process ) from 1.0.1 to 1.1.0.
- [Release notes](https://github.com/smol-rs/async-process/releases )
- [Changelog](https://github.com/smol-rs/async-process/blob/master/CHANGELOG.md )
- [Commits](https://github.com/smol-rs/async-process/compare/v1.0.1...v1.1.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-19 11:27:15 -05:00
Tomasz Drwięga
79174e0b7e
Update BEEFY+MMR integration. ( #3480 )
...
* Update MMR leaf.
* Revert to older substrate.
* Add version docs.
* Fix spellcheck.
2021-07-16 15:13:20 +02:00
Andreas Doerr
afa1b53910
Fix noting rounds for non-authorities ( #3474 )
2021-07-15 08:25:13 +00:00
Zeke Mostov
ed9208b749
Upgrade staking-miner to use jsonrpsee v0.3 ( #3466 )
2021-07-14 17:30:46 +00:00
Seun Lanlege
ab9c86d5e7
Introduce test runner biolerplate ( #2609 )
...
* adds test-runner boilerplate
* revert to master
* Update node/test/runtime/Cargo.toml
Co-authored-by: Andronik Ordian <write@reusable.software >
* fix warning
* use polkadot_development_config
* remove vestigial code
* ...
* remove unused dependencies
* adds simnet binary
* adds simnet binary
* merged with remote
* dummy to check pipeline
* add 2 docker files and a build cmd
* adds logging
* atempt to use binary from build host
* fix simnet-binary
* fix docker commands
* switch branches
* ...
* update docker file
* update the dockerfile 2
* add some message in the cheatsheet
* add repo to chaches stage also
* update paths
* do only 1 stage build
* add time when build cmd started
* remove debugg commands
* polkadot-simnet-substrate-working-version-v1
* reduce size of polkadot-simnet image
* update test runner api
* update test-runner
* ...
* revert to master
* Merge branch 'master' of github.com:paritytech/polkadot into substrate-test-runner
* bump impl version
* remove unused imports, fix test
* was_binary.to_vec()
* Apply suggestions from code review
Co-authored-by: Andronik Ordian <write@reusable.software >
* ...
* remove unused import
* remove unused import
* adds post upgrade test
* dry code
* revert spec_version
* update Cargo.lock
* tested and it works
* compare runtime spec version
* fix spaces, remove docker files
* replace spaces with tabs
* Update runtime/polkadot/src/lib.rs
Co-authored-by: Andronik Ordian <write@reusable.software >
* ...
* revert Cargo.lock
* bump cargo.lock
Co-authored-by: Andronik Ordian <write@reusable.software >
Co-authored-by: radupopa2010 <radupopa2010@yahoo.com >
Co-authored-by: CI system <>
2021-07-13 16:45:27 +01:00
Qinxuan Chen
41045d891a
Companion for substrate#9197 ( #3359 )
...
* Companion for substrate#9197
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* update Substrate
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: parity-processbot <>
2021-07-13 08:05:48 +00:00
Alexander Theißen
2d102308de
Companion for #9276 : Remove Filter impl on () ( #3420 )
...
* Switch from () to AllowAllFilter
* Rename AllowAllFilter -> AllowAll
* update Substrate
Co-authored-by: parity-processbot <>
2021-07-12 21:12:52 +00:00
Robert Klotzner
6994682a86
DoS protection on the collator protocol ( #3446 )
...
* Move on to next validator after timeout.
* Better naming.
* Wrong implementation of validator fetch timeouts.
* Validator side: Move on to next collator
if download takes too long.
* Drop multiple requests from same validator.
* Add test that next response is sent after timeout.
* Multiple requests by same validator should get dropped.
* Test that another collator is tried
after exclusive download time.
* Add dep.
* Cleanup.
* Merge fix.
* Review remarks.
* Fixes.
* Add log targets to trace logs
Co-authored-by: Andronik Ordian <write@reusable.software >
2021-07-12 13:01:17 +02:00
Kian Paimani
d53ec86bbe
Companion for substrate/pull/9286 ( #3443 )
...
* Fix weights
* try something to unbreak companion
* update Substrate
Co-authored-by: Andronik Ordian <write@reusable.software >
Co-authored-by: parity-processbot <>
2021-07-09 20:25:13 +00:00
Robert Klotzner
b5257b2407
Dispute distribution implementation ( #3282 )
...
* Dispute protocol.
* Dispute distribution protocol.
* Get network requests routed.
* WIP: Basic dispute sender logic.
* Basic validator determination logic.
* WIP: Getting things to typecheck.
* Slightly larger timeout.
* More typechecking stuff.
* Cleanup.
* Finished most of the sending logic.
* Handle active leaves updates
- Cleanup dead disputes
- Update sends for new sessions
- Retry on errors
* Pass sessions in already.
* Startup dispute sending.
* Provide incoming decoding facilities
and use them in statement-distribution.
* Relaxed runtime util requirements.
We only need a `SubsystemSender` not a full `SubsystemContext`.
* Better usability of incoming requests.
Make it possible to consume stuff without clones.
* Add basic receiver functionality.
* Cleanup + fixes for sender.
* One more sender fix.
* Start receiver.
* Make sure to send responses back.
* WIP: Exposed authority discovery
* Make tests pass.
* Fully featured receiver.
* Decrease cost of `NotAValidator`.
* Make `RuntimeInfo` LRU cache size configurable.
* Cache more sessions.
* Fix collator protocol.
* Disable metrics for now.
* Make dispute-distribution a proper subsystem.
* Fix naming.
* Code style fixes.
* Factored out 4x copied mock function.
* WIP: Tests.
* Whitespace cleanup.
* Accessor functions.
* More testing.
* More Debug instances.
* Fix busy loop.
* Working tests.
* More tests.
* Cleanup.
* Fix build.
* Basic receiving test.
* Non validator message gets dropped.
* More receiving tests.
* Test nested and subsequent imports.
* Fix spaces.
* Better formatted imports.
* Import cleanup.
* Metrics.
* Message -> MuxedMessage
* Message -> MuxedMessage
* More review remarks.
* Add missing metrics.rs.
* Fix flaky test.
* Dispute coordinator - deliver confirmations.
* Send out `DisputeMessage` on issue local statement.
* Unwire dispute distribution.
* Review remarks.
* Review remarks.
* Better docs.
2021-07-09 04:29:53 +02:00
Bernhard Schuster
3c9104daff
refactor overseer into proc-macro based pattern ( #2962 )
2021-07-08 21:09:26 +02:00
Lldenaurois
2510bfc5d7
Approval voting full subsystem tests ( #3391 )
...
* node/approval-voting: Introduce Backend trait and Overlaybackend
This commit introduces a Backend trait and attempts to move away
from the Action model via an OverlayBackend as in the ChainSelection
subsystem.
* node/approval-voting: Add WriteOps for StoredBlockRange and BlocksAtHeight
* node/approval-voting: Add load_all_blocks to overlay
* node/approval-voting: Get all module tests to pass.
This commit modifies all tests to ensure tests are passing.
* node/approval-voting: Address oversights in the previous commit
This commit addresses some oversights in the prior commit.
1. Inner errors in backend.write were swallowed
2. One-off write functions removed to avoid useless abstraction
3. Touch-ups in general
* node/approval-voting: Move from TestDB to dyn KeyValueDB
This commit removes the TestDB from tests.rs and replaces it with
an in-memory kvdb.
* node/approval-voting: Address feedback
* node/approval-voting: Add license to ops.rs
* node/approval-voting: Address second-pass feedback
* Add TODO
* node/approval-voting: Bump spec_version
* node/approval-voting: Address final comments.
* node/approval-voting: Introduce framework for full subsystem tests
* node/approval-voting: Introduce basic tests to attempt to provide
coverage via full subsystem tests
* node/approval-voting: Introduce Chainbuilder
2021-07-08 12:30:12 -04:00
Seun Lanlege
de445adb6d
Seun txpool refactor ( #3419 )
...
* companion for paritytech/substrate#9228
* sc_transaction_pool_api
* update Substrate
Co-authored-by: parity-processbot <>
2021-07-08 14:09:54 +00:00
Andronik Ordian
0b81ff61a5
bump parity-ws ( #3442 )
2021-07-08 14:25:34 +02:00
Shawn Tabrizi
0e7217b4da
Companion for #9090 (include storage info) ( #3424 )
...
* update benchmark
* add host function
* update Substrate
* fix unused
Co-authored-by: parity-processbot <>
2021-07-07 23:01:00 +00:00
Andreas Doerr
2bb31db98c
Bump BEEFY ( #3430 )
2021-07-07 21:40:37 +02:00
Sergei Shulepov
8d77738cfd
pvf: Enable stack depth metering & NaN canonicalization ( #3373 )
...
* Add `canonicalize_nans` and enable `stack_depth_metering`
* Update to the latest change in the substrate PR
* Explain why the numbers are what they are.
* Update Substrate to the latest master
Co-authored-by: parity-processbot <>
2021-07-07 12:55:00 +03:00
cheme
b71ec24815
Companion for #9100 (Paged keys rpc for child storage.) ( #3258 )
...
* patch branch
* patch bis
* Add missing client method.
* unpatch
* update Substrate
Co-authored-by: parity-processbot <>
2021-07-07 07:53:33 +00:00
Robert Habermeier
f69c175119
Chain Selection: Follow-ups ( #3328 )
...
* DB skeleton
* key formats
* lexicographic test
* custom types for DB
* implement backend for db-v1
* remove VoidBackend and integrate with real DbBackend
* detect stagnant blocks on in interval
* fix tests
* add tests for stagnant
* send ChainSelectionMessage::Approved
* tests for DB backend
* unused import
* upgrade kvdb-memorydb
Co-authored-by: Andronik Ordian <write@reusable.software >
2021-07-06 16:00:52 -05:00
Svyatoslav Nikolsky
04ac35e127
Enable over-bridge-messaging in Rococo/Wococo runtime ( #3377 )
...
* bridges in W<>R
* fix node compilation
* Update runtime/rococo/src/bridge_messages.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Update runtime/rococo/src/bridge_messages.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Update runtime/rococo/src/bridge_messages.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Update runtime/rococo/src/bridge_messages.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* long line fix
* comment/remove -> comment/#[ignore]
* explicit instances
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
2021-07-06 10:03:12 +00:00
Alexander Popiak
4a345045a9
Add XCM Tracing ( #3353 )
...
* add missing bridges logging target
* trace send_xcm
* trace execute_xcm
* trace calls in xcm-executor
* trace tuple implementations of xcm traits
* update cargo.lock
* remove bridge log target
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* log argument formatting
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-07-05 22:44:46 +00:00
Igor Matuszewski
037f22342b
Use MaxEncodedLen trait from new parity-scale-codec v2.2 ( #3412 )
...
* Use MaxEncodedLen trait from new parity-scale-codec v2.2
* update Substrate
Co-authored-by: parity-processbot <>
2021-07-05 21:11:03 +00:00
Andronik Ordian
e80475ce4e
bump a bunch of deps in parity-common ( #3402 )
...
* bump a bunch of deps in parity-common
* update Substrate
* fix browser check
Co-authored-by: parity-processbot <>
2021-07-05 21:45:51 +02:00
Bastian Köcher
c4d45c97dd
Enable logging in the puppet worker ( #3411 )
...
This is useful for tests where something is failing :D
2021-07-05 14:18:20 +02:00
Kian Paimani
505145efd3
Staking Miner ( #3141 )
...
Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com >
Co-authored-by: Peter Goodspeed-Niklaus <peter.r.goodspeedniklaus@gmail.com >
2021-07-01 20:22:35 +01:00
Bastian Köcher
ad46aadb1a
Companion for Substrate#8953 ( #3140 )
...
* Companion
* Update branch
* Update to correspond to substrate fixes
* Update cargo.lock
* Remove patches
* update Substrate
Co-authored-by: parity-processbot <>
2021-07-01 16:21:51 +00:00
Martin Pugh
cfbfefc972
Bump version, specs & substrate in prep for v0.9.8 ( #3387 )
...
* bump version
* bump substrate
* bump spec_versions
2021-07-01 12:09:41 +02:00
Andreas Doerr
b9c7384b72
BEEFY: adjust gossip ( #3372 )
2021-06-29 10:21:49 +02:00
Shawn Tabrizi
4911251a72
Companion for #9193 ( #3376 )
...
* update name
* update Substrate
Co-authored-by: parity-processbot <>
2021-06-28 13:25:31 +00:00
Peter Goodspeed-Niklaus
95736d1bf1
Companion for Decouple Staking and Election - Part 3: Signed Phase ( #2793 )
...
* Companion for Decouple Staking and Election - Part 3: Signed Phase
https://github.com/paritytech/substrate/pull/7910
* remove some config types
* allow up to 5 signed submissions on polkadot and kusama
* signed phase is equal induration to unsigned phase
* use chain defaults for base and per-byte deposits; >= 16 SignedMaxSubmissions
* use a small but non-trivial solution reward
* reduce signed deposit per byte fee
* reduce signed reward, adjust polkadot expected soln size
* copy submit benchmark from substrate
* demo calculating an appropriate fee for the signed reward
Unfortunately, this doesn't work: it needs to be a constant function,
and AFAIK there's no way to make a trait method constant.
* SignedRewardBase is 1.5x the fee to submit a signed solution
* all chains use deposit byte of base per 50k
* update Substrate
* cargo update -p pallet-election-provider-multi-phase
Co-authored-by: parity-processbot <>
2021-06-28 14:36:20 +02:00