Skip to content
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

Change solochain flag into subcommand #683

Merged
merged 19 commits into from
Sep 24, 2024
Merged

Conversation

tmpolaczyk
Copy link
Collaborator

@tmpolaczyk tmpolaczyk commented Sep 17, 2024

Instead of using tanssi-node --solochain to start a starlight collator, we will use tanssi-node solochain.

This allows us to simplify the argument parsing logic, and remove all the orchestrator args from start_solochain_node.

A major change is the new keystore path. Instead of putting keystore in

Collator1000-01/data/chains/simple_container_2000/keystore

We put it in

Collator1000-01/data/config/keystore

But zombienet will put the keys in the old path, so we need to manually copy it if we are running under zombienet. See copy_zombienet_keystore function.

To generate collator keys in the new location, collators will need to add a --keystore-path argument to the tanssi-node key command.

Copy link
Contributor

github-actions bot commented Sep 17, 2024

Coverage Report

(master)

@@                       Coverage Diff                       @@
##           master   tomasz-solochain-subcommand      +/-   ##
===============================================================
- Coverage   70.29%                        69.79%   -0.50%     
+ Files         266                           267       +1     
+ Lines       49052                         49395     +343     
===============================================================
- Hits        34477                         34473       -4     
+ Misses      14575                         14922     +347     
Files Changed Coverage
/client/consensus/src/collators/lookahead.rs 77.98% (-2.13%) 🔽
/client/consensus/src/mocks.rs 64.92% (+0.06%) 🔼
/client/service-container-chain/src/service.rs 7.18% (-0.15%) 🔽
/container-chains/nodes/simple/src/command.rs 24.95% (+0.84%) 🔼
/node/src/cli.rs 60.71% (-1.11%) 🔽
/node/src/command.rs 33.93% (-4.49%) 🔽
/node/src/service.rs 15.31% (+0.50%) 🔼

Coverage generated Tue Sep 24 15:42:43 UTC 2024

@tmpolaczyk tmpolaczyk marked this pull request as ready for review September 20, 2024 10:00
@tmpolaczyk tmpolaczyk added B5-clientnoteworthy Changes should be mentioned in any downstream projects' release notes D3-trivial PR contains trivial changes in a runtime directory that do not require an audit not-breaking Does not need to be mentioned in breaking changes labels Sep 20, 2024
@girazoki
Copy link
Collaborator

Please remove the comment about the TODO, as this is the behavior we observe in reegular tanssi

@tmpolaczyk tmpolaczyk merged commit 98e467c into master Sep 24, 2024
38 checks passed
@tmpolaczyk tmpolaczyk deleted the tomasz-solochain-subcommand branch September 24, 2024 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B5-clientnoteworthy Changes should be mentioned in any downstream projects' release notes D3-trivial PR contains trivial changes in a runtime directory that do not require an audit not-breaking Does not need to be mentioned in breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants