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

*: add custom target gas limit in cluster lock v1.10 #3456

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

KaloyanTanev
Copy link
Collaborator

@KaloyanTanev KaloyanTanev commented Jan 13, 2025

Up until now the gas limit was hardcoded to 30M. However, the community is pushing towards bumping those numbers and you can't really customise that in Charon.

With those updates a targetGasLimit variable is introduced to the cluster definition and a new version of cluster definition is created, v1.10. The previous default version was v1.8, now the default is set to v1.10, including also the changes of consensus protocol introduced in v1.9. However, good to keep in mind there is only 1 consensus protocol enabled in charon, meaning the consensus protocol configuration in v1.9 isn't making much difference.

Previously the gas limit was hardcoded to 30M, now this can be configured by supplying --target-gas-limit flag to both CreateDKG and CreateCluster commands. The variable is not compulsory and its default is set to 36M (this is the new value commonly used in the ecosystem). If a new charon version (i.e.: v1.3) uses old definition (and lock) file, its default will still be the previous one of 30M. To bump the number, unfortunately, a new cluster needs to be created with the updated definition version.

category: feature
ticket: #3419

@KaloyanTanev KaloyanTanev self-assigned this Jan 13, 2025
@KaloyanTanev KaloyanTanev marked this pull request as draft January 13, 2025 13:54
@KaloyanTanev KaloyanTanev force-pushed the kalo/target-gas-limit branch from ee9b93a to 3eba5c2 Compare January 13, 2025 14:27
Copy link

codecov bot commented Jan 13, 2025

Codecov Report

Attention: Patch coverage is 78.70968% with 33 lines in your changes missing coverage. Please review.

Project coverage is 57.02%. Comparing base (c4ffb44) to head (c820c0a).
Report is 9 commits behind head on main.

Files with missing lines Patch % Lines
cluster/definition.go 70.66% 15 Missing and 7 partials ⚠️
cmd/addvalidators.go 55.55% 3 Missing and 1 partial ⚠️
core/validatorapi/validatorapi.go 60.00% 2 Missing and 2 partials ⚠️
app/app.go 0.00% 1 Missing ⚠️
cluster/manifestpb/v1/manifest.pb.go 80.00% 1 Missing ⚠️
dkg/dkg.go 85.71% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3456      +/-   ##
==========================================
+ Coverage   56.93%   57.02%   +0.09%     
==========================================
  Files         218      218              
  Lines       32430    32562     +132     
==========================================
+ Hits        18464    18570     +106     
- Misses      12071    12087      +16     
- Partials     1895     1905      +10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@KaloyanTanev KaloyanTanev force-pushed the kalo/target-gas-limit branch from 3eba5c2 to 609e242 Compare January 14, 2025 08:14
@KaloyanTanev KaloyanTanev marked this pull request as ready for review January 14, 2025 08:14
cluster/definition.go Outdated Show resolved Hide resolved
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.

3 participants