This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Minimal parachain framework part 1 #113
Merged
Merged
Changes from 73 commits
Commits
Show all changes
75 commits
Select commit
Hold shift + click to select a range
36055db
dynamic inclusion threshold calculator
rphmeier 8634fcd
collators interface
rphmeier 28bf531
Merge branch 'master' into rh-minimal-parachain
rphmeier 90ed3a1
collation helpers
rphmeier b3e654a
initial proposal-creation future
rphmeier 2c17d00
Merge branch 'master' into rh-minimal-parachain
rphmeier 83879eb
create proposer when asked to propose
rphmeier 04bf517
remove local_availability duty
rphmeier 6559366
statement table tracks includable parachain count
rphmeier 9bf4b2a
beginnings of timing future
rphmeier 79ea48a
Merge branch 'master' into rh-minimal-parachain
rphmeier f1d7634
finish proposal logic
rphmeier 908bcab
remove stray println
rphmeier 74b7ded
extract shared table to separate module
rphmeier 81508cf
change ordering
rphmeier d7cb48a
includability tracking
rphmeier 616503d
fix doc
rphmeier 7e049b3
Merge branch 'master' into rh-minimal-parachain
rphmeier ca6fbcb
initial changes to parachains module
rphmeier a8b0fc1
initialise dummy block before API calls
rphmeier f2297b8
give polkadot control over round proposer based on random seed
rphmeier f6fa97f
propose only after enough candidates
rphmeier 6380239
flesh out parachains module a bit more
rphmeier 00624c8
set_heads
rphmeier 7cff6b7
actually introduce set_heads to runtime
rphmeier 7e5d5ce
Merge branch 'master' into rh-minimal-parachain
rphmeier 47095e5
update block_builder to accept parachains
rphmeier 08a040c
split block validity errors from real errors in evaluation
rphmeier 57b523a
Merge branch 'master' into rh-minimal-parachain
rphmeier 0653de9
update WASM runtimes
rphmeier 3ba45d5
Merge branch 'master' into rh-minimal-parachain
rphmeier 6e73e55
polkadot-api methods for parachains additions
rphmeier acfdc27
delay evaluation until candidates are ready
rphmeier 7bcf8e5
comments
rphmeier e63431b
fix dynamic inclusion with zero initial
rphmeier 787ffeb
Merge branch 'master' into rh-minimal-parachain
rphmeier 1f5faa3
test for includability tracker
rphmeier 213cfab
wasm validation of parachain candidates
rphmeier eeebde3
move primitives to primitives crate
rphmeier d01531f
remove runtime-std dependency from codec
rphmeier 1a84478
adjust doc
rphmeier c18ed9a
polkadot-parachain-primitives
rphmeier 51c6063
kill legacy polkadot-validator crate
rphmeier 90fe0ff
basic-add test chain
rphmeier fc5ff45
test for basic_add parachain
rphmeier 0cce813
move to test-chains dir
rphmeier fb6f12d
use wasm-build
rphmeier 5ba8dd3
new wasm directory layout
rphmeier f404eb8
reorganize a bit more
rphmeier 39aad59
Fix for rh-minimal-parachain (#141)
pepyakin b5b2629
more basic_add tests
rphmeier 3cd7c2c
validate parachain WASM
rphmeier da5d1a9
Merge branch 'master' into rh-minimal-parachain
rphmeier 716f104
produce statements on receiving statements
rphmeier 516c0c1
tests for reactive statement production
rphmeier 11a2e2b
fix build
rphmeier e0acc9c
add OOM lang item to runtime-io
rphmeier 0857ffa
use dynamic_inclusion when evaluating as well
rphmeier 12ea3b3
Merge branch 'master' into rh-minimal-parachain
rphmeier 8e38484
Merge branch 'master' into rh-minimal-parachain
rphmeier 3f35959
fix update_includable_count
rphmeier 3e88415
remove dead code
rphmeier 157b0ca
grumbles
rphmeier 0d17f97
actually defer round_proposer logic
rphmeier a8581ac
Merge branch 'master' into rh-minimal-parachain
rphmeier c658d29
update wasm
rphmeier ed05e14
address a few more grumbles
rphmeier 75004e1
Merge branch 'master' into rh-minimal-parachain
rphmeier 77c6df7
Merge branch 'master' into rh-minimal-parachain
rphmeier 5c0c13b
Merge branch 'master' into rh-minimal-parachain
rphmeier e6e6b5a
grumbles
rphmeier 251a93c
update WASM checkins
rphmeier 9a3301f
Merge branch 'master' into rh-minimal-parachain
rphmeier 78f7428
remove dependency on tokio-timer
rphmeier c04aeef
Merge branch 'master' into rh-minimal-parachain
rphmeier File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file modified
BIN
+9.28 KB
(100%)
demo/runtime/wasm/target/wasm32-unknown-unknown/release/demo_runtime.compact.wasm
Binary file not shown.
Binary file modified
BIN
+17.6 KB
(100%)
demo/runtime/wasm/target/wasm32-unknown-unknown/release/demo_runtime.wasm
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
[package] | ||
name = "polkadot-collator" | ||
version = "0.1.0" | ||
authors = ["Parity Technologies <rphmeier@gmail.com>"] | ||
authors = ["Parity Technologies <admin@parity.io>"] | ||
description = "Abstract collation logic" | ||
|
||
[dependencies] | ||
futures = "0.1.17" | ||
substrate-codec = { path = "../../substrate/codec", version = "0.1" } | ||
substrate-primitives = { path = "../../substrate/primitives", version = "0.1" } | ||
polkadot-primitives = { path = "../primitives", version = "0.1" } | ||
polkadot-parachain = { path = "../parachain", version = "0.1" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it be better to wrap
Vec<u8>
into something type safe?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO type-safety is only useful when we have guarded types (for example, that this type can only be instantiated with valid WASM that fulfills the parachain ABI). But since any arbitrary bytes can be registered as the parachain code, what do we actually gain from writing a wrapper?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just the fact that the arbitrary bytes type hanging around in the code is actually a parachain code, not anything else.