Andronik
18c077a818
runtime/disputes: slashing ( #5535 )
...
* disputes: runtime part of slashing
* disputes: reward winners
* disputes/slashing: validate_unsigned impl
* fmt
* disputes/slashing: report_dispute_lost_unsigned
* disputes/slashing: separate winners from losers and report winners
* disputes/slashing: refactoring
* impl HandleReports
* enable on Wenstend
* fmt
* add slashing pallet to the mock and test runtimes
* fix a bug in report_dispute_lost_unsigned
* fmt
* disputes: remove new_participants from summary
* disputes: remove punish_inconclusive
* impl SlashingHandler for Pallet for type-safety
* do not impl slashing::Config on mainnets yet
* teach spellcheck deduplication
* simplify interfaces and resolve some TODOs
* resolve some more TODOs
* minor typos
* move slashing into a folder
* remove unnecessary clone
* fix validator_set_count calculation
* introduce ValidatorSetCount
* store ValidatorSetCount
* fmt
* add the benchmark
* fmt
* unflatten slashing
* post-rebase fixes
* remove winners eagerly
* use real slashing weights for westend
* remove bench test suite
* zombinet: modify disputes test to check for an offence report
* zombinet: add a timeout
* add slashing pallet to Rococo
* zombienet: revert back to rococo-local
* fmt
* remove TODOs
* revert some accidental changes
* slashing is submodule of disputes
* Change the log target
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* wrap comments with rustfmt, more docs, constants
* use Defensive trait
* cargo update -p sp-io
* merge offence types, remove rewards for now
* cargo update -p sp-io
* benchmark fixes
* fmt
* unused var
* fix block_author impl
* ressurect RewardValidators trait
* remove outdated comment
* more module docs
* introduce BenchmarkingConfig
* typo fix
* teach spellcheck unapplied
* use Weight::new()
* fix mocking rewards
* use RefTimeWeight
* ".git/.scripts/bench-bot.sh" runtime westend-dev runtime_parachains::disputes::slashing
* refactor maybe_identify_validators
* no more ticket in disguise
* remove outdated comments
* lower against valid to 0.1%
* bump zombienet version for debug
* use from_perthousand
* post-merge fixes
* another day, another Weight changes
* Revert "bump zombienet version for debug"
This reverts commit 0d9978711f8ec9a746a5e1c45e8ffbe7c75e7b5c.
* do not reward block authors
* fix outdated comment
* use Pays from frame_support::dispatch::Pays
* add timeout to is up
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: command-bot <>
Co-authored-by: Javier Viola <javier@parity.io >
Co-authored-by: Javier Viola <pepoviola@gmail.com >
2022-09-20 10:56:55 +00:00
Adrian Catangiu
cf18fed678
zombienet: add BEEFY justifications import test ( #5855 )
...
* zombienet: add BEEFY justifications import test
* bump zombienet image version
* zombienet: can't retrieve metrics when node paused
* bump zombienet image version to v1.2.54
Signed-off-by: acatangiu <adrian@parity.io >
2022-09-08 15:17:46 +03:00
Andrei Sandu
4db5bbc49a
Zombienet: test disputes with malus garbage candidates ( #5857 )
...
* 1/3 validators suggest garbage candidates,
but paras should make progress
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* scale down test a bit
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Use docker paths and more paras
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* dispute finality lag < 2
* scale down
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* scale down more
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* attempt fix
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* one malus node
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Update zombienet_tests/functional/0003-parachains-garbage-candidate.toml
Co-authored-by: Andronik <write@reusable.software >
* Update zombienet_tests/functional/0003-parachains-garbage-candidate.toml
Co-authored-by: Andronik <write@reusable.software >
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
Co-authored-by: Andronik <write@reusable.software >
2022-08-11 10:31:01 +00:00
Adrian Catangiu
8d1bba18af
zombienet: BEEFY and MMR test ( #5840 )
...
Signed-off-by: acatangiu <adrian@parity.io >
2022-08-04 10:27:17 +03:00
Andrei Sandu
cddd5749d3
Malus: improvements in dispute ancestor and suggest garbage candidate implementation ( #5011 )
...
* Implement fake validation results
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* refactor
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* cargo lock
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* spell check
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* spellcheck
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* typos
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Review feedback
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* move stuff around
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* chores
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Impl valid - still wip
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* fixes
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* fmt
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Pull Ladi's implementation:
https://github.com/paritytech/polkadot/pull/4711
Co-authored-by: Lldenaurois <Ljdenaurois@gmail.com >
Co-authored-by: Andrei Sandu <andrei-mihail@parity.io >
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Fix build
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Logs and comments
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* WIP: suggest garbage candidate + implement validation result caching
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* fix
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Do commitment hash checks in candidate validation
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Minor refactor in approval, backing, dispute-coord
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Working version of suggest garbage candidate
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Dedup
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* cleanup #1
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Fix tests
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* remove debug leftovers
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* fmt
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Accidentally commited some local test
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* spellcheck
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* some more fixes
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Refactor and fix it
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* review feedback
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* typo
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* tests review feedback
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* refactor disputer
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* fix tests
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Fix zombienet disputes test
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* spellcheck
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* fix
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Fix ui tests
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* fix typo
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
Co-authored-by: Lldenaurois <Ljdenaurois@gmail.com >
2022-04-13 13:45:39 +00:00
Javier Viola
cd4f9abf6f
bump zombienet version ( #5225 )
...
* bump zombienet version
* update path for zombienet scripts
* bump version and move from extra_args to args
Co-authored-by: Andrei Sandu <andrei-mihail@parity.io >
2022-04-04 12:07:50 +00:00
Andrei Sandu
784ca5bf0f
bump metric timeout ( #5231 )
...
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
2022-04-01 16:28:43 +00:00
Andrei Sandu
3e357ec0a8
Zombienet: add cpu/mem resource requests ( #5080 )
...
* Ensure request/limits for CPU and memory for nodes
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* docker.io/paritytech/zombienet:v1.2.19
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Deny failure
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* add retry back
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
2022-03-14 10:47:37 +00: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