Commit 6ac85374 authored by PG Herveou's avatar PG Herveou Committed by GitHub
Browse files

Update contract multi-block migration (#14313)



* move migrate sequence to config

* remove commented out code

* Update frame/contracts/src/lib.rs

Co-authored-by: default avatarPG Herveou <[email protected]>

* remove Migrations generic

* make runtime use noop migrations

* restrict is_upgrade_supported

* Update contract multi-block migration

Ensure that we do as many steps as possible given the weight limit passed to on_idle

* undo is_upgrade_supported change

* Update bin/node/runtime/src/lib.rs

Co-authored-by: default avatarPG Herveou <[email protected]>

* wip

* fix comment (#14316)

* fix test

* fix

* Update frame/contracts/src/migration.rs

Co-authored-by: default avatarJuan <[email protected]>

* fix test doc

* Apply suggestions from code review

Co-authored-by: default avatarSasha Gryaznov <[email protected]>

* Fix compilation with feature runtime-benchmarks

* fix example

* fix  cargo doc --document-private-items

* private links

* Remove dup comment

* add doc for MigrationInProgress

* PR review remove duplicate asserts

* simplify upper bound

* fix link

* typo

* typo

* no unwrap()

* correct log message

* missing

* fix typo

* PR comment

* Add example with single element tuple

* Improve migration message

* Update frame/contracts/src/benchmarking/mod.rs

Co-authored-by: default avatarSasha Gryaznov <[email protected]>

* Update frame/contracts/src/migration.rs

Co-authored-by: default avatarSasha Gryaznov <[email protected]>

* Update frame/contracts/src/migration.rs

Co-authored-by: default avatarSasha Gryaznov <[email protected]>

* use saturating_accrue instead of +=

* add more doc

* Contracts: Better migration types (#14418)

* Add explicit error, if try-runtime runs a noop migration

* use mut remaining_weight

---------

Co-authored-by: default avatarJuan Girini <[email protected]>
Co-authored-by: default avatarSasha Gryaznov <[email protected]>
parent 6ea37360
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment