-
Notifications
You must be signed in to change notification settings - Fork 92
Use para id in specs instead of flag #157
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
Merged
shawntabrizi
merged 12 commits into
paritytech:master
from
PureStake:jlm-use-para-id-in-specs
Dec 13, 2021
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
71714f6
Updates polkadot dependency
5926d4f
sync with master
joelamouche 7320947
sync with paritytech
joelamouche 98e4503
sync with master
joelamouche 76d3f2a
Merge remote-tracking branch 'paritytech/master'
joelamouche 8577039
Merge remote-tracking branch 'paritytech/master'
joelamouche d028fb2
add log
joelamouche eaf830b
Merge remote-tracking branch 'paritytech/master'
joelamouche dfe36f2
Merge branch 'master' into jlm-use-para-id-in-specs
joelamouche bb0c82b
remove parachain id flag and chain flag
joelamouche c257f2a
cleanup
joelamouche c0bd23c
apply feedback
joelamouche 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -4,8 +4,6 @@ import { killAll, run } from "../../src"; //"polkadot-launch"; | |
| import { | ||
| BINARY_PATH, | ||
| RELAY_BINARY_PATH, | ||
| DISPLAY_LOG, | ||
| SPAWNING_TIME, | ||
| RELAY_CHAIN_NODE_NAMES, | ||
| } from "./constants"; | ||
| const debug = require("debug")("test:para-node"); | ||
|
|
@@ -156,7 +154,6 @@ export async function startParachainNodes(options: ParachainOptions): Promise<{ | |
| bin: BINARY_PATH, | ||
| id: (1000 * (i + 1)).toString(), | ||
| balance: "1000000000000000000000", | ||
| // chain: options.chain, this is not supported by cumulus | ||
|
Contributor
Author
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. @riusricardo this is the comment I was referring to. I'm going to put it back though, for collators that do need it |
||
| nodes: [ | ||
| { | ||
| port: ports[i * 2 + numberOfParachains + 1].p2pPort, | ||
|
|
||
This file contains hidden or 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,34 @@ | ||
| import Keyring from "@polkadot/keyring"; | ||
| import { expect } from "chai"; | ||
|
|
||
| import { describeParachain } from "../test-utils/setup-para-tests"; | ||
|
|
||
| describeParachain( | ||
| "Balance genesis", | ||
| { chain: "rococo-local", numberOfParachains: 2 }, | ||
| (context) => { | ||
| it("should be accessible through web3", async function () { | ||
| const keyring = new Keyring({ type: "sr25519" }); | ||
| const aliceRelay = keyring.addFromUri("//Alice"); | ||
|
|
||
| //check parachain id | ||
| expect( | ||
| ( | ||
| (await context._polkadotApiRelaychains[0].query.paras.parachains()) as any | ||
| )[0].toString() | ||
| ).to.eq("1000"); | ||
| expect( | ||
| ( | ||
| (await context._polkadotApiRelaychains[0].query.paras.parachains()) as any | ||
| )[1].toString() | ||
| ).to.eq("2000"); | ||
| expect( | ||
| ( | ||
| await context.polkadotApiParaone.query.system.account( | ||
| aliceRelay.addressRaw | ||
| ) | ||
| ).data.free.toHuman() | ||
| ).to.eq("1,152,921,504,606,846,976"); | ||
| }); | ||
| } | ||
| ); |
This file contains hidden or 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
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 do we need to remove chain selection from the parachain parameters? It will cause issues when you export the genesis state.
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.
According to a comment, it was't supported by cumulus anymore
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.
I think this was a misunderstanding. The only thing that got removed was the
parachain-idparitytech/cumulus#739No need to remove the option to select a chain. It is very needed, in polkadot-collator we have several chains, the same stands for the polkadot binary.
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.
Indeed. How was this resolved, perhaps I'm missing something @joelamouche ?
Uh oh!
There was an error while loading. Please reload this page.
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.
@ghzlatarev I left the --chain command. So if you specify the chain in the chain field of the parachain in hte config, it should work
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.
@joelamouche I don't see it in
startCollatororexportGenesisWasm, is it not needed there ?Right now if I start a
westmint-localnetwork I get some defaultLocal TestnetThere 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.
@joelamouche i hit this code path https://github.com/paritytech/cumulus/blob/master/polkadot-parachains/src/command.rs#L119 -> https://github.com/paritytech/cumulus/blob/master/polkadot-parachains/src/chain_spec.rs#L71
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.
You're right Im adding it back