Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

inclusion emulator logic for asynchronous backing #4790

Merged
merged 43 commits into from
Feb 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
ed713ad
initial stab at candidate_context
rphmeier Jan 27, 2022
300cc3a
fmt
rphmeier Jan 27, 2022
90816b0
docs & more TODOs
rphmeier Jan 28, 2022
cc47e9c
some cleanups
rphmeier Feb 2, 2022
62b6226
reframe as inclusion_emulator
rphmeier Feb 2, 2022
b9f4d40
documentations yes
rphmeier Feb 3, 2022
7169066
update types
rphmeier Feb 3, 2022
2642148
add constraint modifications
rphmeier Feb 4, 2022
b123217
watermark
rphmeier Feb 4, 2022
2b43d0b
produce modifications
rphmeier Feb 4, 2022
8c0c3a3
v2 primitives: re-export all v1 for consistency
rphmeier Feb 8, 2022
cf8c17c
vstaging primitives
rphmeier Feb 8, 2022
51cdc50
emulator constraints: handle code upgrades
rphmeier Feb 8, 2022
acadae5
produce outbound HRMP modifications
rphmeier Feb 8, 2022
754619e
stack.
rphmeier Feb 8, 2022
5229f6b
method for applying modifications
rphmeier Feb 9, 2022
edd2c46
method just for sanity-checking modifications
rphmeier Feb 9, 2022
ce5c54f
fragments produce modifications, not prospectives
rphmeier Feb 9, 2022
170fe93
make linear
rphmeier Feb 9, 2022
6e16542
add some TODOs
rphmeier Feb 9, 2022
f47a6e7
remove stacking; handle code upgrades
rphmeier Feb 9, 2022
5dfe2bc
take `fragment` private
rphmeier Feb 9, 2022
305ee7d
reintroduce stacking.
rphmeier Feb 9, 2022
ecf0287
fragment constructor
rphmeier Feb 9, 2022
27d380b
add TODO
rphmeier Feb 9, 2022
a5be2eb
allow validating fragments against future constraints
rphmeier Feb 10, 2022
9c31cc0
docs
rphmeier Feb 10, 2022
6cc8fe4
Merge branch 'master' into rh-async-backing-contexts
rphmeier Feb 10, 2022
9f8adc9
relay-parent number and min code size checks
rphmeier Feb 10, 2022
6fe064c
check code upgrade restriction
rphmeier Feb 10, 2022
7367e65
check max hrmp per candidate
rphmeier Feb 10, 2022
9dd5cb2
fmt
rphmeier Feb 10, 2022
a7d4347
remove GoAhead logic because it wasn't helpful
rphmeier Feb 10, 2022
87fd692
docs on code upgrade failure
rphmeier Feb 10, 2022
85170dd
test stacking
rphmeier Feb 11, 2022
a283a14
test modifications against constraints
rphmeier Feb 11, 2022
4ea280b
fmt
rphmeier Feb 11, 2022
22251e4
test fragments
rphmeier Feb 11, 2022
e974afa
descending or duplicate test
rphmeier Feb 11, 2022
d6d6a65
fmt
rphmeier Feb 11, 2022
4853960
remove unused imports in vstaging
rphmeier Feb 11, 2022
36906fa
wrong primitives
rphmeier Feb 11, 2022
3b403ed
spellcheck
rphmeier Feb 12, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion node/subsystem-util/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,3 @@ log = "0.4.13"
polkadot-node-subsystem-test-helpers = { path = "../subsystem-test-helpers" }
lazy_static = "1.4.0"
polkadot-primitives-test-helpers = { path = "../../primitives/test-helpers" }

14 changes: 14 additions & 0 deletions node/subsystem-util/src/inclusion_emulator/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Copyright 2017-2022 Parity Technologies (UK) Ltd.
// This file is part of Polkadot.

// Polkadot is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// Polkadot is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

pub mod staging;
Loading