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

runtimes: add template mainnet runtime #1012

Merged
merged 16 commits into from
Jul 19, 2024

Conversation

FlorianFranzen
Copy link
Collaborator

@FlorianFranzen FlorianFranzen commented Jul 17, 2024

Description

This add an initial template for the mainnet runtime. There are still a few smaller things missing, most notably separate genesis jsons for mainnet and testnet.

I opened the PR mostly to test early CI integration.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Tests

Code still undergoes many changes, additional testing will be done once everything is ready.

Code review prechecks:

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Inline comments have been added for each method
  • I have made corresponding changes to the documentation
  • Code changes introduces no new problems or warnings
  • Test cases have been added
  • Dependent changes have been merged and published in downstream modules

@FlorianFranzen FlorianFranzen changed the title Florian/mainnet runtime runtimes: add template mainnet runtime Jul 17, 2024
@FlorianFranzen FlorianFranzen force-pushed the florian/mainnet-runtime branch from cbceec7 to aa4c644 Compare July 17, 2024 12:21
@FlorianFranzen FlorianFranzen marked this pull request as draft July 17, 2024 12:23
@FlorianFranzen FlorianFranzen added enhancement New feature or request priority: high WIP !ci-benchmark Benchmark and commit new weights labels Jul 17, 2024
@FlorianFranzen FlorianFranzen force-pushed the florian/mainnet-runtime branch from 0c51602 to 8c7a958 Compare July 18, 2024 11:45
@FlorianFranzen FlorianFranzen force-pushed the florian/mainnet-runtime branch from 8c7a958 to 4be8e8b Compare July 18, 2024 11:51
@FlorianFranzen FlorianFranzen removed the !ci-benchmark Benchmark and commit new weights label Jul 18, 2024
@FlorianFranzen FlorianFranzen added the !ci-benchmark Benchmark and commit new weights label Jul 18, 2024
@FlorianFranzen FlorianFranzen removed the !ci-benchmark Benchmark and commit new weights label Jul 18, 2024
@FlorianFranzen FlorianFranzen marked this pull request as ready for review July 19, 2024 09:23
@FlorianFranzen FlorianFranzen added the ready-for-review PR author(s) done with coding and reviewer[s] can start label Jul 19, 2024
.runtime_api()
.account_nonce(best_hash, account.public().into())
.expect("Fetching account nonce works; qed")
//client
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it does't give additional context or isn't being restored in future, I would delete comments in general

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, we will need to restore that too. Commenting it out was of the first attempts to get it to compile at least.

let db = partial.backend.expose_db();
let storage = partial.backend.expose_storage();

cmd.run(config, partial.client, db, storage)
},
BenchmarkCmd::Overhead(cmd) => {
/*BenchmarkCmd::Overhead(cmd) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did these commands work at some point? Can't remember being used anywhere

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if they were part of it before, but we might want to use some of them to really benchmark the chain.

@FlorianFranzen FlorianFranzen merged commit 17cd383 into development Jul 19, 2024
22 checks passed
@FlorianFranzen FlorianFranzen deleted the florian/mainnet-runtime branch July 19, 2024 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority: high ready-for-review PR author(s) done with coding and reviewer[s] can start
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants