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

feat(devnet): activate async backing #143

Merged
merged 6 commits into from
Aug 8, 2024
Merged

Conversation

evilrobot-01
Copy link
Collaborator

Enables async backing for the devnet runtime only, splitting the network config into two using the same name as the runtime. Certain constants had to be copied into the devnet runtime to be altered to as to not affect the testnet runtime.

Note: discovered that the testnet chainspec was using the devnet runtime, meaning the version on paseo may be using the devnet runtime with testnet state. I cant recall when we split the runtimes, and whether that was after the testnet launch, but precaution should be taken on the next onchain runtime upgrade.

It is suggested that apart from a review, both runtimes should be tested via pop up. We should also not merge this before the next runtime upgrade, just in case. I think it should be used for a bit on main first.

@codecov-commenter
Copy link

codecov-commenter commented Jul 28, 2024

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.

Project coverage is 10.60%. Comparing base (85a7218) to head (341b093).

Files Patch % Lines
node/src/command.rs 0.00% 3 Missing ⚠️
node/src/chain_spec.rs 0.00% 1 Missing ⚠️
@@            Coverage Diff             @@
##             main     #143      +/-   ##
==========================================
- Coverage   10.60%   10.60%   -0.01%     
==========================================
  Files          27       27              
  Lines        2131     2132       +1     
  Branches     2131     2132       +1     
==========================================
  Hits          226      226              
- Misses       1905     1906       +1     
Files Coverage Δ
runtime/common/src/lib.rs 0.00% <ø> (ø)
runtime/devnet/src/lib.rs 14.88% <ø> (ø)
runtime/testnet/src/lib.rs 14.88% <ø> (ø)
node/src/chain_spec.rs 0.00% <0.00%> (ø)
node/src/command.rs 0.00% <0.00%> (ø)

@evilrobot-01 evilrobot-01 marked this pull request as draft July 28, 2024 19:38
@evilrobot-01 evilrobot-01 force-pushed the frank/devnet-async-backing branch from fde96e3 to 7be1434 Compare August 6, 2024 14:34
@evilrobot-01 evilrobot-01 marked this pull request as ready for review August 6, 2024 14:34
Copy link
Collaborator

@peterwht peterwht left a comment

Choose a reason for hiding this comment

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

Nice. Works great!

Copy link
Collaborator

@Daanvdplas Daanvdplas left a comment

Choose a reason for hiding this comment

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

LGTM! Devnet with 6sec block time, testnet 12sec.

networks/testnet.toml Show resolved Hide resolved
node/src/command.rs Outdated Show resolved Hide resolved
@evilrobot-01 evilrobot-01 requested a review from Daanvdplas August 8, 2024 06:25
@Daanvdplas Daanvdplas merged commit bd47069 into main Aug 8, 2024
8 checks passed
@Daanvdplas Daanvdplas deleted the frank/devnet-async-backing branch August 8, 2024 07:25
chungquantin pushed a commit to chungquantin/pop-node that referenced this pull request Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants