-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: implement the kurtosis package to run parallel parachain local #7
Merged
shreyasbhat0
merged 6 commits into
main
from
DIVE-201-Localnet-setup-for-Parallel-Polkadot
Oct 30, 2023
Merged
Changes from 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
54e33c1
chore: implement the kurtosis package to run parallel parachain local
shanithkk a011fd2
refactor: change function name from parallel_run to run_parallel
shanithkk 9438754
chore: remove unused variable 'parachain'
shanithkk cc2c945
style: format code
shanithkk 6a194ae
style: code format
shanithkk 904893a
fix: upload file path issue
shanithkk 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
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
def run_kylin(plan, args): | ||
exec_command = ["--base-path=/kylin/data", "--chain=dev", "--ws-external", "--rpc-external", "--rpc-cors=all", "--name=parachain-2010-0", "--collator", "--rpc-methods=unsafe", "--force-authoring", "--execution=wasm", "--alice", "--node-key=52194369e4c881e4157b74fd00dff4241e50b8100b823273e25c868a70e5cde8", "--", "--chain=/app/rococo-local.json", "--execution=wasm"] | ||
plan.add_service( | ||
name = "kylin", | ||
config = ServiceConfig( | ||
image = "kylinnetworks/kylin-collator:ro-v0.9.30", | ||
files = { | ||
"/app": "output", | ||
}, | ||
ports = { | ||
"parachain": PortSpec(9944, transport_protocol = "TCP"), | ||
}, | ||
cmd = exec_command, | ||
), | ||
) | ||
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
def run_parallel(plan,args): | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. change function to verb, Please follow a proper naming convention (run_<chain/node name>) |
||
exec_command = [ "--chain=kerria-dev","--wasm-execution=compiled","--force-authoring","--port","30333","--rpc-port","9944","--rpc-external","--rpc-cors","all","--rpc-methods=Unsafe","--","--wasm-execution=compiled","--chain=/app/rococo-local.json"] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. formating |
||
plan.add_service( | ||
name="interrelay", | ||
config= ServiceConfig( | ||
image = "parallelfinance/parallel:latest", | ||
files={ | ||
"/app":"output" | ||
}, | ||
ports = { | ||
"parachain" : PortSpec(9944, transport_protocol="TCP"), | ||
}, | ||
cmd=exec_command | ||
) | ||
) |
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.
why kylin is here in with parallel ?