-
Notifications
You must be signed in to change notification settings - Fork 211
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] - Return ATX version along with blob #5922
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #5922 +/- ##
=======================================
Coverage 80.7% 80.7%
=======================================
Files 289 288 -1
Lines 29868 29890 +22
=======================================
+ Hits 24107 24141 +34
+ Misses 4164 4160 -4
+ Partials 1597 1589 -8 ☔ View full report in Codecov by Sentry. |
e457400
to
f0743ac
Compare
@@ -273,7 +273,10 @@ type ( | |||
) | |||
|
|||
var loadBlobDispatch = map[Hint]loadBlobFunc{ | |||
ATXDB: atxs.LoadBlob, | |||
ATXDB: func(ctx context.Context, db sql.Executor, key []byte, blob *sql.Blob) error { | |||
_, err := atxs.LoadBlob(ctx, db, key, blob) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will need blob version handling in fetch client / server, but that can be done later, of course.
Initial syncv2
version will reuse current blob fetching mechanism
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why would it need to care about the version here? The fetched blobs are pushed through the ATX handler which can figure out the version while decoding on its own.
bors merge |
## Motivation Need to get the ATX version from the `atx_blobs` table to decode ATX w/o knowing epoch->version mapping everywhere in the code.
Pull request successfully merged into develop. Build succeeded: |
Motivation
Need to get the ATX version from the
atx_blobs
table to decode ATX w/o knowing epoch->version mapping everywhere in the code.Description
atxs.LoadBlob()
also returns types.AtxVersionTest Plan
TODO