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

[Merged by Bors] - mesh/executor: extend atxsdata with coinbase to use them when applying blocks #5547

Closed
wants to merge 5 commits into from

Conversation

dshulyak
Copy link
Contributor

@dshulyak dshulyak commented Feb 6, 2024

related: #5192

it adds around 20MB per 1_000_000 atxs.
i considered getting them from database (e.g we can do select using atx id primary key index and read coinbase),
but it is likely that number of proposals continue to grow in the foreseeable future (each proposal is a separate query)
so storing a bit more data is a better option.

Copy link

codecov bot commented Feb 6, 2024

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (92467fa) 79.7% compared to head (065c400) 79.7%.

Files Patch % Lines
mesh/executor.go 86.6% 1 Missing and 1 partial ⚠️
mesh/mesh.go 85.7% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           develop   #5547   +/-   ##
=======================================
  Coverage     79.7%   79.7%           
=======================================
  Files          267     267           
  Lines        26831   26828    -3     
=======================================
+ Hits         21388   21395    +7     
+ Misses        3924    3913   -11     
- Partials      1519    1520    +1     

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

@@ -39,7 +39,9 @@ const (

type testMesh struct {
*Mesh
db sql.Executor
db *sql.Database
cdb *datastore.CachedDB
Copy link
Member

Choose a reason for hiding this comment

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

I think this field is unused?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it is used in malfeasence.Validate, which is called in the tests, i wanted to avoid refactoring that module in the one change

@dshulyak
Copy link
Contributor Author

dshulyak commented Feb 7, 2024

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request Feb 7, 2024
…g blocks (#5547)

related: #5192

it adds around 20MB per 1_000_000 atxs.
i considered getting them from database (e.g we can do select using atx id primary key index and read coinbase),
but it is likely that number of proposals continue to grow in the foreseeable future (each proposal is a separate query) 
so storing a bit more data is a better option.
@spacemesh-bors
Copy link

spacemesh-bors bot commented Feb 7, 2024

Build failed:

  • ci-status

@dshulyak
Copy link
Contributor Author

dshulyak commented Feb 7, 2024

needs rebase

@dshulyak
Copy link
Contributor Author

dshulyak commented Feb 7, 2024

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request Feb 7, 2024
…g blocks (#5547)

related: #5192

it adds around 20MB per 1_000_000 atxs.
i considered getting them from database (e.g we can do select using atx id primary key index and read coinbase),
but it is likely that number of proposals continue to grow in the foreseeable future (each proposal is a separate query) 
so storing a bit more data is a better option.
@spacemesh-bors
Copy link

spacemesh-bors bot commented Feb 7, 2024

Build failed:

@dshulyak
Copy link
Contributor Author

dshulyak commented Feb 7, 2024

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request Feb 7, 2024
…g blocks (#5547)

related: #5192

it adds around 20MB per 1_000_000 atxs.
i considered getting them from database (e.g we can do select using atx id primary key index and read coinbase),
but it is likely that number of proposals continue to grow in the foreseeable future (each proposal is a separate query) 
so storing a bit more data is a better option.
@spacemesh-bors
Copy link

spacemesh-bors bot commented Feb 7, 2024

Build failed:

@dshulyak
Copy link
Contributor Author

dshulyak commented Feb 8, 2024

#5550

@dshulyak
Copy link
Contributor Author

dshulyak commented Feb 8, 2024

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request Feb 8, 2024
…g blocks (#5547)

related: #5192

it adds around 20MB per 1_000_000 atxs.
i considered getting them from database (e.g we can do select using atx id primary key index and read coinbase),
but it is likely that number of proposals continue to grow in the foreseeable future (each proposal is a separate query) 
so storing a bit more data is a better option.
@spacemesh-bors
Copy link

spacemesh-bors bot commented Feb 8, 2024

Pull request successfully merged into develop.

Build succeeded:

@spacemesh-bors spacemesh-bors bot changed the title mesh/executor: extend atxsdata with coinbase to use them when applying blocks [Merged by Bors] - mesh/executor: extend atxsdata with coinbase to use them when applying blocks Feb 8, 2024
@spacemesh-bors spacemesh-bors bot closed this Feb 8, 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.

2 participants