Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bad block of the proof size fiasko to Battery Station chain spec #1119

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

maltekliemann
Copy link
Member

What does it do?

Adds the block on which sudo authorized the upgrade of the first iteration of v0.4.0 on Battery Station, which contained benchmarks which grossly overestimated the required proof size, effectively bricking the chain.

What important points should reviewers know?

Here's a link to the block on which the upgrade was authorized: https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fbsr.zeitgeist.pm#/explorer/query/4278377; the upgrade was executed 50 blocks later.

Is there something left for follow-up PRs?

What alternative implementations were considered?

Are there relevant PRs or issues?

References

@maltekliemann maltekliemann self-assigned this Sep 19, 2023
@maltekliemann maltekliemann added the s:review-needed The pull request requires reviews label Sep 19, 2023
@codecov-commenter
Copy link

Codecov Report

Patch and project coverage have no change.

Comparison is base (bb0e671) 93.44% compared to head (1058bed) 93.44%.
Report is 1 commits behind head on release-v0.4.0.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@               Coverage Diff               @@
##           release-v0.4.0    #1119   +/-   ##
===============================================
  Coverage           93.44%   93.44%           
===============================================
  Files                  95       95           
  Lines               29544    29544           
===============================================
  Hits                27606    27606           
  Misses               1938     1938           
Flag Coverage Δ
tests 93.44% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sea212 sea212 added the s:accepted This pull request is ready for merge label Sep 19, 2023
@sea212 sea212 added this to the v0.4.0 milestone Sep 19, 2023
@sea212 sea212 merged commit 40ad4b5 into release-v0.4.0 Sep 19, 2023
21 of 23 checks passed
@sea212 sea212 deleted the mkl-add-bad-block branch September 19, 2023 20:01
@sea212 sea212 removed the s:review-needed The pull request requires reviews label Sep 19, 2023
sea212 added a commit that referenced this pull request Oct 11, 2023
* Update versions to v0.4.0 (#1098)

* Update weights (#1101)

* Reduce length of `MarketsCollectingSubsidy` (#1118)

* Add bad block of the proof size fiasko to Battery Station chain spec (#1119)

Add bad block to Battery Station chain spec

* Update weights v0.4.0 (#1121)

* Update moonbeam dependencies (bench fix)

* Update weights

* Adapt arbitrage weight calculations to proof sizes (#1120)

Include proof size into arbitrage weight estimates

---------

Co-authored-by: Malte Kliemann <[email protected]>
maltekliemann added a commit that referenced this pull request Oct 11, 2023
* Implement neo-swaps

* Fix compile issues

* Implement `DeployPoolsApi` as noop

* Fix formatting

* Add missing copyright notices

* Fix clippy issues

* Fix more clippy issues and rename `balances` to `reserves`

* Remove `println!`

* Add missing copyright notice

* .

* Add benchmarking and include `NeoSwaps` in Runtime

* Add neo-swaps benchmarks; remove `split` (for now)

* Add benchmarks for `create_market_and_deploy_pool`

* Properly implement `DeployPool`

* Fix benchmarks, remove unnecessary parameter

* Fix formatting

* Fix dependencies

* Add math docs

* Fix typo

* Make me codeowner of neo-swaps

* Add neo-swaps to main README and fix link to PDF

* Fix link

* Update versions to v0.4.0 (#1098)

* Update weights (#1101)

* Remove unnecessary comment from toml

* Use default features

* Bump version

* Use checked math in `SoloLp`

* Make match expression explicit

* Add comment about saturation

* Use `MultiCurrency` instead of `ZeitgeistAssetManager`

* Apply suggestions from code review

Co-authored-by: Harald Heckmann <[email protected]>

* Remove superfluous inserts

* Fix error documentation

* Abstract reserve updates into `Pool`

* Make complete set operations require transactional

* Make test name not coffee-based

* Update zrml/neo-swaps/src/mock.rs

Co-authored-by: Harald Heckmann <[email protected]>

* Update zrml/neo-swaps/src/mock.rs

Co-authored-by: Harald Heckmann <[email protected]>

* Reorganize tests

* Format

* Fix comment

* Remove `macros.rs`

* Fix benchmarks

* Fix formatting

* Update benchmark script and add preliminary benchmarks

* Update ED buffer handling

* Fix documentation

* Implement market creation fees for neo-swaps

* Use `MarketCreatorFee` in runtime

* Add missing files

* Add weights

* Reduce length of `MarketsCollectingSubsidy` (#1118)

* Add bad block of the proof size fiasko to Battery Station chain spec (#1119)

Add bad block to Battery Station chain spec

* Update weights v0.4.0 (#1121)

* Update moonbeam dependencies (bench fix)

* Update weights

* Fix docs

* Rename `IndexType` and change its type value

* Remove commented code

* Fix order of config parameters

* Specify order of assets

* Remove commented code

* Apply suggestions from code review

Co-authored-by: Chralt <[email protected]>

* Fix `u16`/`u32` casts

* Update zrml/prediction-markets/src/benchmarks.rs

Co-authored-by: Chralt <[email protected]>

* Update zrml/prediction-markets/src/benchmarks.rs

Co-authored-by: Chralt <[email protected]>

* Update zrml/neo-swaps/src/math.rs

Co-authored-by: Chralt <[email protected]>

* Update primitives/src/math/fixed.rs

Co-authored-by: Chralt <[email protected]>

* Update primitives/src/math/fixed.rs

Co-authored-by: Chralt <[email protected]>

* Fix formatting

* Fix conflicts

* Fix dispute period

* Format code

---------

Co-authored-by: Harald Heckmann <[email protected]>
Co-authored-by: Chralt <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s:accepted This pull request is ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants