-
Notifications
You must be signed in to change notification settings - Fork 198
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
EN-7433: storer to elastic - fix miniblock not found #2260
EN-7433: storer to elastic - fix miniblock not found #2260
Conversation
@@ -156,16 +156,18 @@ func (dp *dataProcessor) indexData(data *storer2ElasticData.HeaderData) error { | |||
notarizedHeaders := dp.computeNotarizedHeaders(data.Header) | |||
newBody := &block.Body{MiniBlocks: make([]*block.MiniBlock, 0)} | |||
for _, mb := range data.Body.MiniBlocks { | |||
if mb.Type == block.ReceiptBlock { // don't index receipt miniblocks | |||
if mb.Type == block.ReceiptBlock || |
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.
maybe extract into a variable?
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.
done
@@ -81,7 +81,9 @@ func (dr *databaseReader) GetDatabaseInfo() ([]*DatabaseInfo, error) { | |||
epochStr := re.FindString(dirname) | |||
epoch, errParseInt := strconv.ParseInt(epochStr, 10, 64) | |||
if errParseInt != nil { | |||
log.Warn("cannot parse epoch number from directory name", "directory name", dirname) | |||
if dirname != "Static" { |
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.
magic string?
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.
done. also in other places
…lock-prev-epoch' into EN-7433-storer2elastic-fix-miniblock-prev-epoch
cd1a8df
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.
👍
Testing procedure is the same as for #2249