-
Notifications
You must be signed in to change notification settings - Fork 93
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
Update to not use --parachain-id
flag
#160
Conversation
# Conflicts: # tsconfig.json # yarn.lock
@joelamouche since you are the main participate in contributing to this code base, want to hear from you if changes made in this PR is also compatible with use cases on your side. @shawntabrizi I see there are conflicts and I can resolve them. But before putting in more effort into this PR, I would like to get an initial indication from you that you are okay with the approach & direction of the change. I will then resolve any remaining conflicts. Also need your help on getting the case of launching one relay-chain and two 1-node parachains networks back to work. |
@jimmychu0807 Thanks I will look at it. |
@jimmychu0807 this PR should really be split into two or three PRs - at the very least the |
100% agree with Hernando.
Seems fine. Default behavior without the flag should stay the same.
Also seems fine.
I am not a fan of this change if it requires users to install something which is not the normal yarn. I don't really see that the speed of yarn affects anyone's quality of life on this project, however installing new packages just for this application will def be annoying. |
# Conflicts: # src/runner.ts # src/spawn.ts # src/types.d.ts
I have merged with last change, and updated so @joelamouche: But I realized that it stucks at this line and then the Eventually, are @HCastano @shawntabrizi I have removed yarn3. Will be great if you could take a look at the scenario that having:
They connect, but the parachains blocks DO NOT finalized. And I couldn't get that to work. Thank you all! |
src/runner.ts
Outdated
|
||
for (const parachain of paras) { | ||
const { resolvedId, chain } = parachain; | ||
const bin = resolve(config_dir, parachain.bin); | ||
const { isSimple, id, resolvedId, protocolId, chain = "local" } = parachain; |
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.
const { isSimple, id, resolvedId, protocolId, chain = "local" } = parachain; | |
const { isSimple, id, resolvedId, protocolId, chain = "local" } = parachain; |
Where are you getting chain = "local"
from?
This is breaking the application from running.
Are you testing polkadot-launch after the changes you made?
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.
If within the parachain
section of the config file the chain
value is not specified, then what should its default value be?
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.
Also, I tried with one relay chain of 3-node and one parachain of 2-node with config file listed here and works.
But as mentioned above, I cannot make it to work with 3-node relay chain and two 1-node parachain networks.
What test config do you use when testing?
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.
Right now I was trying with just the default config, generating a binary from cumulus and polkadot master.
Cumulus polkadot-collator
node does not have a local
chain. By default, I don't think it needs a chain input.
@shawntabrizi updated to remove setting chain type to But using The point is the parachain does have the PoV block candidate generated but is never added to the parachain blockchain. Is there something wrong? If yes, how should I go about debugging it? |
@jimmychu0807 i have tried your fork, but it transforms large numbers in chainspec like
to exponential notation
which then node refuses to parse when trying to use it also I have noticed that relative path moved one level up when trying to execute it as dependency you can replicate it by running this https://github.com/galacticcouncil/Basilisk-node/blob/polkadot-v0.9.13/scripts/wait-for-inclusion/package.json#L9 |
Sorry this is out of any context, just found this https://github.com/paritytech/cumulus/pull/858/files Might be useful to this PR? I hope so 🙏 |
@lumir-mrkva thanks for trying my fork. Let me test out what you do next week. |
@shawntabrizi |
It gets converted here: https://github.com/paritytech/polkadot-launch/pull/160/files#diff-2e46e281a9ce50fb008324ac073f40d11857c82caa1a495145416e31b3cb14a1R236-R247 Due to standard JSON not supporting large integers: JSON.stringify(JSON.parse('{"balance":1000000000000000000000}'))
// {\"balance\":1e+21} And then serde_json parser not accepting scientific notation as integers (because it is not lossless) |
Many update mixed in this PR...
paraId
are updated within their rawChainSpec.-o
output flag to specify the asset output folder, logs will be stored at<output>/logs
.-v
verbose flag that if specify, will display the actual commands being runAWARE
With this PR, I am able to start a 3-node relay chain and a 2-node parachain network, and the parachain blocks got finalized. But I cannot get:
test
, they are really moonbeam specific (refer to the constants.ts). I wonder if we still want to keep them in our repo.If the code looks good, I will update the README, and also the cumulus tutorial in docs.substrate.io (this is what I originally intend to address: polkadot-developers/substrate-docs#634 😄 )
close #156
close #151
close #148
close #146